Git Product home page Git Product logo

stargate-launch's Introduction

Stargate upgrade

[Join the Cosmos Stargate announcements channel!](Cosmos Stargate announcements channel!)

If you’re running a block explorer, wallet, exchange, validator, or any other service (eg. custody provider) that depends upon the Cosmos Hub or Cosmos ecosystem, you’ll want to pay attention, because this upgrade will involve substantial changes.

Help us to get the word out–this is a major leap for the Cosmos Network and we want everyone on board 🚀

Testnet

Uncoordinated Upgrade Completed 02-02-2021

Upgrade instructions:

  1. Stop your gaia v3 instance
killall gaiad
  1. Backup your .gaia folder

  2. Install gaia v4 binary

git checkout v4.0.0
make install
  1. Start gaia v4.0.0 binary

Joining

We are launching the final stargate testnet. We

git clone https://github.com/cosmos/gaia
git checkout v4.0.0
make install

Our validator node for a persistent peer is available at

Seed Node

Please familiarize your self with the Running a Node documentation.

  • Legacy Amino
  • IBC
  • State-Sync
  • Cosmovisor

Statesync Configuration Options

State sync rapidly bootstraps a new node by discovering, fetching, and restoring a state machine snapshot from peers instead of fetching and replaying historical blocks. Requires some peers in the network to take and serve state machine snapshots. State sync is not attempted if the node has any local state (LastBlockHeight > 0). The node will have a truncated block history, starting from the height of the snapshot.

In the Tendermint config file there is a state-sync section. Some of these fields must be filled in order to use state-sync.

To find out how to fill in this information please visit: https://docs.tendermint.com/master/tendermint-core/state-sync.html

Additionally, some nodes in the network must take state sync snapshots, which are configured in app.toml:

Snapshot-interval specifies the block interval at which local state sync snapshots are taken (0 to disable). Must be a multiple of pruning-keep-every.

NOTE: Please set this value to a non-zero value. This is required in order for other nodes to be able to utilize state-sync.

snapshot-interval = {{ .StateSync.SnapshotInterval }}

Snapshot-keep-recent specifies the number of recent snapshots to keep and serve (0 to keep all).

snapshot-keep-recent = {{ .StateSync.SnapshotKeepRecent }}

These are disabled by default, out of caution - this is new code, and we wouldn't want it to cause a chain-wide halt or data corruption. Eventually we can consider enabling them by default.

stargate-launch's People

Contributors

alexandruast avatar bi23com avatar cachitu avatar cfl0ws avatar chinezupwnz avatar clawmvp avatar clevinson avatar cwgoes avatar dchengit avatar derfredy avatar dimiandre avatar edouardlvdl avatar egunawan85 avatar elecon-rou avatar franono avatar gbunea avatar greg-szabo avatar i7495 avatar jackzampolin avatar jim380 avatar juniuszhou avatar liangping avatar muhazzz avatar shahankhatch avatar sunnya97 avatar taariq avatar tac0turtle avatar tessr avatar wangfeiping avatar zmanian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stargate-launch's Issues

Delegate doesn't work

When upgrading to stargate(cosmoshub-4), the delegate does not work and the node sometimes returns a failure, sometimes success, but ultimately it does not success.

Here is the example:

post: https://lcd-cosmos-app.cosmostation.io/txs

data:

{
    "tx":{
        "signatures":[{"sequence":"81","signature":"wVz+0AH2rmixEl0mG7RTa56vonSsBQz6Rb1iPvW5XZwNh9BI5G4FRRC5pvKQuLwHJgBvp2Ut+NWyajJtc5RZNA==","pub_key":{"type":"tendermint/PubKeySecp256k1","value":"A2Rm/c/5Tg5UB0Y/UvWzztmdPTCvSvwCiPjIhgCgUncm"},"account_number":"11520"}],"memo":"Reinvest rewards from imToken","msg":[{"type":"cosmos-sdk/MsgWithdrawDelegationReward","value":{"validator_address":"cosmosvaloper1pz0lfq40sa63n0wany3v95x3yvznc5gyf8u28w","delegator_address":"cosmos1wcglfxddvpygwl22e266ams4tgckhly7q70z8z"}},{"type":"cosmos-sdk/MsgWithdrawDelegationReward","value":{"validator_address":"cosmosvaloper1wwspfe7whh3zu4ql5rvpg044lyk6cuu7fpnd9e","delegator_address":"cosmos1wcglfxddvpygwl22e266ams4tgckhly7q70z8z"}},{"value":{"validator_address":"cosmosvaloper1qwl879nx9t6kef4supyazayf7vjhennyh568ys","delegator_address":"cosmos1wcglfxddvpygwl22e266ams4tgckhly7q70z8z"},"type":"cosmos-sdk/MsgWithdrawDelegationReward"},{"value":{"validator_address":"cosmosvaloper1q6d3d089hg59x6gcx92uumx70s5y5wadklue8s","delegator_address":"cosmos1wcglfxddvpygwl22e266ams4tgckhly7q70z8z"},"type":"cosmos-sdk/MsgWithdrawDelegationReward"},{"value":{"validator_address":"cosmosvaloper1rwh0cxa72d3yle3r4l8gd7vyphrmjy2kpe4x72","delegator_address":"cosmos1wcglfxddvpygwl22e266ams4tgckhly7q70z8z"},"type":"cosmos-sdk/MsgWithdrawDelegationReward"},{"type":"cosmos-sdk/MsgWithdrawDelegationReward","value":{"validator_address":"cosmosvaloper1sxx9mszve0gaedz5ld7qdkjkfv8z992ax69k08","delegator_address":"cosmos1wcglfxddvpygwl22e266ams4tgckhly7q70z8z"}},{"type":"cosmos-sdk/MsgWithdrawDelegationReward","value":{"validator_address":"cosmosvaloper1dt93l3qgmhhlp97srjyqyendrgu9nx0suxtwe8","delegator_address":"cosmos1wcglfxddvpygwl22e266ams4tgckhly7q70z8z"}},{"value":{"amount":{"denom":"uatom","amount":"12"},"validator_address":"cosmosvaloper1pz0lfq40sa63n0wany3v95x3yvznc5gyf8u28w","delegator_address":"cosmos1wcglfxddvpygwl22e266ams4tgckhly7q70z8z"},"type":"cosmos-sdk/MsgDelegate"},{"value":{"amount":{"denom":"uatom","amount":"3"},"validator_address":"cosmosvaloper1wwspfe7whh3zu4ql5rvpg044lyk6cuu7fpnd9e","delegator_address":"cosmos1wcglfxddvpygwl22e266ams4tgckhly7q70z8z"},"type":"cosmos-sdk/MsgDelegate"},{"type":"cosmos-sdk/MsgDelegate","value":{"amount":{"denom":"uatom","amount":"10"},"validator_address":"cosmosvaloper1qwl879nx9t6kef4supyazayf7vjhennyh568ys","delegator_address":"cosmos1wcglfxddvpygwl22e266ams4tgckhly7q70z8z"}},{"type":"cosmos-sdk/MsgDelegate","value":{"amount":{"denom":"uatom","amount":"11"},"validator_address":"cosmosvaloper1q6d3d089hg59x6gcx92uumx70s5y5wadklue8s","delegator_address":"cosmos1wcglfxddvpygwl22e266ams4tgckhly7q70z8z"}},{"value":{"amount":{"denom":"uatom","amount":"87"},"validator_address":"cosmosvaloper1rwh0cxa72d3yle3r4l8gd7vyphrmjy2kpe4x72","delegator_address":"cosmos1wcglfxddvpygwl22e266ams4tgckhly7q70z8z"},"type":"cosmos-sdk/MsgDelegate"},{"type":"cosmos-sdk/MsgDelegate","value":{"amount":{"denom":"uatom","amount":"10"},"validator_address":"cosmosvaloper1sxx9mszve0gaedz5ld7qdkjkfv8z992ax69k08","delegator_address":"cosmos1wcglfxddvpygwl22e266ams4tgckhly7q70z8z"}},{"value":{"amount":{"denom":"uatom","amount":"2"},"validator_address":"cosmosvaloper1dt93l3qgmhhlp97srjyqyendrgu9nx0suxtwe8","delegator_address":"cosmos1wcglfxddvpygwl22e266ams4tgckhly7q70z8z"},"type":"cosmos-sdk/MsgDelegate"}],"fee":{"gas":"2100000","amount":[{"denom":"uatom","amount":"6300"}]}},"mode":"sync"}

and the node returns

{
    "txhash": "F09108A72DB08FA78BBA44939467609B85F12A281CAC49C63B0B8BD69A83A829",
    "codespace": "sdk",
    "code": 4,
    "raw_log": "signature verification failed; please verify account number (11520), sequence (82) and chain-id (cosmoshub-4): unauthorized",
    "logs": null
}

or

{
    "txhash": "F09108A72DB08FA78BBA44939467609B85F12A281CAC49C63B0B8BD69A83A829",
    "raw_log": "[]",
    "logs": []
}

Always a random occurrence between these two results, why?

Error on start

  • CPU and hardware used (using AMD-V and KVM for Virtualization):
AMD EPYC 7281
4GB RAM
40Gb SSD disk

Dependencies installed:
sudo apt install build-essential -y

  • Gaia and Go version:
name: gaia
server_name: gaiad
version: cosmoshub-test-stargate
commit: 204fe7e42f4a4d9558641d26c7f269e88338f904
build_tags: netgo,ledger
go: go version go1.15.5 linux/amd64
  • OS:
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.5 LTS
Release:	18.04
Codename:	bionic
  • Steps to compile:
git clone https://github.com/cosmos/gaia && cd gaia/
git pull
git checkout cosmoshub-test-stargate
make build
  • Genesis used:
    https://storage.googleapis.com/stargate-genesis/genesis.json with sha256sum: 759413052c854ca75f3bfeec579e3cea00f283646b0ea0d30b6b15e4d13f814b

  • When start the node have the following error:

starting ABCI with Tendermint                module=main 
panic: can't unmarshal Any nested proto *types.MsgCreateValidator: json: cannot unmarshal string into Go value of type map[string]*json.RawMessage: tx parse error

goroutine 1 [running]:
github.com/cosmos/cosmos-sdk/x/genutil.DeliverGenTxs(0x1fb7220, 0xc000042058, 0x1fcc680, 0xc000f62a80, 0x0, 0x0, 0xc0001102c0, 0xa, 0x0, 0x37f37c8, ...)
	github.com/cosmos/[email protected]/x/genutil/gentx.go:103 +0x345
github.com/cosmos/cosmos-sdk/x/genutil.InitGenesis(...)
	github.com/cosmos/[email protected]/x/genutil/genesis.go:18
github.com/cosmos/cosmos-sdk/x/genutil.AppModule.InitGenesis(0x1fb18e0, 0xc0004a0ab0, 0x1f7d220, 0xc000ce8600, 0xc00011fee0, 0x7faea71905e0, 0xc000080c80, 0x1fb7220, 0xc000042058, 0x1fcc680, ...)
	github.com/cosmos/[email protected]/x/genutil/module.go:101 +0x198
github.com/cosmos/cosmos-sdk/types/module.(*Manager).InitGenesis(0xc000d72cb0, 0x1fb7220, 0xc000042058, 0x1fcc680, 0xc000f62a80, 0x0, 0x0, 0xc0001102c0, 0xa, 0x0, ...)
	github.com/cosmos/[email protected]/types/module/module.go:304 +0x2b5
github.com/cosmos/gaia/app.(*GaiaApp).InitChainer(0xc000bbee00, 0x1fb7220, 0xc000042058, 0x1fcc680, 0xc000f62a80, 0x0, 0x0, 0xc0001102c0, 0xa, 0x0, ...)
	github.com/cosmos/gaia/app/app.go:452 +0x170
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).InitChain(0xc000ba3520, 0x37f37c8, 0xed6f78db0, 0x0, 0xc0001102c0, 0xa, 0xc000b95e00, 0x2d7e5f0, 0x0, 0x0, ...)
	github.com/cosmos/[email protected]/baseapp/abci.go:62 +0x318
github.com/tendermint/tendermint/abci/client.(*localClient).InitChainSync(0xc000c92f00, 0x37f37c8, 0xed6f78db0, 0x0, 0xc0001102c0, 0xa, 0xc000b95e00, 0x2d7e5f0, 0x0, 0x0, ...)
	github.com/tendermint/[email protected]/abci/client/local_client.go:266 +0x115
github.com/tendermint/tendermint/proxy.(*appConnConsensus).InitChainSync(0xc000c9c910, 0x37f37c8, 0xed6f78db0, 0x0, 0xc0001102c0, 0xa, 0xc000b95e00, 0x2d7e5f0, 0x0, 0x0, ...)
	github.com/tendermint/[email protected]/proxy/app_conn.go:77 +0x78
github.com/tendermint/tendermint/consensus.(*Handshaker).ReplayBlocks(0xc00243e748, 0xb, 0x0, 0x0, 0x0, 0xc0001102c0, 0xa, 0x1, 0x0, 0x0, ...)
	github.com/tendermint/[email protected]/consensus/replay.go:319 +0x695
github.com/tendermint/tendermint/consensus.(*Handshaker).Handshake(0xc00243e748, 0x1fd0760, 0xc000bf6820, 0xc0004c8930, 0x203000)
	github.com/tendermint/[email protected]/consensus/replay.go:268 +0x4d8
github.com/tendermint/tendermint/node.doHandshake(0x1fcc900, 0xc000c9c270, 0xb, 0x0, 0x0, 0x0, 0xc0001102c0, 0xa, 0x1, 0x0, ...)
	github.com/tendermint/[email protected]/node/node.go:277 +0x1d8
github.com/tendermint/tendermint/node.NewNode(0xc000d612c0, 0x1fae3a0, 0xc000e15b80, 0xc000c9c030, 0x1f7b080, 0xc00017bb60, 0xc000c9c0a0, 0x1dc4840, 0xc000c9c190, 0x1fb7820, ...)
	github.com/tendermint/[email protected]/node/node.go:685 +0x1da5
github.com/cosmos/cosmos-sdk/server.startInProcess(0xc000d75c00, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1fb73e0, 0xc000d560b0, ...)
	github.com/cosmos/[email protected]/server/start.go:235 +0x5d7
github.com/cosmos/cosmos-sdk/server.StartCmd.func2(0xc000d89b80, 0x2d7e5f0, 0x0, 0x0, 0x0, 0x0)
	github.com/cosmos/[email protected]/server/start.go:117 +0x154
github.com/spf13/cobra.(*Command).execute(0xc000d89b80, 0x2d7e5f0, 0x0, 0x0, 0xc000d89b80, 0x2d7e5f0)
	github.com/spf13/[email protected]/command.go:850 +0x47c
github.com/spf13/cobra.(*Command).ExecuteC(0xc000346840, 0x0, 0x0, 0xc000cdefa0)
	github.com/spf13/[email protected]/command.go:958 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
	github.com/spf13/[email protected]/command.go:895
github.com/spf13/cobra.(*Command).ExecuteContext(...)
	github.com/spf13/[email protected]/command.go:888
github.com/cosmos/gaia/cmd/gaiad/cmd.Execute(0xc000346840, 0x1fc3260, 0xc000d542c0)
	github.com/cosmos/gaia/cmd/gaiad/cmd/root.go:83 +0x158
main.main()
	github.com/cosmos/gaia/cmd/gaiad/main.go:11 +0x2a

I started the gaiad twice, but when the height reached 31304 I always get the same error!

./gaiad version --long
name: gaia
server_name: gaiad
version: stargate-3
commit: 5f28583b510a86fac671e4590d0863d56989735d
build_tags: netgo,ledger
go: go version go1.14.7 linux/amd64

./gaiad start

I[2020-09-22|10:46:54.017] Executed block module=state height=31304 validTxs=0 invalidTxs=0
I[2020-09-22|10:46:54.021] Committed state module=state height=31304 txs=0 appHash=BF020F97EA806ACC53AE6E56FF8CA17A8162E8A0B3C1225DA5C902350B2DFCBE
panic: Failed to process committed block (31305:029B2FA8C1AD8A32E74A80B09EA3E4BEE89E227EB6C6E899A91D59EC943F2284): wrong Block.Header.AppHash. Expected BF020F97EA806ACC53AE6E56FF8CA17A8162E8A0B3C1225DA5C902350B2DFCBE, got CE6478A997D2F47742E5635FEC59C7F1F992FF306BA942182C19B4FFE3FC27B1

goroutine 42 [running]:
github.com/tendermint/tendermint/blockchain/v0.(*BlockchainReactor).poolRoutine(0xc000e93880, 0xc000e8f000)
github.com/tendermint/[email protected]/blockchain/v0/reactor.go:392 +0x1322
created by github.com/tendermint/tendermint/blockchain/v0.(*BlockchainReactor).OnStart
github.com/tendermint/[email protected]/blockchain/v0/reactor.go:110 +0x89

when bin/rly testnets request : gasUsed: 1000: out of gas\n

bin/rly testnets request chain_1 faucet -u http://127.0.0.1:8000 --home data/relayer
{"error":"transaction failed to execute\nResponse:\n TxHash: DD779702E8CC32B8547C13C7CC229D2A7E254D24E348F4A4CFAE244D9596512D\n Code: 11\n Raw Log: out of gas in location: ReadFlat; gasWanted: 0, gasUsed: 1000: out of gas\n GasUsed: 1000\n Codespace: sdk"}

why and how to resolve above question?

Mistake on steps

On the steps to compile appears:

git checkout https://github.com/cosmos/gaia
git checkout stargate-2
make build

but I think the correct is:

git clone https://github.com/cosmos/gaia
git checkout stargate-2
make build

Also I think it's useful two things:

  • Add the sha256sum of the genesis (or another check)

578e511fa57aae4289171c1a7e8d8b166197595fe70749ee908040db2553f226

  • And clarify that the executable can found on:

/gaia/build/

Testing the gov module

Doing some tests to see the gov module options, when using the ./gaia/build/gaiad tx gov submit-proposal --help command provides quite a lot of information, but there is a new command (cancel-software-upgrade) that I think is not well explained, this is the output:

Available Commands:
  cancel-software-upgrade Submit a software upgrade proposal
  community-pool-spend    Submit a community pool spend proposal
  param-change            Submit a parameter change proposal
  software-upgrade        Submit a software upgrade proposal

It is possible that the explanation for cancel-software-upgrade will be Cancel previous software upgrade proposal?

  • Steps to reproduce:
git clone https://github.com/cosmos/gaia
git checkout stargate-3
make build
./gaia/build/gaiad tx gov submit-proposal --help
  • Version:
name: gaia
server_name: gaiad
version: stargate-3
commit: 5f28583b510a86fac671e4590d0863d56989735d
build_tags: netgo,ledger
  • Go version:
    go version go1.14.2 linux/amd64

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.