mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
fix: make composite rpc 'masternode payments' to work with withdrawals
This commit is contained in:
parent
e498378eb7
commit
f6169fade4
@ -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>
|
||||
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user