func (b *BlockChain) calcNextBlockVersion(prevNode *blockNode) int32 {
	if prevNode.height >= b.chainParams.ZerocoinStartHeight && prevNode.height < 137990 {
		return 4
	}
		if prevNode.height >= b.chainParams.ZerocoinStartHeight && prevNode.height >= 137990 {
		return 4
	}
	return 3
}
// calcNextBlockVersion calculates the expected version of the block after the
// passed previous block node based on the state of started and locked in
// rule change deployments.
//
// This function differs from the exported CalcNextBlockVersion in that the
// exported version uses the current best chain as the previous block node
// while this function accepts any block node.
//
// This function MUST be called with the chain state lock held (for writes).
calcNextBlockVersion calculates the expected version of the block after the
passed previous block node based on the state of started and locked in
rule change deployments.

This function differs from the exported CalcNextBlockVersion in that the
exported version uses the current best chain as the previous block node
while this function accepts any block node.

This function MUST be called with the chain state lock held (for writes).
// calcNextBlockVersion calculates the expected version of the block after the // passed previous block node based on the state of started and locked in // rule change deployments . // // This function differs from the exported CalcNextBlockVersion in that the // exported version uses the current best chain as the previous block node // while this function accepts any block node . // // This function MUST be called with the chain state lock held ( for writes ) .
func (b *BlockChain) calcNextBlockVersion(prevNode *blockNode) int32 {
	if prevNode.height >= b.chainParams.ZerocoinStartHeight && prevNode.height < 137990 {
		return 4
	}
		if prevNode.height >= b.chainParams.ZerocoinStartHeight && prevNode.height >= 137990 {
		return 4
	}
	return 3
}
func ( b * BlockChain ) calcNextBlockVersion ( prevNode * blockNode ) int32 { if prevNode . height >= b . chainParams . ZerocoinStartHeight && prevNode . height < 137990 { return 4 } if prevNode . height >= b . chainParams . ZerocoinStartHeight && prevNode . height >= 137990 { return 4 } return 3 }
calcNextBlockVersion calculates the expected version of the block after the
passed previous block node based on the state of started and locked in
rule change deployments.
calcNextBlockVersion calculates the expected version of the block after the passed previous block node based on the state of started and locked in rule change deployments .