-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #682 from eosnetworkfoundation/kayan_gas_param
gas param config change event
- Loading branch information
Showing
12 changed files
with
432 additions
and
24 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,24 @@ | ||
#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_type { | ||
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; | ||
}; | ||
struct consensus_parameter_data_v0 { | ||
uint64_t minimum_gas_price = 0; | ||
gas_parameter_type gas_parameter; | ||
}; | ||
using consensus_parameter_data_type = std::variant<consensus_parameter_data_v0>; | ||
|
||
} //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
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
Oops, something went wrong.