diff options
| author | gzhao408 <[email protected]> | 2020-05-01 17:22:59 -0700 |
|---|---|---|
| committer | gzhao408 <[email protected]> | 2020-05-17 17:52:11 -0700 |
| commit | d16006960443c2efe37c896e46edae9dca86c57d (patch) | |
| tree | cf8da9c04116cfc2b599a2b193c978ab9c6ba0a8 | |
| parent | Merge #18938: tests: Fill fuzzing coverage gaps for functions in consensus/va... (diff) | |
| download | discoin-d16006960443c2efe37c896e46edae9dca86c57d.tar.xz discoin-d16006960443c2efe37c896e46edae9dca86c57d.zip | |
[wallet] remove nLastResend logic
remove nLastResend because it's unnecessary now that rebroadcasts always happen at least 12 hours later
| -rw-r--r-- | src/wallet/wallet.cpp | 4 | ||||
| -rw-r--r-- | src/wallet/wallet.h | 1 |
2 files changed, 0 insertions, 5 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 2b45c6a53..e1e8263ee 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 diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index a29fa2220..9d312e8ee 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -641,7 +641,6 @@ private: int nWalletMaxVersion GUARDED_BY(cs_wallet) = FEATURE_BASE; int64_t nNextResend = 0; - int64_t nLastResend = 0; bool fBroadcastTransactions = false; // Local time that the tip block was received. Used to schedule wallet rebroadcasts. std::atomic<int64_t> m_best_block_time {0}; |