-
Notifications
You must be signed in to change notification settings - Fork 666
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
Conversation
|
||
n.txPushGossiper.Add(tx) |
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.
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) |
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.
Seems like these should be combined? Considered adding support for this in gossip.Every
but got weird because frequency differed by gossiper
.
bd99547
into
gossip-cleanup-suggestions
Why this should be merged
How this works
How this was tested