-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
120 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,21 @@ | ||
#pragma once | ||
|
||
#include <variant> | ||
namespace evm_runtime { | ||
|
||
struct runtime_config { | ||
bool allow_special_signature = false; | ||
bool abort_on_failure = false; | ||
bool enforce_chain_id = true; | ||
bool allow_non_self_miner = true; | ||
}; | ||
|
||
struct gas_parameter_data_v1 { | ||
uint64_t minimum_gas_price = 0; | ||
uint64_t gas_txnewaccount = 0; | ||
uint64_t gas_newaccount = 25000; | ||
uint64_t gas_txcreate = 32000; | ||
uint64_t gas_codedeposit = 200; | ||
uint64_t gas_sset = 20000; | ||
}; | ||
using gas_parameter_data_type = std::variant<gas_parameter_data_v1>; | ||
|
||
} //namespace evm_runtime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters