reorgs, fetch batching (parallel fetch), orphans
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include <uint256.h>
|
||||
|
||||
#include <block/chain.h>
|
||||
#include <pthread.h>
|
||||
|
||||
extern uint64_t currentBlockHeight;
|
||||
extern blockchain_t* currentChain;
|
||||
@@ -14,4 +15,8 @@ extern uint64_t currentReward;
|
||||
extern uint32_t difficultyTarget;
|
||||
extern const char* chainDataDir;
|
||||
|
||||
// Global synchronization primitives for runtime state
|
||||
extern pthread_rwlock_t chainLock; // protects chain structure and related mutations
|
||||
extern pthread_mutex_t balanceSheetLock; // protects balance sheet map
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user