aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.h
diff options
context:
space:
mode:
authorMacroFake <falke.marco@gmail.com>2022-09-20 12:06:24 +0200
committerMacroFake <falke.marco@gmail.com>2022-09-20 11:49:57 +0200
commitfad61573ed547615f73710cb59b2fb0ecafed127 (patch)
tree5611db7e38983068c06d9ee242fbaa3be176b52c /src/wallet/wallet.h
parent9f650062fc4350d8c50ac8890cddd4d99f20f895 (diff)
Fix nNextResend data race in ResubmitWalletTransactions
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r--src/wallet/wallet.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h
index f4ea5f1920..6a1b76505c 100644
--- a/src/wallet/wallet.h
+++ b/src/wallet/wallet.h
@@ -250,7 +250,7 @@ private:
int nWalletVersion GUARDED_BY(cs_wallet){FEATURE_BASE};
/** The next scheduled rebroadcast of wallet transactions. */
- int64_t nNextResend = 0;
+ std::atomic<int64_t> m_next_resend{};
/** Whether this wallet will submit newly created transactions to the node's mempool and
* prompt rebroadcasts (see ResendWalletTransactions()). */
bool fBroadcastTransactions = false;