Skip to content

Commit

Permalink
Fixed coincontrol logic (thus fixing many tests behaviour)
Browse files Browse the repository at this point in the history
  • Loading branch information
psolstice committed Aug 18, 2024
1 parent fbea637 commit f603de6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ bool CTransparentTxout::IsCoinTypeCompatible(const CCoinControl* coinControl) co
assert(!txout.IsNull());

if (!coinControl)
return GetValue() != 1000 * COIN;
return true;
else if (coinControl->nCoinType == CoinType::ONLY_MINTS)
return false;
else if (coinControl->nCoinType == CoinType::ONLY_NONDENOMINATED_NOT1000IFMN)
Expand All @@ -224,10 +224,8 @@ bool CTransparentTxout::IsCoinTypeCompatible(const CCoinControl* coinControl) co
return !fMasternodeMode || GetValue() != 1000 * COIN;
else if (coinControl->nCoinType == CoinType::ONLY_1000)
return GetValue() == 1000 * COIN;
else if (coinControl->nCoinType == CoinType::WITH_1000)
return true;
else
return GetValue() != 1000 * COIN;
return true;
}

bool CTransparentTxout::IsLLMQInstantSendLocked() const {
Expand Down

0 comments on commit f603de6

Please sign in to comment.