-
Notifications
You must be signed in to change notification settings - Fork 112
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
base: main
Are you sure you want to change the base?
Make gossiper generic #1768
Conversation
if err := tx.VerifyAuth(ctx); err != nil { | ||
return err | ||
} |
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.
This can be moved into PreExecute
within vm.Submit(...)
// Verify tx | ||
if w.vm.GetVerifyAuth() { | ||
if err := tx.VerifyAuth(ctx); err != nil { | ||
w.logger.Error("failed to verify sig", | ||
zap.Error(err), | ||
) | ||
return | ||
} | ||
} |
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.
check GetVerifyAuth
within vm.Submit(...)
Top( | ||
context.Context, | ||
time.Duration, | ||
func(context.Context, *Transaction) (cont bool, rest bool, err error), | ||
) error | ||
|
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.
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 |
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.
moved from chain/transaction.go
This PR makes the gossiper package generic and decouples it from the
*chain.Transaction
type.