From 055095798911e3c6f2e210220cb7ece1b71f6517 Mon Sep 17 00:00:00 2001 From: Nick Johnson Date: Tue, 27 Jun 2017 16:15:29 +0100 Subject: eth, les, light: Refactor downloader to use blockchain interface --- light/lightchain.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'light/lightchain.go') diff --git a/light/lightchain.go b/light/lightchain.go index 87436f4a5..ec7ca3a0c 100644 --- a/light/lightchain.go +++ b/light/lightchain.go @@ -389,6 +389,21 @@ func (self *LightChain) CurrentHeader() *types.Header { return self.hc.CurrentHeader() } +// CurrentBlock exists for interface compatibility and always returns nil +func (self *LightChain) CurrentBlock() *types.Block { + return nil +} + +// CurrentFastBlock exists for interface compatibility and always returns nil +func (self *LightChain) CurrentFastBlock() *types.Block { + return nil +} + +// FastSyncCommitHead exists for interface compatibility and does nothing +func (self *LightChain) FastSyncCommitHead(h common.Hash) error { + return nil +} + // GetTd retrieves a block's total difficulty in the canonical chain from the // database by hash and number, caching it if found. func (self *LightChain) GetTd(hash common.Hash, number uint64) *big.Int { -- cgit v1.2.3