From 478a7ec867c16a610f84001ab558d69bc0ff044c Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Sun, 29 Jun 2014 17:21:30 -0500 Subject: [PATCH] Update for recent btcjson changes. This commit updates the types to match the recent changes to the btcjson result types. --- rpcserver.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rpcserver.go b/rpcserver.go index a543d2a..f6bce43 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -1263,11 +1263,11 @@ func GetInfo(icmd btcjson.Cmd) (interface{}, error) { for _, v := range accounts { balance += v } - info.WalletVersion = int(wallet.VersCurrent.Uint32()) + info.WalletVersion = int32(wallet.VersCurrent.Uint32()) info.Balance = balance // Keypool times are not tracked. set to current time. info.KeypoolOldest = time.Now().Unix() - info.KeypoolSize = int(cfg.KeypoolSize) + info.KeypoolSize = int32(cfg.KeypoolSize) TxFeeIncrement.Lock() info.PaytxFee = float64(TxFeeIncrement.i) / float64(btcutil.SatoshiPerBitcoin) TxFeeIncrement.Unlock() @@ -2636,7 +2636,7 @@ func ValidateAddress(icmd btcjson.Cmd) (interface{}, error) { // script type result.Script = class.String() if class == btcscript.MultiSigTy { - result.SigsRequired = sa.RequiredSigs() + result.SigsRequired = int32(sa.RequiredSigs()) } } }