Skip to content

Commit

Permalink
casper 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sacherjj committed Feb 16, 2022
1 parent e28f013 commit e8cf311
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 8 deletions.
2 changes: 1 addition & 1 deletion casper-node_release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.2-a2679a4f
1.2.0-58912c93
28 changes: 28 additions & 0 deletions config/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,34 @@ 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.2.0 - 694
### casper-node 1.2.0-58912c93

## Added
* config-example.toml
* consensus
* highway
* standstill_timeout
* log_participation_interval
* log_unit_sizes
* max_requests_for_vertex
* round_success_meter
* num_rounds_to_consider
* num_rounds_slowdown
* num_rounds_speedup
* acceleration_parameter
* acceleration_ftt

## Changed
* chainspec.toml
* protocol
* version
* activation_point
* network
* known_addresses


## 1.1.2 - 574
### casper-node 1.1.2-a2679a4f

Expand Down
6 changes: 4 additions & 2 deletions config/chainspec.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[protocol]
# Protocol version.
version = '1.1.2'
version = '1.2.0'
# 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.
Expand All @@ -11,7 +11,9 @@ 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 = 574
activation_point = 694
# Optional era ID in which the last emergency restart happened.
#last_emergency_restart = 0

[network]
# Human readable name for convenience; the genesis_hash is the true identifier. The name influences the genesis hash by
Expand Down
60 changes: 55 additions & 5 deletions config/config-example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,61 @@ abbreviate_modules = false
# Configuration options for consensus
# ===================================
[consensus]

# Path (absolute, or relative to this config.toml) to validator's secret key file used to sign
# consensus messages.
secret_key_path = '/etc/casper/validator_keys/secret_key.pem'


# ===========================================
# Configuration options for Highway consensus
# ===========================================
[consensus.highway]

# The folder in which the files with per-era latest unit hashes will be stored.
unit_hashes_folder = "/var/lib/casper/casper-node"

# The duration for which incoming vertices with missing dependencies should be kept in a queue.
pending_vertex_timeout = '30min'

# If the current era's protocol state has not progressed for this long, shut down.
standstill_timeout = '5min'

# Log inactive or faulty validators periodically, with this interval.
log_participation_interval = '1min'

# Log the size of every incoming and outgoing serialized unit.
log_unit_sizes = false

# The maximum number of blocks by which execution is allowed to lag behind finalization.
# If it is more than that, consensus will pause, and resume once the executor has caught up.
max_execution_delay = 3

# The maximum number of peers we request the same vertex from in parallel.
max_requests_for_vertex = 5

[consensus.highway.round_success_meter]
# The number of most recent rounds we will be keeping track of.
num_rounds_to_consider = 40

# The number of successful rounds that triggers us to slow down: With this many or fewer
# successes per `num_rounds_to_consider`, we increase our round exponent.
num_rounds_slowdown = 10

# The number of successful rounds that triggers us to speed up: With this many or more successes
# per `num_rounds_to_consider`, we decrease our round exponent.
num_rounds_speedup = 32

# We will try to accelerate (decrease our round exponent) every `acceleration_parameter` rounds if
# we have few enough failures.
acceleration_parameter = 40

# The FTT, as a percentage (i.e. `acceleration_ftt = [1, 100]` means 1% of the validators' total weight), which
# we will use for looking for a summit in order to determine a proposal's finality.
# The required quorum in a summit we will look for to check if a round was successful is
# determined by this FTT.
acceleration_ftt = [1, 100]


# ====================================
# Configuration options for networking
Expand All @@ -64,7 +105,7 @@ bind_address = '0.0.0.0:35000'
#
# Multiple addresses can be given and the node will attempt to connect to each, requiring at least
# one connection.
known_addresses = ['134.209.243.124:35000','148.251.190.103:35000','167.172.32.44:35000','165.22.252.48:35000','18.219.70.138:35000','3.225.191.9:35000','3.221.194.62:35000','47.88.87.63:35000','101.36.120.117:35000','54.151.24.120:35000','148.251.135.60:35000','47.251.14.254:35000','18.188.103.230:35000','54.215.53.35:35000','88.99.95.7:35000','99.81.225.72:35000','1.15.171.36:35000','52.207.122.179:35000','3.135.134.105:35000','62.171.135.101:35000','139.162.132.144:35000','63.33.251.206:35000','135.181.165.110:35000','135.181.134.57:35000','46.4.91.24:35000','94.130.107.198:35000','54.180.220.20:35000','188.40.83.254:35000','157.90.131.121:35000','134.209.110.11:35000','168.119.69.6:35000','45.76.251.225:35000','168.119.209.31:35000','31.7.207.16:35000','209.145.60.74:35000','54.252.66.23:35000','134.209.16.172:35000','178.238.235.196:35000','98.149.220.243:35000','3.17.72.47:35000','207.246.114.236:35000']
known_addresses = ['134.209.243.124:35000','148.251.190.103:35000','167.172.32.44:35000','165.22.252.48:35000','18.219.70.138:35000','3.225.191.9:35000','3.221.194.62:35000','101.36.120.117:35000','54.151.24.120:35000','148.251.135.60:35000','18.188.103.230:35000','54.215.53.35:35000','88.99.95.7:35000','99.81.225.72:35000','52.207.122.179:35000','3.135.134.105:35000','62.171.135.101:35000','139.162.132.144:35000','63.33.251.206:35000','135.181.165.110:35000','135.181.134.57:35000','94.130.107.198:35000','54.180.220.20:35000','188.40.83.254:35000','157.90.131.121:35000','134.209.110.11:35000','168.119.69.6:35000','45.76.251.225:35000','168.119.209.31:35000','31.7.207.16:35000','209.145.60.74:35000','54.252.66.23:35000','134.209.16.172:35000','178.238.235.196:35000','98.149.220.243:35000','3.17.72.47:35000','207.246.114.236:35000']

# The interval (in milliseconds) between each fresh round of gossiping the node's public address.
gossip_interval = 120_000
Expand Down Expand Up @@ -139,9 +180,6 @@ address = '0.0.0.0:9999'
# The number of event stream events to buffer.
event_stream_buffer_length = 5000

# The capacity of the broadcast channel size.
broadcast_channel_size = 6500

# 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
Expand Down Expand Up @@ -245,6 +283,7 @@ verify_accounts = true
# Configuration options for the contract runtime component
# ========================================================
[contract_runtime]

# Optional setting to enable bonding or not. If unset, defaults to false.
#enable_bonding = false

Expand All @@ -258,4 +297,15 @@ verify_accounts = true
# Optional depth limit to use for global state queries.
#
# If unset, defaults to 5.
#max_query_depth = 5
#max_query_depth = 5


# ====================================================================
# Configuration options for selecting deploys to propose in new blocks
# ====================================================================
[block_proposer]

# Deploys are only proposed in a new block if they have been received at least this long ago.
# A longer delay makes it more likely that many proposed deploys are already known by the
# other nodes, and don't have to be requested from the proposer afterwards.
#deploy_delay = '1min'
1 change: 1 addition & 0 deletions protocol_versions
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
1_0_0
1_1_0
1_1_2
1_2_0

0 comments on commit e8cf311

Please sign in to comment.