Open shunjizhan opened 2 days ago
We need a mode to handle block finalization strategy.
Add new config finalize-block-mode that can be:
and add new RPC dev_setFinalizedHead
to control which block should be finalized
on manual mode, dev_newBlock
can have a finalize: bool
argument to specify if this block should be mark as finalized
add a param to
dev_newBlock
to specify if the new blocks should be finalized, similar toprovider.api.rpc.engine.createBlock
. This will be helpful for testing finalization related behaviors.