func (bv *BlockchainView) SetJustifiedHead(justifiedHash chainhash.Hash, justifiedState primitives.State) bool {
	bv.lock.Lock()
	defer bv.lock.Unlock()
	justifiedNode := bv.Index.GetBlockNodeByHash(justifiedHash)
	if justifiedNode == nil {
		return false
	}
	bv.justifiedHead = blockNodeAndState{justifiedNode, justifiedState}
	return true
}
// SetJustifiedHead sets the justified head of the blockchain.
SetJustifiedHead sets the justified head of the blockchain.
// SetJustifiedHead sets the justified head of the blockchain .
func (bv *BlockchainView) SetJustifiedHead(justifiedHash chainhash.Hash, justifiedState primitives.State) bool {
	bv.lock.Lock()
	defer bv.lock.Unlock()
	justifiedNode := bv.Index.GetBlockNodeByHash(justifiedHash)
	if justifiedNode == nil {
		return false
	}
	bv.justifiedHead = blockNodeAndState{justifiedNode, justifiedState}
	return true
}
func ( bv * BlockchainView ) SetJustifiedHead ( justifiedHash chainhash . Hash , justifiedState primitives . State ) bool { bv . lock . Lock ( ) defer bv . lock . Unlock ( ) justifiedNode := bv . Index . GetBlockNodeByHash ( justifiedHash ) if justifiedNode == nil { return false } bv . justifiedHead = blockNodeAndState { justifiedNode , justifiedState } return true }
SetJustifiedHead sets the justified head of the blockchain.
SetJustifiedHead sets the justified head of the blockchain .