Skip to content

Conversation

@hanish520
Copy link
Contributor

@hanish520 hanish520 commented Nov 16, 2025

Fixes #267

Copy link
Member

@meling meling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if it would be possible to get Copilot to prepare some test cases for the Kauri implementation. Perhaps guiding it to use the clique_test.go as a basis? Could you give it a go @hanish520?

k.logger.Debug("Current view is higher than event view, not starting kauri")
return
}
k.begin(event.p, event.pc)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe something like this:

	if err := k.begin(event.p, event.pc); err != nil {
		k.logger.Errorf("Failed to begin kauri: %v", err)
	}

Alternatively, if this is not a critical error to log but we still want to log it, we could use Debugf to only display it during debugging.

If we want to ignore the error, we should do:

	_ = k.begin(event.p, event.pc)

// begin starts dissemination of proposal and aggregation of votes.
func (k *Kauri) begin(p *hotstuff.ProposeMsg, pc hotstuff.PartialCert) error {
if !k.initDone {
// TODO(meling): This is not correct use of DelayUntil, see issue #267
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove TODO when done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: kauri's DelayUntil provide a func() without a corresponding event handler registration

3 participants