Cast SatoshiPerBitcoin const for createTxRawResult.
This commit is contained in:
parent
22b61f634a
commit
7654eb1eb5
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 {
|
||||
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 {
|
||||
|
|
Loading…
Reference in a new issue