Skip to content

Commit

Permalink
Add fork configuration for #2033
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHinshelwood committed Dec 18, 2024
1 parent 3594bb4 commit d087e66
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions z2/resources/chain-specs/zq2-protomainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ consensus.scilla_call_gas_exempt_addrs = [
"0xbfDe2156aF75a29d36614bC1F8005DD816Bd9200"
]
consensus.forks = [
{ at_height = 0, failed_scilla_call_from_gas_exempt_caller_causes_revert = false },
{ at_height = 5299000, failed_scilla_call_from_gas_exempt_caller_causes_revert = true },
{ at_height = 0, failed_scilla_call_from_gas_exempt_caller_causes_revert = false, call_mode_1_sets_caller_to_parent_caller = false },
{ at_height = 5299000, failed_scilla_call_from_gas_exempt_caller_causes_revert = true, call_mode_1_sets_caller_to_parent_caller = true },
]
4 changes: 2 additions & 2 deletions z2/resources/chain-specs/zq2-prototestnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ consensus.scilla_call_gas_exempt_addrs = [
"0xaD581eC62eA08831c8FE2Cd7A1113473fE40A057"
]
consensus.forks = [
{ at_height = 0, failed_scilla_call_from_gas_exempt_caller_causes_revert = false },
{ at_height = 8404000, failed_scilla_call_from_gas_exempt_caller_causes_revert = true },
{ at_height = 0, failed_scilla_call_from_gas_exempt_caller_causes_revert = false, call_mode_1_sets_caller_to_parent_caller = false },
{ at_height = 8404000, failed_scilla_call_from_gas_exempt_caller_causes_revert = true, call_mode_1_sets_caller_to_parent_caller = true },
]
8 changes: 4 additions & 4 deletions z2/src/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,14 @@ impl Chain {
pub fn get_forks(&self) -> Vec<Value> {
match self {
Chain::Zq2ProtoTestnet => vec![
json!({ "at_height": 0, "failed_scilla_call_from_gas_exempt_caller_causes_revert": false }),
json!({ "at_height": 0, "failed_scilla_call_from_gas_exempt_caller_causes_revert": false, "call_mode_1_sets_caller_to_parent_caller": false }),
// estimated: 2024-12-18T14:57:53Z
json!({ "at_height": 8404000, "failed_scilla_call_from_gas_exempt_caller_causes_revert": true }),
json!({ "at_height": 8404000, "failed_scilla_call_from_gas_exempt_caller_causes_revert": true, "call_mode_1_sets_caller_to_parent_caller": true }),
],
Chain::Zq2ProtoMainnet => vec![
json!({ "at_height": 0, "failed_scilla_call_from_gas_exempt_caller_causes_revert": false }),
json!({ "at_height": 0, "failed_scilla_call_from_gas_exempt_caller_causes_revert": false, "call_mode_1_sets_caller_to_parent_caller": false }),
// estimated: 2024-12-19T15:03:05Z
json!({ "at_height": 5299000, "failed_scilla_call_from_gas_exempt_caller_causes_revert": true }),
json!({ "at_height": 5299000, "failed_scilla_call_from_gas_exempt_caller_causes_revert": true, "call_mode_1_sets_caller_to_parent_caller": true }),
],
_ => vec![],
}
Expand Down

0 comments on commit d087e66

Please sign in to comment.