std::unique_ptr<cryptonote::Blockchain> bc; \
cryptonote::tx_memory_pool txpool(*bc); \
const std::pair<uint8_t, uint64_t> hard_forks[3]; \
hard_forks, \
window, \
}; \
} opts; \
cryptonote::Blockchain *blockchain = bc.get(); \
if (!r) \
{ \
fprintf(stderr, "Failed to init blockchain\n"); \
exit(1); \
}
#define LONG_TERM_BLOCK_WEIGHT_WINDOW
unsigned __int64 uint64_t
bool init(BlockchainDB *db, const network_type nettype=MAINNET, bool offline=false, const cryptonote::test_options *test_options=NULL, difficulty_type fixed_difficulty=0, const GetCheckpointsCallback &get_checkpoints=nullptr, bool ignore_bsig=false, bool fallback_to_pow=false)
Initialize the Blockchain state.