Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions plugin/evm/validators.go

This file was deleted.

31 changes: 11 additions & 20 deletions plugin/evm/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -796,11 +796,6 @@ func (vm *VM) onNormalOperationsStarted() error {
vm.builder = vm.NewBlockBuilder(vm.toEngine)
vm.builder.awaitSubmittedTxs()

var p2pValidators p2p.ValidatorSet = &validatorSet{}
if vm.config.PullGossipFrequency.Duration > 0 {
p2pValidators = vm.p2pValidators
}

if vm.ethTxGossipHandler == nil {
vm.ethTxGossipHandler = newTxGossipHandler[*GossipEthTx](
vm.ctx.Log,
Expand All @@ -810,7 +805,7 @@ func (vm *VM) onNormalOperationsStarted() error {
txGossipTargetMessageSize,
txGossipThrottlingPeriod,
txGossipThrottlingLimit,
p2pValidators,
vm.p2pValidators,
)
}

Expand All @@ -835,20 +830,16 @@ func (vm *VM) onNormalOperationsStarted() error {
}
}

if vm.config.PushGossipFrequency.Duration > 0 {
vm.shutdownWg.Add(1)
go func() {
gossip.Every(ctx, vm.ctx.Log, ethTxPushGossiper, vm.config.PushGossipFrequency.Duration)
vm.shutdownWg.Done()
}()
}
if vm.config.PullGossipFrequency.Duration > 0 {
vm.shutdownWg.Add(1)
go func() {
gossip.Every(ctx, vm.ctx.Log, vm.ethTxPullGossiper, vm.config.PullGossipFrequency.Duration)
vm.shutdownWg.Done()
}()
}
vm.shutdownWg.Add(1)
go func() {
gossip.Every(ctx, vm.ctx.Log, ethTxPushGossiper, vm.config.PushGossipFrequency.Duration)
vm.shutdownWg.Done()
}()
vm.shutdownWg.Add(1)
go func() {
gossip.Every(ctx, vm.ctx.Log, vm.ethTxPullGossiper, vm.config.PullGossipFrequency.Duration)
vm.shutdownWg.Done()
}()

return nil
}
Expand Down
Loading