(blockNum uint32)
| 713 | } |
| 714 | |
| 715 | func (pool *BlockPool) getChainedBlock(blockNum uint32) (*Block, common.Uint256) { |
| 716 | pool.lock.RLock() |
| 717 | defer pool.lock.RUnlock() |
| 718 | |
| 719 | // get from chainstore |
| 720 | blk, err := pool.chainStore.getBlock(blockNum) |
| 721 | if err != nil { |
| 722 | log.Errorf("getSealedBlock %d err:%v", blockNum, err) |
| 723 | return nil, common.Uint256{} |
| 724 | } |
| 725 | return blk, blk.Block.Hash() |
| 726 | } |
| 727 | |
| 728 | func (pool *BlockPool) findConsensusEmptyProposal(blockNum uint32) (*blockProposalMsg, error) { |
| 729 | pool.lock.RLock() |
no test coverage detected