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 {