Skip to content

Commit 96f42d8

Browse files
committed
Make nStartingHeight atomic
1 parent 512731b commit 96f42d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ class CNode
628628

629629
public:
630630
uint256 hashContinue;
631-
int nStartingHeight;
631+
std::atomic<int> nStartingHeight;
632632

633633
// flood relay
634634
std::vector<CAddress> vAddrToSend;

0 commit comments

Comments
 (0)