Skip to content

Commit

Permalink
add skipping of offline validators v4 verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
jacklevin74 committed Apr 16, 2024
1 parent 09eae2a commit d5edcb0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gossip/emitter/txs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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] {
Expand Down

0 comments on commit d5edcb0

Please sign in to comment.