Skip to content

Commit

Permalink
fix log messages in check_consensus_block_proposals task
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Mar 22, 2024
1 parent ba291e8 commit 09b490c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/coordinator/tasks/check_consensus_block_proposals/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ func (t *Task) checkBlockSlashings(block *consensus.Block, blockData *spec.Versi

slashingCount := len(attSlashings) + len(propSlashings)
if slashingCount < t.config.MinSlashingCount {
t.logger.Infof("check failed for block %v [0x%x]: not enough exits (want: >= %v, have: %v)", block.Slot, block.Root, t.config.MinSlashingCount, slashingCount)
t.logger.Infof("check failed for block %v [0x%x]: not enough slashings (want: >= %v, have: %v)", block.Slot, block.Root, t.config.MinSlashingCount, slashingCount)
return false
}

Expand Down Expand Up @@ -421,7 +421,7 @@ func (t *Task) checkBlockAttesterSlashings(block *consensus.Block, blockData *sp

slashingCount := len(attSlashings)
if slashingCount < t.config.MinAttesterSlashingCount {
t.logger.Infof("check failed for block %v [0x%x]: not enough exits (want: >= %v, have: %v)", block.Slot, block.Root, t.config.MinAttesterSlashingCount, slashingCount)
t.logger.Infof("check failed for block %v [0x%x]: not enough attester slashings (want: >= %v, have: %v)", block.Slot, block.Root, t.config.MinAttesterSlashingCount, slashingCount)
return false
}

Expand All @@ -437,7 +437,7 @@ func (t *Task) checkBlockProposerSlashings(block *consensus.Block, blockData *sp

slashingCount := len(propSlashings)
if slashingCount < t.config.MinProposerSlashingCount {
t.logger.Infof("check failed for block %v [0x%x]: not enough exits (want: >= %v, have: %v)", block.Slot, block.Root, t.config.MinProposerSlashingCount, slashingCount)
t.logger.Infof("check failed for block %v [0x%x]: not enough proposer slashings (want: >= %v, have: %v)", block.Slot, block.Root, t.config.MinProposerSlashingCount, slashingCount)
return false
}

Expand Down

0 comments on commit 09b490c

Please sign in to comment.