Note the negative "amount" and the positive "fee". While there is some internal logic to it ('amount' being the sum we spent, and if we actually gained money, then that number is negative; 'fee' being the negative sum we paid to the miner, and if we mined the block, then the fee is positive), it's confusing. Likewise, filtertransaction adds the amount and the fee, and displays zero for coinbase transactions, so, in the GUI wallet, you see a row of 0-UTE transactions.
To Reproduce
Steps to reproduce the behavior:
Start the node (optionally, the GUI wallet)
Wait until a few blocks are mined.
Inspect the coinbase transactions, either with gettransaction, filtertransactions or in the GUI wallet.
Expected behavior
The shown amounts for coinbase transactions should be positive and equal to the block reward + fees. The "fee" field should be zero.
Describe the bug When calling
gettransaction
on a coinbase transaction, the result looks like:Note the negative "amount" and the positive "fee". While there is some internal logic to it ('amount' being the sum we spent, and if we actually gained money, then that number is negative; 'fee' being the negative sum we paid to the miner, and if we mined the block, then the fee is positive), it's confusing. Likewise,
filtertransaction
adds the amount and the fee, and displays zero for coinbase transactions, so, in the GUI wallet, you see a row of 0-UTE transactions.To Reproduce Steps to reproduce the behavior:
gettransaction
,filtertransactions
or in the GUI wallet.Expected behavior The shown amounts for coinbase transactions should be positive and equal to the block reward + fees. The "fee" field should be zero.