From f7ca03ae875c7c78191bf38f6ce1cc4bbe5361c6 Mon Sep 17 00:00:00 2001 From: Péter Szilágyi Date: Thu, 28 Dec 2017 15:18:34 +0200 Subject: eth, les, light: expose chain config in les node info too (#15732) --- light/lightchain.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'light') 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 -- cgit