diff options
author | stickies-v <stickies-v@protonmail.com> | 2022-09-30 10:42:04 +0100 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-10-13 23:38:20 +0800 |
commit | 9b438f06ecfc3fb21d2c5219b71fb4aa77875b8c (patch) | |
tree | f2a58eb0128fee18dbf71b44a47bafed61b82c56 | |
parent | 43ced0b436b05ed12489a99bbac89f3b4c9ac035 (diff) |
refactor: revert m_next_resend to not be std::atomic
Since m_next_resend is now only called from MaybeResendWalletTxs()
we don't have any potential race conditions anymore, so the usage
of std::atomic can be reverted.
Github-Pull: #26205
Rebased-From: b01682a812f0841170657708ef0e896b904fcd77
-rw-r--r-- | src/wallet/wallet.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index 488d978366..2f10c598b5 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. */ - std::atomic<int64_t> m_next_resend{GetDefaultNextResend()}; + int64_t m_next_resend{GetDefaultNextResend()}; /** Whether this wallet will submit newly created transactions to the node's mempool and * prompt rebroadcasts (see ResendWalletTransactions()). */ bool fBroadcastTransactions = false; |