Updated createTxRawResult to use btcutil.SatoshiPerBitcoin
This commit is contained in:
parent
dd10de9e8b
commit
22b61f634a
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue