eth, les, light: expose chain config in les node info too (#15732)

This commit is contained in:
Péter Szilágyi
2017-12-28 15:18:34 +02:00
committed by Felix Lange
parent c15d76a40f
commit f7ca03ae87
4 changed files with 25 additions and 11 deletions

View File

@ -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