Cast SatoshiPerBitcoin const for createTxRawResult.

This commit is contained in:
Dave Collins 2013-12-08 20:21:23 -06:00
parent 22b61f634a
commit 7654eb1eb5

View file

@ -966,7 +966,7 @@ func createTxRawResult(net btcwire.BitcoinNet, txSha string, mtx *btcwire.MsgTx,
for i, v := range txOutList { for i, v := range txOutList {
voutList[i].N = i 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) _, addrhash, err := btcscript.ScriptToAddrHash(v.PkScript)
if err != nil { if err != nil {