File tree 2 files changed +0
-23
lines changed
2 files changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -2022,26 +2022,6 @@ void CWallet::ReacceptWalletTransactions()
2022
2022
}
2023
2023
}
2024
2024
2025
- void CWallet::AbandonOrphanedCoinstakes ()
2026
- {
2027
- LOCK (cs_wallet);
2028
-
2029
- for (std::pair<const uint256, CWalletTx>& item : mapWallet) {
2030
- const uint256& wtxid = item.first ;
2031
- CWalletTx& wtx = item.second ;
2032
- assert (wtx.GetHash () == wtxid);
2033
-
2034
- int nDepth = wtx.GetDepthInMainChain ();
2035
-
2036
- if (nDepth == 0 && !wtx.isAbandoned () && wtx.IsCoinStake ()) {
2037
- LogPrintf (" Abandoning coinstake wtx %s\n " , wtx.GetHash ().ToString ());
2038
- if (!AbandonTransaction (wtxid)) {
2039
- LogPrintf (" Failed to abandon coinstake tx %s\n " , wtx.GetHash ().ToString ());
2040
- }
2041
- }
2042
- }
2043
- }
2044
-
2045
2025
bool CWalletTx::SubmitMemoryPoolAndRelay (std::string& err_string, bool relay, CAmount override_max_fee)
2046
2026
{
2047
2027
// Can't relay if wallet is not broadcasting
Original file line number Diff line number Diff line change @@ -821,9 +821,6 @@ friend class CWalletTx;
821
821
}
822
822
WalletDatabase& GetDatabase () const override { return *database; }
823
823
824
- // Scheuler function to abandon orphaned coinstakes
825
- void AbandonOrphanedCoinstakes ();
826
-
827
824
/* *
828
825
* Select a set of coins such that nValueRet >= nTargetValue and at least
829
826
* all coins from coinControl are selected; Never select unconfirmed coins
You can’t perform that action at this time.
0 commit comments