add Validator method to blockchain to fix the interface

pull/4465/head
“GheisMohammadi” 1 year ago
parent 7c21eef5ef
commit d534fea261
No known key found for this signature in database
GPG Key ID: 15073AED3829FE90
  1. 11
      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
}

Loading…
Cancel
Save