-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IF: deep-mind logging updates for 6.0 instant finality #2016
Comments
Are there any resources how the instant finality is going to work? I assume this is only impacting single blocks, while the LIB logic stays for all the others?
I guess that makes sense. So each instant final block will still have |
This exact field will not be available after instant finality is enabled. We can either create a
We will be creating more information as we move closer to release. I'm not sure I understand your question about LIB. Instant finality will have a different mechanism for determining LIB.
I am proposing that each block will be either |
For internal Firehose/Substreams logic it's important we are able to implement those two interfaces: https://github.com/streamingfast/firehose-core/blob/df7ce843a541ecdb8cac20dfdc04b4049d9bdce1/types.go#L16-L94 I don't see any other issues here besides the
We can handle it that way.
Looking forward to this. |
This was resolved by AntelopeIO/spring#16. |
Currently deep-mind logs
block_state
renamed toblock_state_legacy
inmain
.block_state_legacy
will not be used once instant finality is activated and enabled on-chain.See https://github.com/pinax-network/firehose-antelope/blob/deff673da16baf0441bdf316c9e546ef7f34fb09/codec/consolereader.go#L360
See https://github.com/pinax-network/firehose-antelope/blob/develop/codec/antelope/v3.1/hydrator.go#L22
It is unclear if all these values are actively used downstream. Some are no longer meaningful after instant finality is enabled. For example:
DPoSIrreversibleBlockNum
,DPoSProposedIrreversibleBlockNum
,ConfirmCount
,ProducerToLastProduced
,ProducerToLastImpliedIrb
,PendingSchedule
. There are new values in instant finality which may be useful such asActiveProposerPolicy
,ActiveFinalizerPolicy
.Proposal:
Add an
ACCEPTED_BLOCK_V2
which will output${num} ${blk2}
. Whereblk2
isstruct deepmind::block_state_v2;
The definition of
deepmind::block_state_v2
needs to be defined.@YaroShkvorets @fschoell @matthewdarwin Can you provide information on what values are used by firehose/substreams?
The text was updated successfully, but these errors were encountered: