diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index 85ebfa6de612e..13aaa703c0597 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -628,7 +628,7 @@ class CWallet : public CCryptoKeyStore, public CValidationInterface int64_t nNextResend; int64_t nLastResend; - int64_t nTimeBestReceived = 0; // Used only to inform the wallet of when we last received a block + std::atomic nTimeBestReceived{0}; // Used only to inform the wallet of when we last received a block /** * Used to keep track of spent outpoints, and