From 7654eb1eb51f22263516a6b223b10a0f3401960b Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Sun, 8 Dec 2013 20:21:23 -0600 Subject: [PATCH] Cast SatoshiPerBitcoin const for createTxRawResult. --- rpcserver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcserver.go b/rpcserver.go index 7fa5499f..326077c5 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -966,7 +966,7 @@ func createTxRawResult(net btcwire.BitcoinNet, txSha string, mtx *btcwire.MsgTx, for i, v := range txOutList { voutList[i].N = i - voutList[i].Value = float64(v.Value) / btcutil.SatoshiPerBitcoin + voutList[i].Value = float64(v.Value) / float64(btcutil.SatoshiPerBitcoin) _, addrhash, err := btcscript.ScriptToAddrHash(v.PkScript) if err != nil {