Now that we're initialising the blockchain machine at the start, we need to make sure the blockchain machine has already started and set it's initial state.
start block processor to populate the block cache
start the blockchain machine to set the initial state
now register for newly emitted blocks in the blockprocessor
Option 1 split start into 2 methods
Option 2, pass some start stop dependencies, and require that they are started within the start function.
Option 2 seems better - it's easy for a programmer to forget to call 2! start methods.
Now that we're initialising the blockchain machine at the start, we need to make sure the blockchain machine has already started and set it's initial state.
Option 1 split start into 2 methods
Option 2, pass some start stop dependencies, and require that they are started within the start function.
Option 2 seems better - it's easy for a programmer to forget to call 2! start methods.