@Test public void testMaxContractSizeIsOnlyChangeInEip160() throws Exception { TestBlockchainConfig parent = new TestBlockchainConfig(); Eip160HFConfig config = new Eip160HFConfig(parent); assertEquals(0x6000, config.getConstants().getMAX_CONTRACT_SZIE()); Constants expected = parent.getConstants(); Constants actual = config.getConstants(); assertEquals(expected.getInitialNonce(), actual.getInitialNonce()); assertEquals(expected.getMINIMUM_DIFFICULTY(), actual.getMINIMUM_DIFFICULTY()); assertEquals(expected.getDIFFICULTY_BOUND_DIVISOR(), actual.getDIFFICULTY_BOUND_DIVISOR()); assertEquals(expected.getMAXIMUM_EXTRA_DATA_SIZE(), actual.getMAXIMUM_EXTRA_DATA_SIZE()); assertEquals(expected.getBLOCK_REWARD(), actual.getBLOCK_REWARD()); assertEquals(expected.getEXP_DIFFICULTY_PERIOD(), actual.getEXP_DIFFICULTY_PERIOD()); assertEquals(expected.getGAS_LIMIT_BOUND_DIVISOR(), actual.getGAS_LIMIT_BOUND_DIVISOR()); assertEquals(expected.getUNCLE_GENERATION_LIMIT(), actual.getUNCLE_GENERATION_LIMIT()); assertEquals(expected.getUNCLE_LIST_LIMIT(), actual.getUNCLE_LIST_LIMIT()); assertEquals(expected.getDURATION_LIMIT(), actual.getDURATION_LIMIT()); assertEquals(expected.getBEST_NUMBER_DIFF_LIMIT(), actual.getBEST_NUMBER_DIFF_LIMIT()); assertEquals(expected.createEmptyContractOnOOG(), actual.createEmptyContractOnOOG()); assertEquals(expected.hasDelegateCallOpcode(), actual.hasDelegateCallOpcode()); }
@Override public Constants getConstants() { return constants; }
Eip160HFConfig extends Eip150HFConfig { @Override public Constants getConstants() { return constants; } }
Eip160HFConfig extends Eip150HFConfig { @Override public Constants getConstants() { return constants; } Eip160HFConfig(BlockchainConfig parent); }
Eip160HFConfig extends Eip150HFConfig { @Override public Constants getConstants() { return constants; } Eip160HFConfig(BlockchainConfig parent); @Override GasCost getGasCost(); @Override boolean eip161(); @Override Integer getChainId(); @Override Constants getConstants(); @Override boolean acceptTransactionSignature(Transaction tx); }
Eip160HFConfig extends Eip150HFConfig { @Override public Constants getConstants() { return constants; } Eip160HFConfig(BlockchainConfig parent); @Override GasCost getGasCost(); @Override boolean eip161(); @Override Integer getChainId(); @Override Constants getConstants(); @Override boolean acceptTransactionSignature(Transaction tx);  }