Skip to content

Commit

Permalink
Merge pull request #630 from sacherjj/delta-4-config
Browse files Browse the repository at this point in the history
Delta 4 Config
  • Loading branch information
sacherjj authored Dec 8, 2020
2 parents e739e96 + d439f8e commit 25c5fec
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 17 deletions.
6 changes: 3 additions & 3 deletions resources/maintainer_scripts/pull_genesis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ set -e
cd /etc/casper

# This will pull latest genesis files down into current directory.
# The expectation is this is installed in and run in /etc/casper with sudo
# The expectation is this is installed in and run in /etc/casper with sudo su - casper

BRANCH_NAME="master"
NETWORK_NAME="casper-delta"

BASE_PATH="https://raw.githubusercontent.com/CasperLabs/casper-node/${BRANCH_NAME}/resources/production"
BASE_PATH="https://casper-node.s3.us-east-2.amazonaws.com/${NETWORK_NAME}"
ACCOUNTS_CSV_PATH="${BASE_PATH}/accounts.csv"
CHAINSPEC_TOML_PATH="${BASE_PATH}/chainspec.toml"
VALIDATION_PATH="${BASE_PATH}/validation.md5"
Expand Down
13 changes: 6 additions & 7 deletions resources/production/accounts.csv
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
01054c929d687267a30341c759b4a9cab1238cb2de65546be43dad479c50745724,100000000000000000000000000000000000,0
018b15761be0c527117c79b87ca013b014a4628f01e382902a139529406723d86b,1000000000000000000000,10000000000
018267d68f8d249b1430551ecc7b4c176d66f2ba2bf98d5547e7c3accc99375e53,1000000000000000000000,10000000000
013e6da85e28215de8c7510b572b9869abe5865c0ded45b5533ace1e7f51110138,1000000000000000000000,0
0186d42bacf67a4b6c5042edba6bc736769171ca3320f7b0040ab9265aca13bbee,1000000000000000000000,0
01bdda22721033ae556e92ccf1034f8d14f24c3794fa7befaa831bcae98f9f1e9b,1000000000000000000000,0
01329cc15cb92fca5d5ce6d7fcc881010161547f452e2caad4dff565708b00b8c7,1000000000000000000000,0
01054c929d687267a30341c759b4a9cab1238cb2de65546be43dad479c50745724,10000000000000000000000000000000000000,0
013f774a58f4d40bd9b6cce7e306e53646913860ef2a111d00f0fe7794010c4012,1000000000000000000000000,10000000000
01d62fc9b894218bfbe8eebcc4a28a1fc4cb3a5c6120bb0027207ba8214439929e,1000000000000000000000000,10000000000
018b15761be0c527117c79b87ca013b014a4628f01e382902a139529406723d86b,1000000000000000000000000,0
01524a5f3567d7b5ea17ca518c9d0320fb4a75a28a5eab58d06c755c388f20a19f,1000000000000000000000000,0
018267d68f8d249b1430551ecc7b4c176d66f2ba2bf98d5547e7c3accc99375e53,1000000000000000000000,0
6 changes: 3 additions & 3 deletions resources/production/chainspec.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# Human readable name for convenience; the genesis_hash is the true identifier. The name influences the genesis hash by
# contributing to the seeding of the pseudo-random number generator used in contract-runtime for computing genesis
# post-state hash.
name = 'release-test-4'
name = 'casper-delta-4'
# Timestamp for the genesis block, also used in seeding the pseudo-random number generator used in contract-runtime for
# computing genesis post-state hash.
timestamp = '2020-12-03T04:00:00Z'
timestamp = '2020-12-10T15:00:00Z'
# Protocol version at genesis.
protocol_version = '1.0.0'
# Path (absolute, or relative to this chainspec.toml) to the file containing wasm bytecode for installing the mint
Expand Down Expand Up @@ -45,7 +45,7 @@ round_seigniorage_rate = [16_837, 204_568_405_924]
# key blocks for the upcoming eras. If the era is over by the time we start the nodes, they'll not be able to produce
# blocks in it, and there won't be a new era build either. That means when a completely new network is started, the
# genesis era start time has to be adjusted to be active at the time.
genesis_era_start_timestamp = '2020-12-03T04:00:00Z'
genesis_era_start_timestamp = '2020-12-10T15:00:00Z'
# Era duration.
era_duration = '30minutes'
# Minimum number of blocks per era. An era will take longer than `era_duration` if that is necessary to reach the
Expand Down
4 changes: 2 additions & 2 deletions resources/production/config-example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public_address = '<IP ADDRESS>:0'

# Address to bind to for listening.
# If port is set to 0, a random port will be used.
bind_address = '0.0.0.0:35555'
bind_address = '0.0.0.0:35000'

# Addresses to connect to in order to join the network.
#
Expand All @@ -57,7 +57,7 @@ bind_address = '0.0.0.0:35555'
#
# Multiple addresses can be given and the node will attempt to connect to each, requiring at least
# one connection.
known_addresses = ['54.183.27.75:35555']
known_addresses = ['54.67.67.33:35000']

# The interval (in milliseconds) between each fresh round of gossiping the node's public address.
gossip_interval = 120_000
Expand Down
4 changes: 2 additions & 2 deletions resources/production/validation.md5
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
7562c32ae6c92f1d1e4f12409ee1bc8d accounts.csv
0754ec1505f0ae2588181512bbbc3d08 chainspec.toml
9db01ba088b1e969841e8f96e6238ba1 accounts.csv
a17b318c2df817f979b45f6dbf42bfe2 chainspec.toml

0 comments on commit 25c5fec

Please sign in to comment.