cmd, eth: Add support for `--whitelist <blocknum>=<hash>,...` flag
* Rejects peers that respond with a different hash for any of the passed in block numbers. * Meant for emergency situations when the network forks unexpectedly.
Showing
- cmd/geth/main.go 1 addition, 0 deletionscmd/geth/main.go
- cmd/geth/usage.go 1 addition, 0 deletionscmd/geth/usage.go
- cmd/utils/flags.go 33 additions, 0 deletionscmd/utils/flags.go
- eth/backend.go 1 addition, 1 deletioneth/backend.go
- eth/config.go 3 additions, 0 deletionseth/config.go
- eth/handler.go 25 additions, 1 deletioneth/handler.go
- eth/handler_test.go 2 additions, 2 deletionseth/handler_test.go
- eth/helper_test.go 1 addition, 1 deletioneth/helper_test.go
Loading
Please register or sign in to comment