aboutsummaryrefslogtreecommitdiffstats
path: root/light
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-12-28 21:18:34 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-12-28 21:18:34 +0800
commitf7ca03ae875c7c78191bf38f6ce1cc4bbe5361c6 (patch)
tree20585ede9010cc0f7051c27e56cfd2d9a4fbfedb /light
parentc15d76a40f330561b2491718a143fd494a2b7b5c (diff)
downloaddexon-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.go3
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