【发布时间】:2020-06-09 13:12:48
【问题描述】:
尝试在注册测试模式下使用节点生成的两个地址之间进行单一签名传输。在此期间我得到以下
错误 -> mandatory-script-verify-flag-failed (Signature must be zero for failed CHECK(MULTI)SIG operation) (code 16)
紧随其后。
- createrawtransaction -> 参数:
[ UTXO (txid,vout,scriptPubKey,amount), Receiver address, change address]-> 成功 - signrawtransactionwithkey ->
args: [Hex-Transaction (output of createrawtransaction), PrivateKey, UTXO (txid,vout,scriptPubKey,amount) ]-> 成功 - sendrawtransaction ->
args: [Hex- Signed Transaction (output of signrawtransactionwithkey)]-> 失败
从基础研究来看,许多人建议在signrawtransactionwithkey中添加金额字段,我这样做了,即使在那之后我也遇到了同样的错误。
需要注意的是,这个错误是突然出现的,节点设置工作了几个月。这只发生在特定的 linux 机器上。主机中是否有其他因素会影响比特币现金 ABC 节点并导致此问题?
以 Regtest 模式运行的比特币现金 ABC 节点。
【问题讨论】:
标签: bitcoin bitcoind bitcoin-testnet bitcoin-abc