-
Notifications
You must be signed in to change notification settings - Fork 86
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
Replace anachronisticLedgerView
by ledgerViewForecastAt
#1942
Conversation
I think the intersection point maintained by the chain sync client is not correct, or we are not disconnecting then the intersection with the upstream node is more than
|
6785f16
to
523ae81
Compare
Comment above is wrong. See IntersectMBO/ouroboros-consensus#763 . |
Rebased on #1946 as that will be merged first. |
7305a9c
to
5415034
Compare
ouroboros-consensus/src/Ouroboros/Consensus/Ledger/SupportsProtocol.hs
Outdated
Show resolved
Hide resolved
ouroboros-consensus/src/Ouroboros/Consensus/Ledger/SupportsProtocol.hs
Outdated
Show resolved
Hide resolved
ouroboros-consensus/src/Ouroboros/Consensus/Ledger/SupportsProtocol.hs
Outdated
Show resolved
Hide resolved
ouroboros-consensus/src/Ouroboros/Consensus/Ledger/SupportsProtocol.hs
Outdated
Show resolved
Hide resolved
ouroboros-consensus-byron/src/Ouroboros/Consensus/Byron/Ledger/Ledger.hs
Outdated
Show resolved
Hide resolved
ouroboros-consensus-byron/src/Ouroboros/Consensus/Byron/Ledger/Ledger.hs
Outdated
Show resolved
Hide resolved
ouroboros-consensus-byron/src/Ouroboros/Consensus/Byron/Ledger/Ledger.hs
Show resolved
Hide resolved
ouroboros-consensus-shelley/src/Ouroboros/Consensus/Shelley/Ledger/Ledger.hs
Outdated
Show resolved
Hide resolved
ouroboros-consensus-shelley/src/Ouroboros/Consensus/Shelley/Ledger/Ledger.hs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Reviewed over Meet.
Also check the invariants of `KnownIntersectionState`.
bors r+ |
…ction PR #1942 changed blockProduction to take a LedgerState instead of ExtLedgerState, which suffices for all forging. However, the ThreadNet tests' current approach to EBBs requires anticipating during block production whether the produced block will be invalid in anyway. (The node does not emit the EBB unless the EBB unless it is also emitting a valid block.) And that anticipatory validation must include protocol-level errors, which requires the full ExtLedgerState. It may be possible to instead change the tests to allow for EBBs without successors, but I'm don't see how so I'm leaving that for future work if we prioritize it.
…ction PR #1942 changed blockProduction to take a LedgerState instead of ExtLedgerState, which suffices for all forging. However, the ThreadNet tests' current approach to EBBs requires anticipating during block production whether the produced block will be invalid in anyway. (The node does not emit the EBB unless the EBB unless it is also emitting a valid block.) And that anticipatory validation must include protocol-level errors, which requires the full ExtLedgerState. It may be possible to instead change the tests to allow for EBBs without successors, but I'm don't see how so I'm leaving that for future work if we prioritize it.
…ction PR #1942 changed blockProduction to take a LedgerState instead of ExtLedgerState, which suffices for all forging. However, the ThreadNet tests' current approach to EBBs requires anticipating during block production whether the produced block will be invalid in anyway. (The node does not emit the EBB unless the EBB unless it is also emitting a valid block.) And that anticipatory validation must include protocol-level errors, which requires the full ExtLedgerState. It may be possible to instead change the tests to allow for EBBs without successors, but I'm don't see how so I'm leaving that for future work if we prioritize it.
…ction PR #1942 changed blockProduction to take a LedgerState instead of ExtLedgerState, which suffices for all forging. However, the ThreadNet tests' current approach to EBBs requires anticipating during block production whether the produced block will be invalid in anyway. (The node does not emit the EBB unless the EBB unless it is also emitting a valid block.) And that anticipatory validation must include protocol-level errors, which requires the full ExtLedgerState. It may be possible to instead change the tests to allow for EBBs without successors, but I'm don't see how so I'm leaving that for future work if we prioritize it.
…ction PR #1942 changed blockProduction to take a LedgerState instead of ExtLedgerState, which suffices for all forging. However, the ThreadNet tests' current approach to EBBs requires anticipating during block production whether the produced block will be invalid in anyway. (The node does not emit the EBB unless the EBB unless it is also emitting a valid block.) And that anticipatory validation must include protocol-level errors, which requires the full ExtLedgerState. It may be possible to instead change the tests to allow for EBBs without successors, but I'm don't see how so I'm leaving that for future work if we prioritize it.
2048: JIT EBBs in the ThreadNet tests require ExtLedgerState in block production r=edsko a=nfrisby Fixes #2047. PR #1942 changed blockProduction to take a LedgerState instead of ExtLedgerState, which suffices for all forging. However, the ThreadNet tests' current approach to EBBs requires anticipating during block production whether the produced block will be invalid in anyway. (The node does not emit the EBB unless the EBB unless it is also emitting a valid block.) And that anticipatory validation must include protocol-level errors, which requires the full ExtLedgerState. It may be possible to instead change the tests to allow for EBBs without successors, but I'm don't see how, so I currently propose leaving that for future work if we prioritize it. Edit: PR 2176 essentially fixed this failure mode _en passant_. This PR now just simplifies the JIT EBB logic accordingly. Co-authored-by: Nicolas Frisby <[email protected]>
See #1933 for detailed description.