Change a variable name to match btcjson.
This commit is contained in:
parent
07c656c8b5
commit
e930dc55f0
1 changed files with 1 additions and 1 deletions
|
@ -860,7 +860,7 @@ func handleGetRawTransaction(s *rpcServer, cmd btcjson.Cmd, walletNotification c
|
||||||
voutList[i].Value = float64(v.Value) / 100000000
|
voutList[i].Value = float64(v.Value) / 100000000
|
||||||
isbuf, _ := btcscript.DisasmString(v.PkScript)
|
isbuf, _ := btcscript.DisasmString(v.PkScript)
|
||||||
voutList[i].ScriptPubKey.Asm = isbuf
|
voutList[i].ScriptPubKey.Asm = isbuf
|
||||||
voutList[i].ScriptPubKey.ReqSig = strings.Count(isbuf, "OP_CHECKSIG")
|
voutList[i].ScriptPubKey.ReqSigs = strings.Count(isbuf, "OP_CHECKSIG")
|
||||||
_, addrhash, err := btcscript.ScriptToAddrHash(v.PkScript)
|
_, addrhash, err := btcscript.ScriptToAddrHash(v.PkScript)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// TODO: set and return error?
|
// TODO: set and return error?
|
||||||
|
|
Loading…
Reference in a new issue