diff options
author | Péter Szilágyi <peterke@gmail.com> | 2018-12-10 21:10:35 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-10 21:10:35 +0800 |
commit | 9fe5d200117bab0b2adbcf1d09629879366bcc54 (patch) | |
tree | 7449a43a27c17627540ffde7eb78a8a13ffbe1f7 /eth/config.go | |
parent | dd98d1da9464c9ae6e1da69d7a41d4551f20bd8d (diff) | |
parent | 31b33349227715e8d1f8753d913892c1e35439d7 (diff) | |
download | dexon-9fe5d200117bab0b2adbcf1d09629879366bcc54.tar dexon-9fe5d200117bab0b2adbcf1d09629879366bcc54.tar.gz dexon-9fe5d200117bab0b2adbcf1d09629879366bcc54.tar.bz2 dexon-9fe5d200117bab0b2adbcf1d09629879366bcc54.tar.lz dexon-9fe5d200117bab0b2adbcf1d09629879366bcc54.tar.xz dexon-9fe5d200117bab0b2adbcf1d09629879366bcc54.tar.zst dexon-9fe5d200117bab0b2adbcf1d09629879366bcc54.zip |
Merge pull request #18028 from ryanschneider/blockhash-whitelist
cmd, eth: add support for `--whitelist <blocknum>=<hash>`
Diffstat (limited to 'eth/config.go')
-rw-r--r-- | eth/config.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/eth/config.go b/eth/config.go index 601f4735e..a5c209512 100644 --- a/eth/config.go +++ b/eth/config.go @@ -87,6 +87,9 @@ type Config struct { SyncMode downloader.SyncMode NoPruning bool + // Whitelist of required block number -> hash values to accept + Whitelist map[uint64]common.Hash `toml:"-"` + // Light client options LightServ int `toml:",omitempty"` // Maximum percentage of time allowed for serving LES requests LightPeers int `toml:",omitempty"` // Maximum number of LES client peers |