diff --git a/core/blockchain_impl.go b/core/blockchain_impl.go index e9360dc15..2fbdb92d7 100644 --- a/core/blockchain_impl.go +++ b/core/blockchain_impl.go @@ -685,6 +685,17 @@ func (bc *BlockChainImpl) CurrentBlock() *types.Block { return bc.currentBlock.Load().(*types.Block) } +// CurrentFastBlock retrieves the current fast-sync head block of the canonical +// chain. The block is retrieved from the blockchain's internal cache. +func (bc *BlockChainImpl) CurrentFastBlock() *types.Block { + return bc.currentFastBlock.Load().(*types.Block) +} + +// Validator returns the current validator. +func (bc *BlockChainImpl) Validator() Validator { + return bc.validator +} + func (bc *BlockChainImpl) Processor() Processor { return bc.processor }