We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a66d17 commit 1a48c9bCopy full SHA for 1a48c9b
src/wallet/wallet.cpp
@@ -1884,8 +1884,12 @@ void CWallet::ReacceptWalletTransactions()
1884
1885
int nDepth = wtx.GetDepthInMainChain();
1886
1887
- if (!wtx.IsCoinBase() && !wtx.IsCoinStake() && (nDepth == 0 && !wtx.isAbandoned())) {
1888
- mapSorted.insert(std::make_pair(wtx.nOrderPos, &wtx));
+ if (nDepth == 0 && !wtx.isAbandoned()) {
+ if (wtx.IsCoinBase() || wtx.IsCoinStake()) {
1889
+ WalletLogPrintf("Abandoning orphaned coinbase/coinstake %s\n", wtxid.ToString());
1890
+ AbandonTransaction(wtxid);
1891
+ } else
1892
+ mapSorted.insert(std::make_pair(wtx.nOrderPos, &wtx));
1893
}
1894
1895
0 commit comments