Skip to content
Merged
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
4 changes: 2 additions & 2 deletions eth/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ func newHandler(config *handlerConfig) (*handler, error) {
func (h *handler) protoTracker() {
defer h.wg.Done()

if h.enableEVNFeatures {
if h.enableEVNFeatures && h.synced.Load() {
h.peers.enableEVNFeatures(h.queryValidatorNodeIDsMap(), h.evnNodeIdsWhitelistMap)
}
updateTicker := time.NewTicker(10 * time.Second)
Expand All @@ -408,7 +408,7 @@ func (h *handler) protoTracker() {
case <-h.handlerDoneCh:
active--
case <-updateTicker.C:
if h.enableEVNFeatures {
if h.enableEVNFeatures && h.synced.Load() {
// add onchain validator p2p node list later, it will enable the direct broadcast + no tx broadcast feature
// here check & enable peer broadcast features periodically, and it's a simple way to handle the peer change and the list change scenarios.
h.peers.enableEVNFeatures(h.queryValidatorNodeIDsMap(), h.evnNodeIdsWhitelistMap)
Expand Down