Changeset View
Changeset View
Standalone View
Standalone View
src/chain.h
| Show First 20 Lines • Show All 145 Lines • ▼ Show 20 Lines | enum BlockStatus : uint32_t { | ||||
| BLOCK_HAVE_UNDO = 16, | BLOCK_HAVE_UNDO = 16, | ||||
| BLOCK_HAVE_MASK = BLOCK_HAVE_DATA | BLOCK_HAVE_UNDO, | BLOCK_HAVE_MASK = BLOCK_HAVE_DATA | BLOCK_HAVE_UNDO, | ||||
| //!< stage after last reached validness failed | //!< stage after last reached validness failed | ||||
| BLOCK_FAILED_VALID = 32, | BLOCK_FAILED_VALID = 32, | ||||
| //!< descends from failed block | //!< descends from failed block | ||||
| BLOCK_FAILED_CHILD = 64, | BLOCK_FAILED_CHILD = 64, | ||||
| BLOCK_FAILED_MASK = BLOCK_FAILED_VALID | BLOCK_FAILED_CHILD, | BLOCK_FAILED_MASK = BLOCK_FAILED_VALID | BLOCK_FAILED_CHILD, | ||||
| //!< excessive block | |||||
| BLOCK_EXCESSIVE = 128, | |||||
| //!< mask for all the errors | |||||
| BLOCK_NOT_VALID_MASK = BLOCK_EXCESSIVE | BLOCK_FAILED_MASK | |||||
| }; | }; | ||||
| /** | /** | ||||
| * The block chain is a tree shaped structure starting with the genesis block at | * The block chain is a tree shaped structure starting with the genesis block at | ||||
| * the root, with each block potentially having multiple candidates to be the | * the root, with each block potentially having multiple candidates to be the | ||||
| * next block. A blockindex may have multiple pprev pointing to it, but at most | * next block. A blockindex may have multiple pprev pointing to it, but at most | ||||
| * one of them can be part of the currently active branch. | * one of them can be part of the currently active branch. | ||||
| */ | */ | ||||
| ▲ Show 20 Lines • Show All 321 Lines • Show Last 20 Lines | |||||