func (b *BlockChain) CalcNextBlockVersion() int32 {
	b.chainLock.Lock()
	version := b.calcNextBlockVersion(b.bestChain.Tip())
	b.chainLock.Unlock()
	return version
}
// CalcNextBlockVersion calculates the expected version of the block after the
// end of the current best chain based on the state of started and locked in
// rule change deployments.
//
// This function is safe for concurrent access.
CalcNextBlockVersion calculates the expected version of the block after the
end of the current best chain based on the state of started and locked in
rule change deployments.

This function is safe for concurrent access.
// CalcNextBlockVersion calculates the expected version of the block after the // end of the current best chain based on the state of started and locked in // rule change deployments . // // This function is safe for concurrent access .
func (b *BlockChain) CalcNextBlockVersion() int32 {
	b.chainLock.Lock()
	version := b.calcNextBlockVersion(b.bestChain.Tip())
	b.chainLock.Unlock()
	return version
}
func ( b * BlockChain ) CalcNextBlockVersion ( ) int32 { b . chainLock . Lock ( ) version := b . calcNextBlockVersion ( b . bestChain . Tip ( ) ) b . chainLock . Unlock ( ) return version }
CalcNextBlockVersion calculates the expected version of the block after the
end of the current best chain based on the state of started and locked in
rule change deployments.
CalcNextBlockVersion calculates the expected version of the block after the end of the current best chain based on the state of started and locked in rule change deployments .