Skip to content

Commit

Permalink
Update SLOAD_GAS cost to 200 in Aztlan Gas Calculator (#23) (#382)
Browse files Browse the repository at this point in the history
* Update SLOAD_GAS cost to 200 in Aztlan Gas Calculator

Change SLOAD_GAS cost in Aztlan Gas Calculator from 800 to 200 and
update functions that use SLOAD_GAS.

Signed-off-by: edwardmack <[email protected]>

* Update SLOAD_GAS cost to 200 in Aztlan Gas Calculator

Change SLOAD_GAS cost in Aztlan Gas Calculator from 800 to 200 and
update functions that use SLOAD_GAS.

Signed-off-by: edwardmack <[email protected]>
Signed-off-by: Edward Mack <[email protected]>

* remove overrides

removed overrides of calculateStorageCost and
calculateStorageRefundAmount in AztlanGasCalculator because these were
causing aztlan fork not to sync with kotti testnet.

Signed-off-by: Edward Mack <[email protected]>

* merge

Signed-off-by: Edward Mack <[email protected]>
  • Loading branch information
edwardmack authored Feb 20, 2020
1 parent 145710a commit 3603f8d
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@
public class AztlanGasCalculator extends IstanbulGasCalculator {
private static final Gas BALANCE_OPERATION_GAS_COST = Gas.of(400);
private static final Gas EXTCODE_HASH_COST = Gas.of(400);
private static final Gas SLOAD_GAS = Gas.of(200);

@Override
// As per https://eips.ethereum.org/EIPS/eip-1884
public Gas getSloadOperationGasCost() {
return SLOAD_GAS;
}

@Override
public Gas getBalanceOperationGasCost() {
Expand Down

0 comments on commit 3603f8d

Please sign in to comment.