Documentation
¶
Overview ¶
Used by the block file handler to periodically consolidate individual block files into 1000 block file units.
The block file handler does menial tasks in relation to the block storage file system.
It can retrieve blocks (with some caching) and store them, from individual block files, consolidated block files, or from an online source provided by Nyzo.
Nyzo stores a balance list with each block. Since this is handled here, balance list updates and checking, as well as emission of all blockchain-related events to the DB storage in archive mode are handled by the block file handler.
Implements the "BlockFileHandler" interface defined in nyzo/interfaces.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindHighestIndividualBlockFile ¶
func FindHighestIndividualBlockFile() int64
Just what it says: find highest individual block file on disk. Static utility.
func NewBlockFileHandler ¶
func NewBlockFileHandler(ctxt *interfaces.Context) interfaces.BlockFileHandlerInterface
Create a block file handler.
Types ¶
This section is empty.