Skip to content

Commit

Permalink
pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
otherview committed May 22, 2024
1 parent abd4bcb commit 9c90d3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/thor/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ func (n *Node) processBlock(newBlock *block.Block, stats *blockStats) (bool, err
stats.UpdateQueued(1)
case err == errBFTRejected:
// TODO: capture metrics
log.Debug(fmt.Sprintf("block rejected by BFT engine\n%v", newBlock.Header()))
log.Debug(fmt.Sprintf("block rejected by BFT engine: %v", newBlock.Header()))
case consensus.IsCritical(err):
msg := fmt.Sprintf(`failed to process block due to consensus failure \n%v\n`, newBlock.Header())
log.Error(msg, "err", err)
Expand Down
1 change: 1 addition & 0 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ bin/thor -h
| `--disable-pruner` | Disable state pruner to keep all history |
| `--bootnode` | Comma-separated list of bootnode IDs |
| `--enable-metrics` | Enables the metrics server |
| `--metrics-addr` | Metrics service listening address |
| `--help, -h` | Show help |
| `--version, -v` | Print the version |

Expand Down

0 comments on commit 9c90d3d

Please sign in to comment.