Information about the current state of the Action Reader
Loads a block with the given block number, returning a promise for a Block
.
The number of the block to load
Loads the number of the latest block.
Loads the number of the most recent irreversible block.
Loads, processes, and returns the next block, updating all relevant state. Return value at index 0 is the Block
instance; return value at index 1 boolean isRollback
determines if the implemented AbstractActionHandler
needs
to potentially reverse processed blocks (in the event of a fork); return value at index 2 boolean isNewBlock
indicates if the Block
instance returned is the same one that was just returned from the last call of
nextBlock
.
Performs all required initialization for the reader.
Incrementally rolls back reader state one block at a time, comparing the blockHistory with newly fetched blocks. Fork resolution is finished when either the current block's previous hash matches the previous block's hash, or when history is exhausted.
Changes the state of the AbstractActionReader
instance to have just processed the block at the given block
number. If the block exists in its temporary block history, it will use this, otherwise it will fetch the block
using getBlock
.
The next time nextBlock()
is called, it will load the block after this input block number.
Idempotently performs any required setup.
Reads blocks from a blockchain, outputting normalized
Block
objects.