diff --git a/src/core_write.cpp b/src/core_write.cpp index 5ff0f59451..bccfb960d8 100644 --- a/src/core_write.cpp +++ b/src/core_write.cpp @@ -261,8 +261,13 @@ void TxToUniv(const CTransaction& tx, const uint256& block_hash, UniValue& entry if (have_undo) { const CAmount fee = amt_total_in - amt_total_out; - CHECK_NONFATAL(MoneyRange(fee)); - entry.pushKV("fee", ValueFromAmount(fee)); + if (!tx.IsCoinStake()) { + CHECK_NONFATAL(MoneyRange(fee)); + entry.pushKV("fee", ValueFromAmount(fee)); + } + else { + entry.pushKV("reward", ValueFromAmount(-fee)); + } } if (!block_hash.IsNull()) {