From 0f9baa2ee885833020ef10974515599560167aa1 Mon Sep 17 00:00:00 2001 From: Joe Sacher <321623+sacherjj@users.noreply.github.com> Date: Tue, 2 May 2023 15:18:00 -0400 Subject: [PATCH 1/2] Config files for 1.4.15 casper-test protocol release. --- casper-node_release | 2 +- config/CHANGELOG.md | 26 +++++++++++++++++++++++++- config/chainspec.toml | 14 +++++++------- protocol_versions | 3 ++- 4 files changed, 35 insertions(+), 10 deletions(-) diff --git a/casper-node_release b/casper-node_release index fecdb81..32e7bbc 100644 --- a/casper-node_release +++ b/casper-node_release @@ -1 +1 @@ -1.4.13-c8db6a737-casper-mainnet \ No newline at end of file +1.4.15-039d438f2-casper-mainnet \ No newline at end of file diff --git a/config/CHANGELOG.md b/config/CHANGELOG.md index ca7e7d1..f53fd36 100644 --- a/config/CHANGELOG.md +++ b/config/CHANGELOG.md @@ -11,7 +11,31 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). [comment]: <> (Fixed: any bug fixes) [comment]: <> (Security: in case of vulnerabilities) -## 1.4.13 - 8154 +# 1.4.15 - 9015 +### casper-node 1.4.15-039d438f2-casper-mainnet + +## Added +* chainspec.toml + * core + * prune_batch_size + +## Changed +* chainspec.toml + * protocol + * version + * activation_point + * wasm + * max_stack_height + * opcode_costs.control_flow + * call + * call_indirect + +## Removed +* chainspec.toml + * wasm.opcode_costs + * regular + +# 1.4.13 - 8078 ### casper-node 1.4.13-c8db6a737-casper-mainnet ## Added diff --git a/config/chainspec.toml b/config/chainspec.toml index e2232df..8747a72 100644 --- a/config/chainspec.toml +++ b/config/chainspec.toml @@ -1,6 +1,6 @@ [protocol] # Protocol version. -version = '1.4.13' +version = '1.4.15' # Whether we need to clear latest blocks back to the switch block just before the activation point or not. hard_reset = true # This protocol version becomes active at this point. @@ -11,7 +11,7 @@ hard_reset = true # in contract-runtime for computing genesis post-state hash. # # If it is an integer, it represents an era ID, meaning the protocol version becomes active at the start of this era. -activation_point = 8154 +activation_point = 9015 # Optional era ID in which the last emergency restart happened. last_emergency_restart = 7098 @@ -58,6 +58,8 @@ max_runtime_call_stack_height = 12 max_stored_value_size = 8_388_608 # Minimum allowed delegation amount in motes minimum_delegation_amount = 500_000_000_000 +# Global state prune batch size (0 = this feature is off) +prune_batch_size = 50 [highway] # A number between 0 and 1 representing the fault tolerance threshold as a fraction, used by the internal finalizer. @@ -106,7 +108,7 @@ native_transfer_minimum_motes = 2_500_000_000 # Amount of free memory (in 64kB pages) each contract can use for stack. max_memory = 64 # Max stack height (native WebAssembly stack limiter). -max_stack_height = 188 +max_stack_height = 200 [wasm.storage_costs] # Gas charged per byte stored in the global state. @@ -143,8 +145,6 @@ nop = 200 current_memory = 290 # Grow memory cost, per page (64kb). grow_memory = 240_000 -# Regular opcode cost. -regular = 210 # Control flow operations multiplier. [wasm.opcode_costs.control_flow] @@ -157,8 +157,8 @@ br = 440_000 br_if = 440_000 return = 440 select = 440 -call = 440 -call_indirect = 440 +call = 140_000 +call_indirect = 140_000 drop = 440 [wasm.opcode_costs.control_flow.br_table] diff --git a/protocol_versions b/protocol_versions index 98f96be..d9e38c0 100644 --- a/protocol_versions +++ b/protocol_versions @@ -15,4 +15,5 @@ 1_4_7 1_4_8 1_4_10 -1_4_13 \ No newline at end of file +1_4_13 +1_4_15 \ No newline at end of file From 4cce17a1f3b47bd2199a1bded93cb618287da32d Mon Sep 17 00:00:00 2001 From: Joe Sacher <321623+sacherjj@users.noreply.github.com> Date: Tue, 2 May 2023 15:22:12 -0400 Subject: [PATCH 2/2] Correcting 1.4.13 era in CHANGELOG.md, in inadvertent replace with diff from integration-test. --- config/CHANGELOG.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/CHANGELOG.md b/config/CHANGELOG.md index f53fd36..de3d752 100644 --- a/config/CHANGELOG.md +++ b/config/CHANGELOG.md @@ -11,7 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). [comment]: <> (Fixed: any bug fixes) [comment]: <> (Security: in case of vulnerabilities) -# 1.4.15 - 9015 +## 1.4.15 - 9015 ### casper-node 1.4.15-039d438f2-casper-mainnet ## Added @@ -35,7 +35,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). * wasm.opcode_costs * regular -# 1.4.13 - 8078 +## 1.4.13 - 8154 ### casper-node 1.4.13-c8db6a737-casper-mainnet ## Added @@ -113,7 +113,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). * version * activation_point -## 1.4.5 - 4102 +# 1.4.5 - 4102 ### casper-node 1.4.5-a7f6a648d-casper-mainnet ## Added @@ -140,7 +140,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). * activation_point -## 1.4.3 - 2940 +# 1.4.3 - 2940 ### casper-node 1.4.3-a44bed1fd-casper-mainnet ## Changed