0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-09 10:43:19 -05:00

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.
This commit is contained in:
stickies-v 2022-09-30 10:42:04 +01:00
parent 9245f45670
commit b01682a812
No known key found for this signature in database
GPG key ID: 5CB1CE6E5E66A757

View file

@ -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;