#ifndef RUNTIME_STATE_H #define RUNTIME_STATE_H #include #include #include #include extern uint64_t currentBlockHeight; extern blockchain_t* currentChain; extern uint256_t currentSupply; extern uint64_t currentReward; extern uint32_t difficultyTarget; extern const char* chainDataDir; extern unsigned short listenPort; extern bool echoPeersEnabled; extern bool forceOrphanReorgEnabled; // 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