Skip to content

Commit b01682a

Browse files
committed
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.
1 parent 9245f45 commit b01682a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/wallet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ class CWallet final : public WalletStorage, public interfaces::Chain::Notificati
250250
int nWalletVersion GUARDED_BY(cs_wallet){FEATURE_BASE};
251251

252252
/** The next scheduled rebroadcast of wallet transactions. */
253-
std::atomic<int64_t> m_next_resend{GetDefaultNextResend()};
253+
int64_t m_next_resend{GetDefaultNextResend()};
254254
/** Whether this wallet will submit newly created transactions to the node's mempool and
255255
* prompt rebroadcasts (see ResendWalletTransactions()). */
256256
bool fBroadcastTransactions = false;

0 commit comments

Comments
 (0)