Skip to content

Epoch Allocation And Scoping

Jonathan Lifflander edited this page Jan 12, 2021 · 14 revisions

The current epoch allocation/bit layout follows this pattern:

Basic epoch Layout:

   w-1 .............. w-h-1 ...............w-h-c-1 ....................0
   | <EpochHeader> ... | <EpochCategory> ... | <Sequential Epoch ID>   |

      *where*    h = epoch_header_num_bits,
                 c = epoch_category_num_bits,
                 w = sizeof(EpochType) * 8
                 n = sizeof(NodeType)
  
Rooted epoch breakdown:
                                             ^             ^           ^
                                             | .... n .... | ..........|
                                               <NodeType>  <SeqEpochID>