Search in sources :

Example 1 with SelfBalanceOperation

use of org.hyperledger.besu.evm.operation.SelfBalanceOperation in project besu by hyperledger.

the class MainnetEVMs method registerIstanbulOperations.

public static void registerIstanbulOperations(final OperationRegistry registry, final GasCalculator gasCalculator, final BigInteger chainId) {
    registerConstantinopleOperations(registry, gasCalculator);
    registry.put(new ChainIdOperation(gasCalculator, Bytes32.leftPad(Bytes.of(chainId.toByteArray()))));
    registry.put(new SelfBalanceOperation(gasCalculator));
    registry.put(new SStoreOperation(gasCalculator, SStoreOperation.EIP_1706_MINIMUM));
}
Also used : SStoreOperation(org.hyperledger.besu.evm.operation.SStoreOperation) ChainIdOperation(org.hyperledger.besu.evm.operation.ChainIdOperation) SelfBalanceOperation(org.hyperledger.besu.evm.operation.SelfBalanceOperation)

Aggregations

ChainIdOperation (org.hyperledger.besu.evm.operation.ChainIdOperation)1 SStoreOperation (org.hyperledger.besu.evm.operation.SStoreOperation)1 SelfBalanceOperation (org.hyperledger.besu.evm.operation.SelfBalanceOperation)1