Send number of bitcoins, not satoshis, with listtransactions reply.
This commit is contained in:
parent
413f23ea18
commit
e615f250d1
1 changed files with 2 additions and 2 deletions
4
tx/tx.go
4
tx/tx.go
|
@ -847,7 +847,7 @@ func (tx *RecvTx) TxInfo(account string, curheight int32,
|
||||||
"category": "receive",
|
"category": "receive",
|
||||||
"account": account,
|
"account": account,
|
||||||
"address": address,
|
"address": address,
|
||||||
"amount": tx.Amount,
|
"amount": float64(tx.Amount) / float64(btcutil.SatoshiPerBitcoin),
|
||||||
"txid": tx.TxID.String(),
|
"txid": tx.TxID.String(),
|
||||||
"timereceived": tx.TimeReceived,
|
"timereceived": tx.TimeReceived,
|
||||||
}
|
}
|
||||||
|
@ -974,7 +974,7 @@ func (tx *SendTx) TxInfo(account string, curheight int32,
|
||||||
"account": account,
|
"account": account,
|
||||||
"address": address,
|
"address": address,
|
||||||
"category": "send",
|
"category": "send",
|
||||||
"amount": -pair.Amount,
|
"amount": float64(-pair.Amount) / float64(btcutil.SatoshiPerBitcoin),
|
||||||
"fee": float64(tx.Fee) / float64(btcutil.SatoshiPerBitcoin),
|
"fee": float64(tx.Fee) / float64(btcutil.SatoshiPerBitcoin),
|
||||||
"confirmations": confirmations,
|
"confirmations": confirmations,
|
||||||
"txid": txIDStr,
|
"txid": txIDStr,
|
||||||
|
|
Loading…
Reference in a new issue