Skip to content

Commit

Permalink
we should abandon orphan mints
Browse files Browse the repository at this point in the history
  • Loading branch information
backpacker69 committed Jul 19, 2019
1 parent 854b7a5 commit 772e2b6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/wallet/wallet.cpp
Expand Up @@ -1723,8 +1723,11 @@ void CWallet::ReacceptWalletTransactions()

int nDepth = wtx.GetDepthInMainChain();

if (!(wtx.IsCoinBase() || wtx.IsCoinStake()) && (nDepth == 0 && !wtx.isAbandoned())) {
mapSorted.insert(std::make_pair(wtx.nOrderPos, &wtx));
if (nDepth == 0 && !wtx.isAbandoned()) {
if (wtx.IsCoinBase() || wtx.IsCoinStake())
AbandonTransaction(wtxid);
else
mapSorted.insert(std::make_pair(wtx.nOrderPos, &wtx));
}
}

Expand Down

0 comments on commit 772e2b6

Please sign in to comment.