From 9245f456705b285e2d9afcc01a6155e1b3f92fad Mon Sep 17 00:00:00 2001 From: stickies-v Date: Fri, 30 Sep 2022 11:11:31 +0100 Subject: [PATCH] wallet: only update m_next_resend when actually resending We only want to relay our resubmitted transactions once every 12-36h. By separating the timer update logic out of ResubmitWalletTransactions and into MaybeResendWalletTxs we avoid non-relay calls (previously in the separate ReacceptWalletTransactions function) from resetting that timer. --- src/wallet/wallet.cpp | 10 +++++----- src/wallet/wallet.h | 6 +++++- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 6ef3c9b66a9..2a4e6df54b3 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -21,6 +21,7 @@ #include #include #include +#include #include