This commit is contained in:
Josh Rickmar 2014-05-16 12:48:50 -05:00
parent c2dec81b0c
commit c4a0b70835

View file

@ -2041,7 +2041,7 @@ func SignRawTransaction(icmd btcjson.Cmd) (interface{}, *btcjson.Error) {
// SigHashSingle inputs can only be signed if there's a // SigHashSingle inputs can only be signed if there's a
// corresponding output. However this could be already signed, // corresponding output. However this could be already signed,
// so we always verify the output. // so we always verify the output.
if (hashType & btcscript.SigHashSingle) == 0 || if (hashType&btcscript.SigHashSingle) == 0 ||
i < len(msgTx.TxOut) { i < len(msgTx.TxOut) {
script, err := btcscript.SignTxOutput(cfg.Net(), script, err := btcscript.SignTxOutput(cfg.Net(),