CurrentFastBlock retrieves the current fast-sync head block of the canonical chain. The block is retrieved from the blockchain's internal cache.
()
| 483 | // CurrentFastBlock retrieves the current fast-sync head block of the canonical |
| 484 | // chain. The block is retrieved from the blockchain's internal cache. |
| 485 | func (bc *BlockChain) CurrentFastBlock() *types.Block { |
| 486 | return bc.currentFastBlock.Load().(*types.Block) |
| 487 | } |
| 488 | |
| 489 | // SetProcessor sets the processor required for making state modifications. |
| 490 | func (bc *BlockChain) SetProcessor(processor Processor) { |
no outgoing calls
no test coverage detected