mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +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.
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||||
|
|
||||||
#include <chainparams.h>
|
#include <chainparams.h>
|
||||||
|
#include <evo/assetlocktx.h>
|
||||||
#include <evo/chainhelper.h>
|
#include <evo/chainhelper.h>
|
||||||
#include <evo/deterministicmns.h>
|
#include <evo/deterministicmns.h>
|
||||||
#include <governance/classes.h>
|
#include <governance/classes.h>
|
||||||
@ -406,6 +407,11 @@ static RPCHelpMan masternode_payments()
|
|||||||
if (tx->IsCoinBase()) {
|
if (tx->IsCoinBase()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (tx->IsPlatformTransfer()) {
|
||||||
|
nBlockFees += CHECK_NONFATAL(GetTxPayload<CAssetUnlockPayload>(*tx))->getFee();
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
CAmount nValueIn{0};
|
CAmount nValueIn{0};
|
||||||
for (const auto& txin : tx->vin) {
|
for (const auto& txin : tx->vin) {
|
||||||
uint256 blockHashTmp;
|
uint256 blockHashTmp;
|
||||||
|
Loading…
Reference in New Issue
Block a user