Skip to content

Releases: scrtlabs/SecretNetwork

v1.9.2

17 May 02:19
83ad6fc
Compare
Choose a tag to compare

Instructions:

  • If you haven't upgraded yet, do the upgrade instructions then start from part 1.

  • If you're on block 8861810 (halted or stuck) with v1.9.1, start from part 3.

  • Keep pruning on "nothing" for this process, just to be safe

Part 1:

# Stop your v1.9.0 node
sudo systemctl stop secret-node

# Set pruning=nothing
perl -i -pe 's/^pruning =.*$/pruning = "nothing"/' ~/.secretd/config/app.toml

# Set halt-height to 2 blocks from now
perl -i -pe 's/^halt-height =.*$/halt-height = 8861802/' ~/.secretd/config/app.toml

# Restrat your v1.9.0 node
sudo systemctl restart secret-node

Wait for halt-height (might take a while to reach consensus)...

Part 2:

Wait for halt-height (might take a while to reach consensus)...

# Stop your v1.9.0 node
sudo systemctl stop secret-node

# Remove halt-height
perl -i -pe 's/^halt-height =.*$/halt-height = 0/' ~/.secretd/config/app.toml

# Figure out currently used db backend
DB_BACKEND=$(awk -F \" '/^db_backend =/{print $2}' ~/.secretd/config/config.toml)

# Get the v1.9.1 binaries
wget "https://github.com/scrtlabs/SecretNetwork/releases/download/v1.9.1/secretnetwork_1.9.1_mainnet_${DB_BACKEND}_amd64.deb"

# Verify the v1.9.1 binaries
echo '95b5ccb52abeae8e673445fda2cd08bfff79932f20176bf6229270c51a44c9e8 secretnetwork_1.9.1_mainnet_goleveldb_amd64.deb
632c014c934ea826f7fac563ef4f41fcd644ebe31824239069c141deda318476 secretnetwork_1.9.1_mainnet_rocksdb_amd64.deb' |
    grep "$DB_BACKEND" |
    sha256sum --check

# Install the v1.9.1 binaries
sudo apt install -y "./secretnetwork_1.9.1_mainnet_${DB_BACKEND}_amd64.deb"

# re-apply any systemd unit file customizations
Continue to step 3

At this point people stopped their nodes and we're on block 8861810 committed.

Part 3:

At this point people stopped their nodes and we're on block 8861810 committed.

# Stop your v1.9.1 node
sudo systemctl stop secret-node

# Set halt-height to 5 blocks from now
perl -i -pe 's/^halt-height =.*$/halt-height = 8861815/' ~/.secretd/config/app.toml

# Restrat your v1.9.1 node
sudo systemctl restart secret-node

Wait for halt-height (might take a while to reach consensus)...

Part 4:

Wait for halt-height (might take a while to reach consensus)...

# Stop your v1.9.1 node
sudo systemctl stop secret-node

# Remove halt-height
perl -i -pe 's/^halt-height =.*$/halt-height = 0/' ~/.secretd/config/app.toml

# Figure out currently used db backend
DB_BACKEND=$(awk -F \" '/^db_backend =/{print $2}' ~/.secretd/config/config.toml)

# Get the v1.9.2 binaries
wget "https://github.com/scrtlabs/SecretNetwork/releases/download/v1.9.2/secretnetwork_1.9.2_mainnet_${DB_BACKEND}_amd64.deb"

# Verify the v1.9.2 binaries
echo '3c62539e1e5764bc3d5c6929d63627586f5a062afebb34cc9256bf19c5022364 secretnetwork_1.9.2_mainnet_goleveldb_amd64.deb
3f6a08005205d7479b569f8360076f4b5f6f65a6ad4c54460d2ccbc361acc3db secretnetwork_1.9.2_mainnet_rocksdb_amd64.deb' |
    grep "$DB_BACKEND" |
    sha256sum --check

# Install the v1.9.2 binaries
sudo apt install -y "./secretnetwork_1.9.2_mainnet_${DB_BACKEND}_amd64.deb"

# re-apply any systemd unit file customizations

# Restart the node
sudo systemctl restart secret-node

Note: After 1.9.2 we might apphash - this is because there might be validators that are still on 1.9.1 and have not set their halt height nor upgraded. If this happens we'll use quicksyncs to get a majority back (similar to the 1.3.0/1.3.1 halt a while back)

v1.9.1

16 May 17:44
Compare
Choose a tag to compare

Instructions:

Part 1:

# Stop your v1.9.0 node
sudo systemctl stop secret-node

# Set pruning=nothing
perl -i -pe 's/^pruning =.*$/pruning = "nothing"/' ~/.secretd/config/app.toml

# Set halt-height to 2 blocks from now
perl -i -pe 's/^halt-height =.*$/halt-height = 8861802/' ~/.secretd/config/app.toml

# Restrat your v1.9.0 node
sudo systemctl restart secret-node

Wait for halt-height (might take a while to reach consensus)...

Part 2:

# Stop your v1.9.0 node
sudo systemctl stop secret-node

# Remove halt-height
perl -i -pe 's/^halt-height =.*$/halt-height = 0/' ~/.secretd/config/app.toml

# Figure out currently used db backend
DB_BACKEND=$(awk -F \" '/^db_backend =/{print $2}' ~/.secretd/config/config.toml)

# Get the v1.9.1 binaries
wget "https://github.com/scrtlabs/SecretNetwork/releases/download/v1.9.1/secretnetwork_1.9.1_mainnet_${DB_BACKEND}_amd64.deb"

# Verify the v1.9.1 binaries
echo '95b5ccb52abeae8e673445fda2cd08bfff79932f20176bf6229270c51a44c9e8 secretnetwork_1.9.1_mainnet_goleveldb_amd64.deb
632c014c934ea826f7fac563ef4f41fcd644ebe31824239069c141deda318476 secretnetwork_1.9.1_mainnet_rocksdb_amd64.deb' |
    grep "$DB_BACKEND" |
    sha256sum --check

# Install the v1.9.1 binaries
sudo apt install -y "./secretnetwork_1.9.1_mainnet_${DB_BACKEND}_amd64.deb"

# re-apply any systemd unit file customizations

# Restart the node
sudo systemctl restart secret-node

v1.9.0

15 May 11:23
a7d1e50
Compare
Choose a tag to compare

What's Changed

  • New Feature: Randomness injection for secret contracts.
  • New Feature: FinalizeTx.
  • IBC: Updated ibc-go from v3.4.0 to v4.3.0.
  • New IBC Feature: Added packet-forward-middleware by Strangelove.
  • New IBC Feature: Added IBC fee middleware.
  • New IBC Feature: Added IBC panic button.
  • New Feature: Evaporate & Check Gas APIs by @darwinzer0 & @blake-regalia
  • Bug fix: Fixed an issue where nodes would sometimes stop if failing to enter SGX enclave
  • Bug fix: Fixed an issue where deleting a storage key that was stored in the same msg would fail (thanks @baedrik for reporting this)
  • Bug fix: Fixed an issue where stopping and starting nodes would often cause them to apphash

Notes

  • Ubuntu 18 is no longer supported
  • This is the last release which will contain rocksdb binaries. We recommend all node operators that are still using rocksdb migrate to goleveldb

Upgrade instructions available at https://docs.scrt.network/secret-network-documentation/infrastructure/upgrade-instructions/v1.9

v1.9.0-rc.1

11 May 12:55
a7d1e50
Compare
Choose a tag to compare
v1.9.0-rc.1 Pre-release
Pre-release
Merge pull request #1437 from scrtlabs/fix-lib-check

Bump release check to 1.9

v1.9.0-rc.0

11 May 13:04
a7d1e50
Compare
Choose a tag to compare
v1.9.0-rc.0 Pre-release
Pre-release
Merge pull request #1437 from scrtlabs/fix-lib-check

Bump release check to 1.9

v1.9.0-beta.3

02 May 16:28
d0c05d7
Compare
Choose a tag to compare
v1.9.0-beta.3 Pre-release
Pre-release
Update Makefile

v1.9.0-beta.2

01 May 15:27
Compare
Choose a tag to compare
v1.9.0-beta.2 Pre-release
Pre-release

⚠️ TESTNET ⚠️

Upgrade instructions

Check what database type you're currently using:

awk -F \" '/^db_backend =/{print $2}' ~/.secretd/config/config.toml

Uncomment and download the right binary based on your database type:

# Stop the v1.7.0 node
sudo systemctl stop secret-node

# Get & verify secretd v1.8.0

## goleveldb
# wget "https://github.com/scrtlabs/SecretNetwork/releases/download/v1.9.0-beta.2/secretnetwork_1.9.0-beta.2_testnet_goleveldb_amd64.deb"
# echo "b53f90819264ce0c44b46be696fc9b0fa4fcd694f660387e34aa023366996a38 secretnetwork_1.9.0-beta.2_testnet_goleveldb_amd64.deb" | sha256sum --check

## rocksdb
# wget "https://github.com/scrtlabs/SecretNetwork/releases/download/v1.9.0-beta.2/secretnetwork_1.9.0-beta.2_testnet_rocksdb_amd64.deb"
# echo "ea54e3f732c0c00515ad303e9a677ba27fdcb4d79b218aee608e2af77b3ab03f secretnetwork_1.9.0-beta.2_testnet_rocksdb_amd64.deb" | sha256sum --check

# Install 1.9.0 binaries
sudo apt install -y ./secretnetwork_1.9.0-beta.2_testnet_*_amd64.deb

# Restart the node
sudo systemctl restart secret-node

Update

Ubuntu 18.04 is no longer supported

What's Changed

  • New Feature: Randomness injection for secret contracts.
    • Eliminates the need for contracts to bootstrap their own entropy pool.
    • Unique for every contract call.
    • Useful in lotteries, gaming, secure authentication protocols, protocols where unpredictable outcomes are essential for fairness and security, and much more.
      For more infomation on how to use this feature, see the documentation
  • New Feature: FinalizeTx.
    • Contracts can force the transaction to finalize at a certain point, otherwise revert.
    • Example: protect against sandwich attacks and potential transaction rollbacks.
    • Example: protect against cheating in gaming applications, where a malicious player could try to rollback a transaction in which they lost.
  • IBC: Updated ibc-go from v3.4.0 to v4.3.0.
  • New IBC Feature: Added packet-forward-middleware by Strangelove.
    • Other chains would be able to more easily route SCRT in the interchain. For example, sending SCRT from Osmosis to Hub now becomes a single transaction from Osmosis -> Secret rather than a transaction from Osmosis -> Secret, then a transaction from Secret -> Hub.
  • New IBC Feature: Added IBC fee middleware.
    • Creates a fee market for relaying IBC packets.
  • New IBC Feature: Added IBC panic button.
    • Quickly shut down IBC in case of an emergency.
  • New Feature: Evaporate & Check Gas APIs
    The new Check Gas and Evaporate APIs allow contract developers to create contracts that consume a constant amount of gas, independently of their code path. This helps harden contracts against information leakage from the amount of gas consumed by a contract.
  • Bug Fix: Fixed an issue where nodes would sometimes stop if failing to enter SGX enclave

v1.8.0

04 Mar 09:21
473b065
Compare
Choose a tag to compare

Upgrade Highlights

Bug Fixes

  • Fix a consensus-breaking bug that occurs when restarting a node or syncing with state-sync.

Upgrade instructions

See docs.scrt.network for upgrade instructions.

Full Changelog: v1.7.1...v1.8.0

v1.7.1

01 Mar 02:02
3aa6139
Compare
Choose a tag to compare

Upgrade Highlights

New Features

  • Added the ability to rotate consensus seed during a network upgrade - this will be executed during this upgrade
  • Added expedited gov proposals
    • Initial params (can be amended with a param change proposal):
      • Minimum deposit: 750 SCRT
      • Voting time: 24 hours
      • Voting threshold: 2/3 yes to pass
    • If an expedited proposal fails to meet the threshold within the scope of shorter voting duration, it's then converted to a regular proposal and restarts voting under regular voting conditions.
  • Added auto-restaking - an opt-in feature that enables automatic compounding of staking rewards
  • Added light-client validation for blocks
    • Protects against leaking private data using an offline fork attack
    • Enables trusted block heights and block time to be relied on by contracts

Bug Fixes

  • Fixed OSX Ledger disconnection issues in secretcli (Thanks @chillyvee!)
  • Fixed /cosmos/base/node/v1beta1/config
  • Fixed an issue when sending multiple message types in the same tx
  • Fixed an issue with the IBC controller module

Breaking Changes

Mandatory secret.js update (non-API breaking).

To implement consensus seed rotation, the tx encryption key format has changed, requiring an update of secret.js. After the upgrade goes live, secret.js will require an update to one of the following versions to continue to function:

  • v1.5.x, v1.6.x -> v1.7.x
  • v1.4.x -> v1.4.6
  • v0.17.8 - can still be used

This should be a simple version bump that will not change any existing APIs, and will not break functionality. In order to test this version, secret.js v1.7.1-beta3 is available for testing on pulsar-2, which is already on the 1.7 update.

Side note: This upgrade will not affect Keplr

Upgrade instructions

See docs.scrt.network for upgrade instructions.

Full Changelog: v1.6.1...v1.7.1

v1.6.1

02 Feb 10:52
3cfc349
Compare
Choose a tag to compare

Updating from v1.6.0

⚠️ Note: The below instructions assume default installation. DO NOT COPY-PASTE if config.toml is not in ~/.secretd/config/config.toml or if you modified /etc/systemd/system/secret-node.service.

# Stop the v1.6.0 node
sudo systemctl stop secret-node

# Figure out currently used db backend
DB_BACKEND=$(awk -F \" '/^db_backend =/{print $2}' ~/.secretd/config/config.toml)

# Get the v1.6.1 binaries
wget "https://github.com/scrtlabs/SecretNetwork/releases/download/v1.6.1/secretnetwork_1.6.1_mainnet_${DB_BACKEND}_amd64.deb"

# Verify the v1.6.1 binaries
echo '2c043fb25f2b4f97eeda52a4033aff0ceb86f5dbb4738791f00eacdb8e065dfe secretnetwork_1.6.1_mainnet_goleveldb_amd64.deb
384125518cb4255fc4c6fb31506f605f5d0b5685eec840942960be19d2944c30 secretnetwork_1.6.1_mainnet_rocksdb_amd64.deb' |
    grep "$DB_BACKEND" |
    sha256sum --check

# Install the v1.6.1 binaries
sudo apt install -y "./secretnetwork_1.6.1_mainnet_${DB_BACKEND}_amd64.deb"

# Restart the node
sudo systemctl restart secret-node

What's Changed

  • Update Cosmos SDK to v0.45.12
  • Update Tendermint to v0.34.24

Full Changelog: v1.6.0...v1.6.1