From d5edcb0fe69e3818c710fb0b59db9a12314aacf7 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Tue, 16 Apr 2024 19:04:47 +0000 Subject: [PATCH] add skipping of offline validators v4 verbosity --- gossip/emitter/txs.go | 1 + 1 file changed, 1 insertion(+) diff --git a/gossip/emitter/txs.go b/gossip/emitter/txs.go index af59d763b..868aea6d3 100644 --- a/gossip/emitter/txs.go +++ b/gossip/emitter/txs.go @@ -67,6 +67,7 @@ func (em *Emitter) isMyTxTurn(txHash common.Hash, sender common.Address, account for ; roundIndex < len(rounds); roundIndex++ { chosenValidator := validators.GetID(idx.Validator(rounds[roundIndex])) if chosenValidator == me { + fmt.Printf("Validator chosen: %v after %v rounds\n", chosenValidator, roundIndex) return true // current validator is the chosen - emit } if !em.offlineValidators[chosenValidator] {