-
Notifications
You must be signed in to change notification settings - Fork 887
Complete multi-epoch ownership across Autobahn layers (CON-358) #3929
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
Open
wen-coding
wants to merge
34
commits into
main
Choose a base branch
from
wen/autobahn_multi_epoch
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
5e5a6f9
feat(autobahn): complete multi-epoch ownership across layers (CON-358)
wen-coding 8f2747d
fix(autobahn): verify outside lock and derive Joined from activate tip
wen-coding 296a5bd
refactor(utils): move ReadOnly out of testonly.go
wen-coding 5a2107a
fix(autobahn): shard EVM txs with NextCommitEpoch, not tip verify-epoch
wen-coding b4b97ee
fix(autobahn): optional ConsensusSpec tip and hard-error missing catc…
wen-coding f671105
refactor(autobahn): split Verify integrity from committee membership
wen-coding 493ffc3
refactor(autobahn): replace consensus WAL CommitQC with CommitQCIndex
wen-coding 64a83a6
refactor(autobahn): reweightVotes from applied i.epoch
wen-coding 11282a3
docs(autobahn): RoadIndex wording and Anchor epoch docs
wen-coding b2dd476
refactor(autobahn): use advance consistently for epoch transitions
wen-coding 6ad8d3b
refactor(autobahn): match blocks by header, votes by epoch then Verify
wen-coding 7c1e0c5
refactor(autobahn): inline epochForRoad; note AvailSpec follow-up
wen-coding fa8599e
feat(autobahn): prune registry epochs behind the data Anchor
wen-coding 6872569
docs(autobahn): laneQC is weighted under the applied epoch
wen-coding b85bad3
test(autobahn): fold duplicate multi-epoch tests into tables
wen-coding 23d2e88
docs(autobahn): LaneProposal.Verify is integrity, not mechanism
wen-coding 3f33d05
refactor(autobahn): apply epochs via ConsensusSpec.Epoch
wen-coding c332a41
docs(autobahn): blockVotes stay weighted under applied epoch
wen-coding 1990816
docs(autobahn): Anchor.Epoch is the epoch of CommitQC
wen-coding 5779b95
refactor(autobahn): tryAdvanceEpoch is a single restart step
wen-coding ab6707c
refactor(autobahn): admit CommitQCs and blocks under applied epoch
wen-coding 3594449
refactor(autobahn): plan avail applied epoch before newInner
wen-coding eacea27
refactor(autobahn): WAL Index is the current view
wen-coding 2224f36
refactor(autobahn): live epoch window and PushQC wait order
wen-coding 26de868
fix(autobahn): regenerate PersistedInner Index comment in pb.go
wen-coding e00b3db
fix(autobahn): jump applied on data catch-up instead of killing Run
wen-coding e69dfad
test(autobahn): collapse duplicate epoch-boundary coverage
wen-coding bd65c6e
fix(autobahn): install catch-up epochs in runEpochAdvance, not prune
wen-coding bd39e39
refactor(autobahn): one wait/jump in runEpochAdvance
wen-coding 3b9d354
refactor(autobahn): restore tip as Option[restoredQC]; nextViewEpoch …
wen-coding 5c7dd4e
refactor(autobahn): derive epoch-advance target from the durable tip
wen-coding 2e96353
fix(avail): do not rewind the durable tip after prune
wen-coding b69f855
fix(autobahn): wrap leftover tests with blockstore after rebase
wen-coding 5591c9c
test(autobahn): route remaining tests through BlockStore helpers
wen-coding File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -188,11 +188,8 @@ func (m *Signed[T]) Sig() *Signature { return m.sig } | |
| // Key returns the key whish signed the message. | ||
| func (m *Signed[T]) Key() PublicKey { return m.sig.key } | ||
|
|
||
| // VerifySig verifies the signature of the message. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. having both "VerifySig" vs "VerifySignature" is a poor naming scheme.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
| func (m *Signed[T]) VerifySig(c *Committee) error { | ||
| if !c.HasReplica(m.sig.key) { | ||
| return fmt.Errorf("%q is not a replica", m.sig.key) | ||
| } | ||
| // VerifySig verifies the cryptographic signature. | ||
| func (m *Signed[T]) VerifySig() error { | ||
| return m.sig.key.key.VerifyWithTag(autobahnTag, m.hashed.hash[:], m.sig.sig) | ||
| } | ||
|
|
||
|
|
@@ -207,7 +204,10 @@ func (m *Hashed[T]) verifyQC(c *Committee, quorumWeight uint64, sigs []*Signatur | |
| done[sig.key] = struct{}{} | ||
| weight += c.Weight(sig.key) | ||
| sm := &Signed[T]{hashed: m, sig: sig} | ||
| if err := sm.VerifySig(c); err != nil { | ||
| if !c.HasReplica(sm.Key()) { | ||
| return fmt.Errorf("%q is not a replica", sm.Key()) | ||
| } | ||
| if err := sm.VerifySig(); err != nil { | ||
| return err | ||
| } | ||
| } | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.