consensus: add isolated Harmony HotStuff core - #3
Draft
Frozen wants to merge 13 commits into
Draft
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
VerifiedQC/VerifiedTCcapabilitiesSafety boundaries
BLSQCevidence; onlyQCAuthority.Verifycan mint the capability accepted by the coreScope
This is still isolated/shadow infrastructure. It does not:
A concrete shadow runtime remains a separate step. The proposal/QC codec in this PR is dormant: no production call site installs the handler or emits HotStuff proposal frames. The first runtime integration will observe only FBFT proposals that already passed full
Blockchain.ValidateNewBlockvalidation and will enable only committee-wide HotStuff vote ingress. Independent network proposal/QC/TC ingress remains blocked pending deterministic epoch-boundary bootstrap, leader authentication, authority rollover, and a versioned full signed transcript.That runtime must also require accepted blocks before pacemaker advancement, maintain one durable
SafetyRuleswriter per local BLS key, self-deliver local votes before broadcasting, and use a bounded non-blocking observer queue. Mixed gate deployment must accept-and-relay recognized HotStuff traffic without dispatching it on disabled nodes.Test plan
go test -count=20 -run '^TestHotStuffWire|^TestHotStuffShadowIngress' ./consensus/hotstuff/harmony ./node/harmonygo test -race -count=1 ./consensus/hotstuff/harmony ./node/harmonygo test -shuffle=on -count=10 ./consensus/hotstuff/...go test -count=1 ./consensus/...go test -count=1 ./node/...go test -count=1 ./api/proto/...go vet ./consensus/hotstuff/harmony ./node/harmony ./api/proto/...make test