Skip to content

Commit

Permalink
Fix max_instruction_base_cost
Browse files Browse the repository at this point in the history
It should be 32000 (CREATE), not 20000 (SSTORE)
  • Loading branch information
chfast committed Aug 29, 2019
1 parent 1d036eb commit e1593f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/evmone/limits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
constexpr auto max_code_size = 0x6000;

/// The maximum base cost of any EVM instruction.
/// The value comes from the cost of the SSTORE instruction.
constexpr auto max_instruction_base_cost = 20000;
/// The value comes from the cost of the CREATE instruction.
constexpr auto max_instruction_base_cost = 32000;

/// The maximum stack increase any instruction can cause.
/// Only instructions taking 0 arguments and pushing an item to the stack
Expand Down

0 comments on commit e1593f3

Please sign in to comment.