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",
"account": account,
"address": address,
"amount": tx.Amount,
"amount": float64(tx.Amount) / float64(btcutil.SatoshiPerBitcoin),
"txid": tx.TxID.String(),
"timereceived": tx.TimeReceived,
}
@ -974,7 +974,7 @@ func (tx *SendTx) TxInfo(account string, curheight int32,
"account": account,
"address": address,
"category": "send",
"amount": -pair.Amount,
"amount": float64(-pair.Amount) / float64(btcutil.SatoshiPerBitcoin),
"fee": float64(tx.Fee) / float64(btcutil.SatoshiPerBitcoin),
"confirmations": confirmations,
"txid": txIDStr,