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

[network/p2p] Integrate new gossip into P-Chain #2774

Merged
merged 5 commits into from
Feb 26, 2024

Conversation

patrick-ogrady
Copy link
Contributor

Why this should be merged

How this works

How this was tested

@patrick-ogrady patrick-ogrady changed the base branch from master to gossip-cleanup-suggestions February 26, 2024 22:13

n.txPushGossiper.Add(tx)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We should not enqueue push gossip from inbound p2p.

@@ -219,7 +219,8 @@ func (vm *VM) Initialize(
vm.onShutdownCtx, vm.onShutdownCtxCancel = context.WithCancel(context.Background())
// TODO: Wait for this goroutine to exit during Shutdown once the platformvm
// has better control of the context lock.
go vm.Network.Gossip(vm.onShutdownCtx)
go vm.Network.PushGossip(vm.onShutdownCtx)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Seems like these should be combined? Considered adding support for this in gossip.Every but got weird because frequency differed by gossiper.

@StephenButtolph StephenButtolph marked this pull request as ready for review February 26, 2024 23:49
@StephenButtolph StephenButtolph merged commit bd99547 into gossip-cleanup-suggestions Feb 26, 2024
3 of 15 checks passed
@StephenButtolph StephenButtolph deleted the p-chain-impl branch February 26, 2024 23:49
mboben pushed a commit to mboben/avalanchego that referenced this pull request Apr 7, 2024
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants