-
Notifications
You must be signed in to change notification settings - Fork 120
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
Upgrade avalanchego dependency #1901
Conversation
…va-labs/hypersdk into tsachi/configurable-chunk-rate-limiter
…ava-labs/hypersdk into tsachi/configurable-chunk-rate-limiter2
…ava-labs/hypersdk into tsachi/configurable-chunk-rate-limiter2
x/dsmr/certificate.go
Outdated
@@ -89,13 +89,11 @@ func (c *ChunkCertificate) Verify( | |||
if err != nil { | |||
return fmt.Errorf("failed to initialize unsigned warp message: %w", err) | |||
} | |||
|
|||
vs, _ := warp.GetCanonicalValidatorSetFromChainID(ctx, pChainState, pChainHeight, msg.SourceChainID) |
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.
Can we check the error value here?
x/dsmr/node.go
Outdated
func (pChain) GetCurrentValidatorSet( | ||
context.Context, | ||
ids.ID, | ||
) (map[ids.ID]*snowValidators.GetCurrentValidatorOutput, uint64, error) { | ||
return nil, 0, nil | ||
} |
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.
why does this return empty?
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.
The method is currently not being used. I'll add an error here to indicate that.
( it will be removed in my subsequent PR ).
x/dsmr/certificate.go
Outdated
@@ -89,13 +89,14 @@ func (c *ChunkCertificate) Verify( | |||
if err != nil { | |||
return fmt.Errorf("failed to initialize unsigned warp message: %w", err) | |||
} | |||
|
|||
vs, err := warp.GetCanonicalValidatorSetFromChainID(ctx, pChainState, pChainHeight, msg.SourceChainID) |
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.
Can we use a more descriptive variable name here, perhaps canonicalValidatorSet
?
What ?
Update the avalanchego with the latest changes.
Include few fixes for the e2e testing, and in particular, avoid caching the URIs to prevent stale URIs.