Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Things you need to know:

  1. This release addresses the blocklisting issue at the networking layer.

Known Issues

  1. Nodes that go offline cause liveness faults. Before turning off your node, please ensure you unbond and wait for the unbonding wait period before shutting your node off. Help us to keep the network up!

  2. If your bids don’t go through, or you get a weird auction error, you need to update your contracts. Grab the contracts for release-0.7.x and compile them.

  3. There are a lot of deploys in the network, if you observe an error on the event stream like this, it is because the data is streaming faster than curl can process it. Simply restart the curl.

    Code Block
    curl: (18) transfer closed with outstanding read data remaining
  4. With heavy usage, disk grows. For production, we recommend 1TB of storage. We have planned work to reduce disk requirements.

Network Info

chain_name: "delta-10"

genesis_root_hash: "8fe7..4899"

github tag for compiling contracts: release-0.7.7

Install Dependencies

Instructions assume Ubuntu 18.04 or later system

...

Code Block
sudo apt install gcc g++ pkg-config libssl-dev make wabt jq

#install rust https://www.rust-lang.org/tools/install
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh    

Contract Compilation instructions

Code Block
git clone https://github.com/CasperLabs/casper-node.git

cd casper-node

git fetch

git checkout release-0.7.7

make setup-rs && make build-client-contracts -j

Node Installation Instructions- Clean Installation

Code Block
breakoutModefull-width
#### delta 10 ####

sudo systemctl stop casper-node
sudo systemctl stop casper-node-launcher

cd ~
sudo apt remove -y casper-node 
sudo apt remove -y casper-client 
sudo apt remove -y casper-node-launcher

# Clean up old genesis file location
sudo rm /etc/casper/config.*
sudo rm /etc/casper/accounts.csv 
sudo rm /etc/casper/chainspec.toml 
sudo rm /etc/casper/validation.md5

curl -JLO https://bintray.com/casperlabs/debian/download_file?file_path=casper-node-launcher_0.2.0-0_amd64.deb
curl -JLO https://bintray.com/casperlabs/debian/download_file?file_path=casper-client_0.7.6-0_amd64.deb
sudo apt install -y ./casper-client_0.7.6-0_amd64.deb ./casper-node-launcher_0.2.0-0_amd64.deb

cd /etc/casper
sudo -u casper ./pull_casper_node_version.sh 1_0_0

# Get trusted_hash into config.toml
curl -s 18.144.176.168:8888/status | jq -r .last_added_block_info.hash

# Or do this automatically
sudo sed -i "/trusted_hash =/c\trusted_hash = '$(curl -s 18.144.176.168:8888/status | jq -r .last_added_block_info.hash | tr -d '\n')'" /etc/casper/1_0_0/config.toml

sudo logrotate -f /etc/logrotate.d/casper-node
sudo /etc/casper/delete_local_db.sh; sleep 1
sudo systemctl start casper-node-launcher
systemctl status casper-node-launcher

Node Installation Instructions- Upgrade

Code Block
sudo systemctl stop casper-node-launcher
sudo rm -rf /etc/casper/1_0_0
sudo rm -rf /var/lib/casper/bin/1_0_0

cd /etc/casper
sudo -u casper ./pull_casper_node_version.sh 1_0_0

sudo sed -i "/trusted_hash =/c\trusted_hash = '$(curl -s 13.57.181.239:8888/status | jq -r .last_added_block_info.hash | tr -d '\n')'" /etc/casper/1_0_0/config.toml

sudo logrotate -f /etc/logrotate.d/casper-node
sudo /etc/casper/delete_local_db.sh; sleep 1
sudo systemctl start casper-node-launcher
systemctl status casper-node-launcher

Detailed List of Changes

...

1048 - [Delta] NDRS-962: Stop syncing early.

This PR adds two new conditions for when to stop syncing and transition to an active node:

  1. When the most recently downloaded block was created less than the longest possible round ago.

  2. When the last downloaded block was a switch block of a currently active era.

...

1042 - NDRS-964: (backport to 0.7.7) Remove outdated assertion on failed bootstrap connection

Backport of https://github.com/CasperLabs/casper-node/pull/1041

...

1047 - NO-TICKET: avoid panicking on handling get responses

This PR removes a couple of todo!s which could allow a malformed or more likely malicious message to cause the node to panic.

...

1028 - Backport ulimit increase

This backports #1027 to the 0.7.7 release.

...

1024 - NO_TICK: syncing ci files with master 0.7.7

...

1021 - NO-TICKET: fix issue in gossip table

This PR fixes an issue in the gossip table whereby gossip items could avoid being moved to the finished or paused state, hence leaving the item in the current state indefinitely, blocking any further attempts to handle gossip for that item.

...

To fix this, I have updated the logic to move an item to the finished state from current (or paused) when we reach the termination condition in all three of these scenarios.

...

1008 - NO-TICKET: revert handshake change

This PR reverts the recent relaxation of the network handshake process in order to allow v0.7.7 nodes to communicate with v0.7.6 nodes.

...

1007 - [Delta]: Backport peer blacklist and contract runtime metrics.

...

1003 - Backport the change to make handshake depend on network name.

Handshake cannot use the chainspec hash anymore since post-upgrade nodes
will be using different chainspec from the joining node (which hasn't
upgraded yet).

...

1004 - [Delta]: Backports passing RoundSuccessMeter between eras.

...

1000 - Backport perf improvements to LinearChainSync.