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:
Dave Collins 2013-12-27 12:23:15 -06:00
parent e0fab228a4
commit ca0e38e58b

View file

@ -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)
} }