Every received block is assigned a unique and increasing identifier, so we know which one to give priority in case of a fork.
Synopsis
Declared in <validation.h>
[[guarded_by(0x7fbc8fcf8668), guarded_by(0x7fbc96d90e28), guarded_by(0x7fbcaf726898), guarded_by(0x7fbc9e23df78)]]
int32_t nBlockSequenceId = SEQ_ID_INIT_FROM_DISK + 1;
Description
Blocks loaded from disk are assigned id SEQ_ID_INIT_FROM_DISK{1} (SEQ_ID_BEST_CHAIN_FROM_DISK{0} if they belong to the best chain loaded from disk), so start the counter after that. *
Created with MrDocs