Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Skip checking drivechain outputs in AvailableCoins
Browse files Browse the repository at this point in the history
* Skip drivechain outputs in CWallet::AvailableCoins
  • Loading branch information
CryptAxe committed May 1, 2024
1 parent 343c090 commit 4e87259
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2402,6 +2402,11 @@ void CWallet::AvailableCoins(std::vector<COutput> &vCoins, bool fOnlySafe, const
continue;

for (unsigned int i = 0; i < pcoin->tx->vout.size(); i++) {
// Skip Drivechain CTIP outputs
uint8_t nSidechain = 0;
if (pcoin->tx->vout[i].scriptPubKey.IsDrivechain(nSidechain))
continue;

if (pcoin->tx->vout[i].nValue < nMinimumAmount || pcoin->tx->vout[i].nValue > nMaximumAmount)
continue;

Expand Down

0 comments on commit 4e87259

Please sign in to comment.