16: mandatory-script-verify-flag-failed (Script evaluated without error but finished with a false/empty top stack element

Hi,

I recenlty upgraded zcash from v2.0.4 to zcash v4.3.0 (zcash daemon version) because v2.0.4 seems can not sync with other node after block 700kish. However, I got the errror when send a transaction to the blockchain,

RPC Query Failed (method: sendrawtransaction, params: …
response: {“result”:null,“error”:{“code”:-26,“message”:“16: mandatory-script-verify-flag-failed (Script evaluated without error but finished with a false/empty top stack element)”},“id”:“1”}

However, our code runs well last year with v2.0.4. We use our own code for signing transactions. Do anyone know why?

I see someone mentioned “Check that you are using the correct consensus branch ID”. where to check consensus branch ID and what it is used for? I am new to Zcash. Please help.

Thanks

The consensus branch ID is used in the transaction signature algorithm (ZIP 243). The current one is defined in ZIP 251.

1 Like

Great, thanks for reminding. I will take a look at the documenation.

1 Like