if (this.getChainMerkleBranch().size() > 30) { if (throwException) { throw new VerificationException("Aux POW chain merkle branch too long"); if (branchSize != (1 << getChainMerkleBranch().size())) { if (throwException) { throw new VerificationException("Aux POW merkle branch size does not match parent coinbase"); if (getChainMerkleBranch().getIndex() != getExpectedIndex(nonce, ((AuxPoWNetworkParameters) params).getChainID(), getChainMerkleBranch().size())) { if (throwException) { throw new VerificationException("Aux POW wrong index in chain merkle branch for chain ID " + ((AuxPoWNetworkParameters) params).getChainID() + ". Was " + getChainMerkleBranch().getIndex() + ", expected " + getExpectedIndex(nonce, ((AuxPoWNetworkParameters) params).getChainID(), getChainMerkleBranch().size()));