diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-12-28 21:18:34 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2017-12-28 21:18:34 +0800 |
commit | f7ca03ae875c7c78191bf38f6ce1cc4bbe5361c6 (patch) | |
tree | 20585ede9010cc0f7051c27e56cfd2d9a4fbfedb /light | |
parent | c15d76a40f330561b2491718a143fd494a2b7b5c (diff) | |
download | dexon-f7ca03ae875c7c78191bf38f6ce1cc4bbe5361c6.tar.gz dexon-f7ca03ae875c7c78191bf38f6ce1cc4bbe5361c6.tar.zst dexon-f7ca03ae875c7c78191bf38f6ce1cc4bbe5361c6.zip |
eth, les, light: expose chain config in les node info too (#15732)
Diffstat (limited to 'light')
-rw-r--r-- | light/lightchain.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/light/lightchain.go b/light/lightchain.go index 30baeaccb..c5c2dcf46 100644 --- a/light/lightchain.go +++ b/light/lightchain.go @@ -457,6 +457,9 @@ func (self *LightChain) GetHeaderByNumberOdr(ctx context.Context, number uint64) return GetHeaderByNumber(ctx, self.odr, number) } +// Config retrieves the header chain's chain configuration. +func (self *LightChain) Config() *params.ChainConfig { return self.hc.Config() } + func (self *LightChain) SyncCht(ctx context.Context) bool { if self.odr.ChtIndexer() == nil { return false |