Skip to content

Commit

Permalink
fix: getblock for withdrawal transaction if verbosity level is 2
Browse files Browse the repository at this point in the history
  • Loading branch information
knst committed Oct 22, 2024
1 parent 0946eec commit 96c9b46
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core_write.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,10 @@ void TxToUniv(const CTransaction& tx, const uint256& hashBlock, bool include_add
}

if (calculate_fee) {
const CAmount fee = amt_total_in - amt_total_out;
CAmount fee = amt_total_in - amt_total_out;
if (tx.nType == TRANSACTION_ASSET_UNLOCK) {
fee = CHECK_NONFATAL(GetTxPayload<CAssetUnlockPayload>(tx))->getFee();
}
CHECK_NONFATAL(MoneyRange(fee));
entry.pushKV("fee", ValueFromAmount(fee));
}
Expand Down

0 comments on commit 96c9b46

Please sign in to comment.