Skip to content
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

Make gossiper generic #1768

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Make gossiper generic #1768

wants to merge 4 commits into from

Conversation

aaronbuchwald
Copy link
Collaborator

@aaronbuchwald aaronbuchwald commented Nov 13, 2024

This PR makes the gossiper package generic and decouples it from the *chain.Transaction type.

Comment on lines -108 to -110
if err := tx.VerifyAuth(ctx); err != nil {
return err
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This can be moved into PreExecute within vm.Submit(...)

Comment on lines -251 to -259
// Verify tx
if w.vm.GetVerifyAuth() {
if err := tx.VerifyAuth(ctx); err != nil {
w.logger.Error("failed to verify sig",
zap.Error(err),
)
return
}
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

check GetVerifyAuth within vm.Submit(...)

Comment on lines -29 to -34
Top(
context.Context,
time.Duration,
func(context.Context, *Transaction) (cont bool, rest bool, err error),
) error

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Unused from this package - only used by gossiper

// Copyright (C) 2024, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.

package chain
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

moved from chain/transaction.go

@aaronbuchwald aaronbuchwald marked this pull request as ready for review November 13, 2024 14:56
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.

1 participant