linera-protocol
linera-protocol copied to clipboard
Initial commit for the block exporter.
Motivation
Initial work for #3661.
Proposal
- Created a new service implementing the
NotifierServicefrom linera-rpc to receive redirected notifications about new blocks from the chain workers, similar to linera-proxy(closes #3662). - A new CLI parsable type
BlockExporterConfigto define the configuration options for the linera-exporter from a toml file(closes #3664). - Extended
linera net upto optionally run a block exporter with a optional specified configuration(closes #3663). - Added a new view object
BlockExporterStateViewto track and update the latest information about the blocks from the workers(closes #3665). - This PR also partially addresses #3666, without the topological sorting part.
Test Plan
new unit and integration tests + CI