Skip to content

Commit d160069

Browse files
committed
[wallet] remove nLastResend logic
remove nLastResend because it's unnecessary now that rebroadcasts always happen at least 12 hours later
1 parent dc5333d commit d160069

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/wallet/wallet.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1982,10 +1982,6 @@ void CWallet::ResendWalletTransactions()
19821982
nNextResend = GetTime() + (12 * 60 * 60) + GetRand(24 * 60 * 60);
19831983
if (fFirst) return;
19841984

1985-
// Only do it if there's been a new block since last time
1986-
if (m_best_block_time < nLastResend) return;
1987-
nLastResend = GetTime();
1988-
19891985
int submitted_tx_count = 0;
19901986

19911987
{ // cs_wallet scope

src/wallet/wallet.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,6 @@ class CWallet final : public WalletStorage, public interfaces::Chain::Notificati
641641
int nWalletMaxVersion GUARDED_BY(cs_wallet) = FEATURE_BASE;
642642

643643
int64_t nNextResend = 0;
644-
int64_t nLastResend = 0;
645644
bool fBroadcastTransactions = false;
646645
// Local time that the tip block was received. Used to schedule wallet rebroadcasts.
647646
std::atomic<int64_t> m_best_block_time {0};

0 commit comments

Comments
 (0)