aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.cpp
diff options
context:
space:
mode:
authorgzhao408 <gzhao408@berkeley.edu>2020-05-01 17:22:59 -0700
committergzhao408 <gzhao408@berkeley.edu>2020-05-17 17:52:11 -0700
commitd16006960443c2efe37c896e46edae9dca86c57d (patch)
treecf8da9c04116cfc2b599a2b193c978ab9c6ba0a8 /src/wallet/wallet.cpp
parentdc5333d31f280e09bb1e8cdacfbe842f4ab9e69b (diff)
[wallet] remove nLastResend logic
remove nLastResend because it's unnecessary now that rebroadcasts always happen at least 12 hours later
Diffstat (limited to 'src/wallet/wallet.cpp')
-rw-r--r--src/wallet/wallet.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
index 2b45c6a536..e1e8263ee1 100644
--- a/src/wallet/wallet.cpp
+++ b/src/wallet/wallet.cpp
@@ -1982,10 +1982,6 @@ void CWallet::ResendWalletTransactions()
nNextResend = GetTime() + (12 * 60 * 60) + GetRand(24 * 60 * 60);
if (fFirst) return;
- // Only do it if there's been a new block since last time
- if (m_best_block_time < nLastResend) return;
- nLastResend = GetTime();
-
int submitted_tx_count = 0;
{ // cs_wallet scope