Send number of bitcoins, not satoshis, with listtransactions reply.

This commit is contained in:
Josh Rickmar 2013-11-27 13:55:14 -05:00
parent 413f23ea18
commit e615f250d1

View file

@ -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,