diff options
author | stickies-v <stickies-v@protonmail.com> | 2022-09-30 10:42:04 +0100 |
---|---|---|
committer | stickies-v <stickies-v@protonmail.com> | 2022-09-30 14:47:39 +0100 |
commit | b01682a812f0841170657708ef0e896b904fcd77 (patch) | |
tree | af5305c99a8d428305d137c068eedc5ee5466c3f /src/wallet/wallet.h | |
parent | 9245f456705b285e2d9afcc01a6155e1b3f92fad (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.
Diffstat (limited to 'src/wallet/wallet.h')
-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; |