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.
This commit is contained in:
Ryan Schneider
2018-11-02 13:26:45 -07:00
committed by Péter Szilágyi
parent c1e3fe6b14
commit 48b70ecff1
8 changed files with 67 additions and 5 deletions

View File

@ -87,6 +87,7 @@ var (
utils.LightServFlag,
utils.LightPeersFlag,
utils.LightKDFFlag,
utils.WhitelistFlag,
utils.CacheFlag,
utils.CacheDatabaseFlag,
utils.CacheTrieFlag,