Skip to content

Commit

Permalink
fix: make composite rpc 'masternode payments' to work with withdrawals
Browse files Browse the repository at this point in the history
  • Loading branch information
knst committed Oct 22, 2024
1 parent e498378 commit f6169fa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/rpc/masternode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include <chainparams.h>
#include <evo/assetlocktx.h>
#include <evo/chainhelper.h>
#include <evo/deterministicmns.h>
#include <governance/classes.h>
Expand Down Expand Up @@ -406,6 +407,11 @@ static RPCHelpMan masternode_payments()
if (tx->IsCoinBase()) {
continue;
}
if (tx->IsPlatformTransfer()) {
nBlockFees += CHECK_NONFATAL(GetTxPayload<CAssetUnlockPayload>(*tx))->getFee();
continue;
}

CAmount nValueIn{0};
for (const auto& txin : tx->vin) {
uint256 blockHashTmp;
Expand Down

0 comments on commit f6169fa

Please sign in to comment.