Skip to content

Commit 8a66add

Browse files
TheBlueMattFuzzbawls
authored andcommitted
Make nStartingHeight atomic
1 parent 567c9b5 commit 8a66add

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
@@ -600,7 +600,7 @@ class CNode
600600

601601
public:
602602
uint256 hashContinue;
603-
int nStartingHeight;
603+
std::atomic<int> nStartingHeight;
604604

605605
// flood relay
606606
std::vector<CAddress> vAddrToSend;

0 commit comments

Comments
 (0)