Skip to content

Commit d8f2b8a

Browse files
committed
Make nTimeBestReceived atomic
1 parent 22b4966 commit d8f2b8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net_processing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
# error "Bitcoin cannot be compiled without assertions."
3737
#endif
3838

39-
int64_t nTimeBestReceived = 0; // Used only to inform the wallet of when we last received a block
39+
std::atomic<int64_t> nTimeBestReceived(0); // Used only to inform the wallet of when we last received a block
4040

4141
struct IteratorComparator
4242
{

0 commit comments

Comments
 (0)