Updated createTxRawResult to use btcutil.SatoshiPerBitcoin

This commit is contained in:
Francis Lam 2013-12-08 18:47:39 -05:00
parent dd10de9e8b
commit 22b61f634a

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) / 100000000 voutList[i].Value = float64(v.Value) / btcutil.SatoshiPerBitcoin
_, addrhash, err := btcscript.ScriptToAddrHash(v.PkScript) _, addrhash, err := btcscript.ScriptToAddrHash(v.PkScript)
if err != nil { if err != nil {