From e930dc55f0b5f2534aead6f55bc1ccf258fb26d7 Mon Sep 17 00:00:00 2001 From: "John C. Vernaleo" Date: Fri, 22 Nov 2013 08:50:15 -0500 Subject: [PATCH] Change a variable name to match btcjson. --- rpcserver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcserver.go b/rpcserver.go index 9f5022a6a..bf6f4a19e 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -860,7 +860,7 @@ func handleGetRawTransaction(s *rpcServer, cmd btcjson.Cmd, walletNotification c voutList[i].Value = float64(v.Value) / 100000000 isbuf, _ := btcscript.DisasmString(v.PkScript) 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) if err != nil { // TODO: set and return error?