diff options
author | stickies-v <stickies-v@protonmail.com> | 2022-09-30 11:03:53 +0100 |
---|---|---|
committer | stickies-v <stickies-v@protonmail.com> | 2022-09-30 14:47:38 +0100 |
commit | 7fbde8af5c06694eecd4ce601109bd826a54bd6f (patch) | |
tree | 67bda832a3d96935ece47be9b60c3ad3ef774432 /src/wallet/wallet.h | |
parent | 01f3534632d18c772901fb6ce22f6394eae96799 (diff) |
refactor: carve out tx resend timer logic into ShouldResend
Moves the logic of whether or not transactions should actually be
resent out of the function that's resending them. This reduces
responsibilities of ResubmitWalletTransactions and allows
carving out the updating of m_next_resend in a future commit.
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r-- | src/wallet/wallet.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index 6a1b76505c..9ee077b060 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -537,6 +537,8 @@ public: }; ScanResult ScanForWalletTransactions(const uint256& start_block, int start_height, std::optional<int> max_height, const WalletRescanReserver& reserver, bool fUpdate, const bool save_progress); void transactionRemovedFromMempool(const CTransactionRef& tx, MemPoolRemovalReason reason, uint64_t mempool_sequence) override; + /** Return true if all conditions for periodically resending transactions are met. */ + bool ShouldResend() const; void ResubmitWalletTransactions(bool relay, bool force); OutputType TransactionChangeType(const std::optional<OutputType>& change_type, const std::vector<CRecipient>& vecSend) const; |