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

p2p: start listening to P2P messages only after contract and metadata sync #1805

Open
wants to merge 21 commits into
base: stage
Choose a base branch
from

Conversation

nkryuchkov
Copy link
Contributor

@nkryuchkov nkryuchkov commented Oct 19, 2024

Closes #1712

@nkryuchkov nkryuchkov changed the title Start p2p after sync refactor: control-flow, start listening to P2P messages only after contract and metadata sync Oct 19, 2024
@nkryuchkov nkryuchkov changed the title refactor: control-flow, start listening to P2P messages only after contract and metadata sync p2p: start listening to P2P messages only after contract and metadata sync Oct 19, 2024
operator/metadata/updater_test.go Show resolved Hide resolved
operator/metadata/updater.go Outdated Show resolved Hide resolved
@nkryuchkov nkryuchkov marked this pull request as ready for review October 26, 2024 13:30
break
}
}
if !hasMetadata {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure why but the original logic used to fetch and update if none of the shares have metadata (the !share.Liquidated part of the condition is useless because shares contains non-liquidated shares)

This is changed to fetching all public keys if at least one share metadata is missing, however, probably we want to modify this logic

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.

refactor: control-flow, start listening to P2P messages only after contract and metadata sync
1 participant