Update for recent btcjson getrawtransaction change.
The ScriptSig field of the Vin type for TxRawResult is now a pointer in btcjson so it can be properly omitted. This commit updates the code to create the new ScriptSig object as needed.
This commit is contained in:
parent
e0fab228a4
commit
ca0e38e58b
1 changed files with 1 additions and 0 deletions
|
@ -1030,6 +1030,7 @@ func createTxRawResult(net btcwire.BitcoinNet, txSha string, mtx *btcwire.MsgTx,
|
||||||
vinList[i].Vout = int(uint32(v.PreviousOutpoint.Index))
|
vinList[i].Vout = int(uint32(v.PreviousOutpoint.Index))
|
||||||
|
|
||||||
disbuf, _ := btcscript.DisasmString(v.SignatureScript)
|
disbuf, _ := btcscript.DisasmString(v.SignatureScript)
|
||||||
|
vinList[i].ScriptSig = new(btcjson.ScriptSig)
|
||||||
vinList[i].ScriptSig.Asm = disbuf
|
vinList[i].ScriptSig.Asm = disbuf
|
||||||
vinList[i].ScriptSig.Hex = hex.EncodeToString(v.SignatureScript)
|
vinList[i].ScriptSig.Hex = hex.EncodeToString(v.SignatureScript)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue