HomeCoinsCosmos (ATOM)Why Do We Test Cosmos Stargate with Software Simulations? | by Alessio...

Why Do We Test Cosmos Stargate with Software Simulations? | by Alessio Treglia | Oct, 2020

- Advertisement -


When anyone says that a software release contains “breaking changes” it often means that some behavior has changed without a full understanding of the changes. However, even if engineers conduct thorough testing, there’s always a risk that a bug is lurking deep beneath. Getting a handle on these types of bugs is the goal of the simulations test. Below we share a little bit of why we run simulations at Tendermint.

As blockchain protocols grow in complexity due to speed and interchain interaction requirements, we need to ship software that will break compatibility with prior features. Breaking changes are common in software development. However, when we speak of value transfer systems involving cryptocurrency, breaking changes are liable to have impacts unseen until a substantial amount of transactions complete. Since transaction volume increases over time, it’s very difficult to test for these hidden issues with simple integration testing procedures.

An informative simulation test of Stargate requires that we run a version of the protocol for several thousand blocks. Subtle errors that could exist in the decimal number implementation, fee calculation, or state machine transitions can be detected by generating and sending randomized messages. The goal of simulations is to detect failures that could halt a chain and provide as much detail as possible, such as log files and the application state at which a failure occurred.

Source: Cosmos Stargate server simulation logs

In the long term, this can reduce software breakage by running the Cosmos protocol and observing unique issues we may not have predicted. We want to continuously raise the bar for testing all of our code so that it is as exhaustive as possible. Exhaustive testing should lead to faster and more confident upgrades to the Cosmos Hub.

If you are interested in learning more about the simulator and the simulation tools we use, check the Github repository that hosts runsim’s source code, the Cosmos SDK documentation and continue to check our Stargate updates here: https://github.com/cosmosdevs/stargate/.



Read the original article here

- Advertisement -
profile logo 500x500
Mr Bitcointehttps://www.bitcointe.com/
“Fact You Need To Know About Cryptocurrency - The first Bitcoin purchase was for pizza.” ― Mohsin Jameel
462FansLike
76FollowersFollow
4,567FollowersFollow
5,261FollowersFollow
1,486FollowersFollow
2,230SubscribersSubscribe

Most Popular

bitcoin
Bitcoin (BTC) $ 41,896.00
ethereum
Ethereum (ETH) $ 2,875.76
tether
Tether (USDT) $ 1.00
bitcoin-cash
Bitcoin Cash (BCH) $ 484.76
litecoin
Litecoin (LTC) $ 144.17
eos
EOS (EOS) $ 3.78
okb
OKB (OKB) $ 15.96
tezos
Tezos (XTZ) $ 5.69
leo-token
LEO Token (LEO) $ 2.70
cardano
Cardano (ADA) $ 2.08
monero
Monero (XMR) $ 235.81
stellar
Stellar (XLM) $ 0.264569
chainlink
Chainlink (LINK) $ 22.57
huobi-token
Huobi Token (HT) $ 7.70
tron
TRON (TRX) $ 0.084942
usd-coin
USD Coin (USDC) $ 1.00
dash
Dash (DASH) $ 150.68
neo
NEO (NEO) $ 36.77
iota
IOTA (MIOTA) $ 1.08
nem
NEM (XEM) $ 0.139196
zcash
Zcash (ZEC) $ 103.41
maker
Maker (MKR) $ 2,291.08
paxos-standard
Pax Dollar (USDP) $ 1.00
ethereum-classic
Ethereum Classic (ETC) $ 46.11
vechain
VeChain (VET) $ 0.084453
true-usd
TrueUSD (TUSD) $ 1.00
ftx-token
FTX Token (FTT) $ 49.34
kucoin-shares
KuCoin Token (KCS) $ 9.94
waves
Waves (WAVES) $ 23.70