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

Upgrade avalanchego dependency #1901

Merged
merged 53 commits into from
Feb 3, 2025
Merged

Upgrade avalanchego dependency #1901

merged 53 commits into from
Feb 3, 2025

Conversation

tsachiherman
Copy link
Contributor

@tsachiherman tsachiherman commented Jan 30, 2025

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.

…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
@tsachiherman tsachiherman changed the title wip : tsachi upgrade test. Upgrade avalanchego dependency Feb 3, 2025
@tsachiherman tsachiherman marked this pull request as ready for review February 3, 2025 17:18
@@ -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)
Copy link
Collaborator

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
Comment on lines 457 to 462
func (pChain) GetCurrentValidatorSet(
context.Context,
ids.ID,
) (map[ids.ID]*snowValidators.GetCurrentValidatorOutput, uint64, error) {
return nil, 0, nil
}
Copy link
Collaborator

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?

Copy link
Contributor Author

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 ).

@@ -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)
Copy link
Collaborator

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 ?

aaronbuchwald
aaronbuchwald previously approved these changes Feb 3, 2025
@tsachiherman tsachiherman merged commit cc28924 into main Feb 3, 2025
17 checks passed
@tsachiherman tsachiherman deleted the tsachi/testupgrade branch February 3, 2025 18:08
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.

2 participants