diff --git a/casper-node_release b/casper-node_release index 095c2fa..a419e2b 100644 --- a/casper-node_release +++ b/casper-node_release @@ -1 +1 @@ -1.2.1-b7802f4 \ No newline at end of file +1.3.1-10ed44340 \ No newline at end of file diff --git a/config/CHANGELOG.md b/config/CHANGELOG.md index 45cb974..70bd938 100644 --- a/config/CHANGELOG.md +++ b/config/CHANGELOG.md @@ -12,6 +12,36 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). [comment]: <> (Security: in case of vulnerabilities) +## 1.3.1 - 1346 +### casper-node 1.3.1-10ed44340 + +## Added +* config-example.toml + * consensus + * highway + * shutdown_on_standstill = true + * network + * max_outgoing_byte_rate_non_validators + * max_incoming_message_rate_non_validators + * storage + * enable_mem_deduplication + * mem_pool_prune_interval + * linear_chain_sync + * sync_timeout + +## Changed +* chainspec.toml + * protocol + * version + * activation_point +* config-example.toml + * consensus + * highway + * standstill_timeout from 5min to 30min + * event_stream_server + * qps_limit changed to max_concurrent_subscribers + + ## 1.2.1 - 1143 ### casper-node 1.2.1-b7802f4 diff --git a/config/chainspec.toml b/config/chainspec.toml index d768f7c..4938ff8 100644 --- a/config/chainspec.toml +++ b/config/chainspec.toml @@ -1,6 +1,6 @@ [protocol] # Protocol version. -version = '1.2.1' +version = '1.3.1' # 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 = 1143 +activation_point = 1346 # Optional era ID in which the last emergency restart happened. #last_emergency_restart = 0 diff --git a/config/config-example.toml b/config/config-example.toml index 72b3d99..2d37846 100644 --- a/config/config-example.toml +++ b/config/config-example.toml @@ -44,7 +44,10 @@ unit_hashes_folder = "/var/lib/casper/casper-node" pending_vertex_timeout = '30min' # If the current era's protocol state has not progressed for this long, shut down. -standstill_timeout = '5min' +standstill_timeout = '30min' + +# If after another `standstill_timeout` there still was no progress, shut down. +shutdown_on_standstill = true # Log inactive or faulty validators periodically, with this interval. log_participation_interval = '1min' @@ -110,13 +113,6 @@ known_addresses = ['3.208.91.63:35000','35.169.197.193:35000'] # The interval (in milliseconds) between each fresh round of gossiping the node's public address. gossip_interval = 120_000 -# Enable systemd support. If enabled, the node will notify systemd once it has synced and its -# listening socket for incoming connections is open. -# -# It is usually better to leave this option off and enable it explicitly via command-line override -# only in the unit files themselves via `-C=network.systemd_support=true`. -systemd_support = false - # Minimum amount of time that has to pass before attempting to reconnect after losing all # connections to established nodes. isolation_reconnect_delay = '2s' @@ -128,6 +124,15 @@ initial_gossip_delay = '5s' # How long a connection is allowed to be stuck as pending before it is abandoned. max_addr_pending_time = '1min' +# The maximum amount of upstream bandwidth in bytes per second allocated to non-validating peers. +# A value of `0` means unlimited. +max_outgoing_byte_rate_non_validators = 6553600 + +# The maximum amount of requests from validating peers per second answered. +# A value of `0` means unlimited. +max_incoming_message_rate_non_validators = 3000 + + # ================================================== # Configuration options for the JSON-RPC HTTP server # ================================================== @@ -180,9 +185,8 @@ address = '0.0.0.0:9999' # The number of event stream events to buffer. event_stream_buffer_length = 5000 -# The global max rate of requests (per second) before they are limited. -# Request will be delayed to the next 1 second bucket once limited. -qps_limit = 10 +# The maximum number of subscribers across all event streams the server will permit at any one time. +max_concurrent_subscribers = 100 # =============================================== @@ -226,6 +230,16 @@ max_deploy_metadata_store_size = 322_122_547_200 # 10_737_418_240 == 10 GiB. max_state_store_size = 10_737_418_240 +# Memory deduplication. +# +# If enabled, nodes will attempt to share loaded objects if possible. +enable_mem_deduplication = true + +# Memory duplication garbage collection. +# +# Sets the frequency how often the memory pool cache is swept for free references. +mem_pool_prune_interval = 1024 + # =================================== # Configuration options for gossiping @@ -300,6 +314,15 @@ verify_accounts = true #max_query_depth = 5 +# ======================================================== +# Configuration options for synchronizing the linear chain +# ======================================================== +[linear_chain_sync] + +# The amount of time that the node will try to sync without making progress before shutting down. +sync_timeout = '1hr' + + # ==================================================================== # Configuration options for selecting deploys to propose in new blocks # ==================================================================== diff --git a/protocol_versions b/protocol_versions index 622fad9..8d7dafd 100644 --- a/protocol_versions +++ b/protocol_versions @@ -3,3 +3,4 @@ 1_1_2 1_2_0 1_2_1 +1_3_1