Skip to content

Commit 562ad2b

Browse files
committed
wallet: drop collateral outpoints filtering from balance calculation
The wallet should not concern itself with masternode mode state. Client side mixing is not available for masternodes and masternodes are no longer allowed to have the collateral in their own local wallet, drop it.
1 parent 873dee0 commit 562ad2b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/wallet/coinjoin.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
#include <coinjoin/common.h>
1515
#include <coinjoin/options.h>
16-
#include <evo/dmn_types.h>
1716

1817
namespace wallet {
1918
void CWallet::InitCJSaltFromDb()
@@ -181,7 +180,6 @@ std::vector<CompactTallyItem> CWallet::SelectCoinsGroupedByAddresses(bool fSkipD
181180
if (fAnonymizable) {
182181
// ignore collaterals
183182
if (CoinJoin::IsCollateralAmount(wtx.tx->vout[i].nValue)) continue;
184-
if (fMasternodeMode && dmn_types::IsCollateralAmount(wtx.tx->vout[i].nValue)) continue;
185183
// ignore outputs that are 10 times smaller then the smallest denomination
186184
// otherwise they will just lead to higher fee / lower priority
187185
if (wtx.tx->vout[i].nValue <= nSmallestDenom / 10) continue;

0 commit comments

Comments
 (0)