State Snapshot Algorithm (SSA) aka “Genesis Algorithm”
Last updated
Last updated
State Snapshot Algorithm (SSA) aka “Genesis Algorithm”:
State Snapshot Algorithm produces Genesis Blocks each 100 blocks. Genesis Blocks hold Actors’ balances data and serves as state backup and foothold for devices in “Fast Blockchain” mode.
Genesis block production algorithm:
Find last Genesis Block and load IDs and balances;
Collect all new balances and make all changes from last Genesis Block to current block;
Merge collected data with loaded data;
Distribute new Genesis Block;
If device receives new Genesis Block, then BPA starts, but only for previous and new Genesis Block.