func (bv *BlockchainView) SetFinalizedHead(finalizedHash chainhash.Hash, finalizedState primitives.State) bool {
	bv.lock.Lock()
	defer bv.lock.Unlock()
	finalizedNode := bv.Index.GetBlockNodeByHash(finalizedHash)
	if finalizedNode == nil {
		return false
	}
	bv.finalizedHead = blockNodeAndState{finalizedNode, finalizedState}
	return true
}
// SetFinalizedHead sets the finalized head of the blockchain.
SetFinalizedHead sets the finalized head of the blockchain.
// SetFinalizedHead sets the finalized head of the blockchain .
func (bv *BlockchainView) SetFinalizedHead(finalizedHash chainhash.Hash, finalizedState primitives.State) bool {
	bv.lock.Lock()
	defer bv.lock.Unlock()
	finalizedNode := bv.Index.GetBlockNodeByHash(finalizedHash)
	if finalizedNode == nil {
		return false
	}
	bv.finalizedHead = blockNodeAndState{finalizedNode, finalizedState}
	return true
}
func ( bv * BlockchainView ) SetFinalizedHead ( finalizedHash chainhash . Hash , finalizedState primitives . State ) bool { bv . lock . Lock ( ) defer bv . lock . Unlock ( ) finalizedNode := bv . Index . GetBlockNodeByHash ( finalizedHash ) if finalizedNode == nil { return false } bv . finalizedHead = blockNodeAndState { finalizedNode , finalizedState } return true }
SetFinalizedHead sets the finalized head of the blockchain.
SetFinalizedHead sets the finalized head of the blockchain .