diff --git a/db/dcrpg/queries.go b/db/dcrpg/queries.go index f85afbd0b..4823239a1 100644 --- a/db/dcrpg/queries.go +++ b/db/dcrpg/queries.go @@ -4027,7 +4027,7 @@ func parseRowsSentReceived(rows *sql.Rows) (*dbtypes.ChartsData, error) { // given block. If the difference is positive then the value is unspent amount // otherwise if the value is zero then all amount is spent and if the net amount // is negative then for the given block more amount was sent than received. - items.Net = append(items.Net, toCoin(received-sent)) + items.Net = append(items.Net, toCoin(int64(received)-int64(sent))) } if err := rows.Err(); err != nil { return nil, err