Giter Club home page Giter Club logo

gaia's Introduction

Cosmos Hub (Gaia)

Banner!

Project Status: Active -- The project has reached a stable, usable state and is being actively developed. License: Apache-2.0 Version Go Report Card GoDoc Lines of Code Quality Gate Status Coverage Twitter Discord Cosmos Hub Forum

The Cosmos Hub is the first of an exploding number of interconnected blockchains that comprise the Cosmos Network.

🤔 Why should you be interested in the Cosmos Hub

The Cosmos Hub is built using the Cosmos SDK and compiled to a binary called gaiad (Gaia Daemon). The Cosmos Hub and other fully sovereign Cosmos SDK blockchains interact with one another using a protocol called IBC that enables Inter-Blockchain Communication. In order to understand what the Cosmos Hub is you can read this introductory explanation.

Documentation

For the most up to date documentation please visit hub.cosmos.network.

For an overview of the Interchain Stack (the Cosmos SDK, IBC, etc.), as well as examples and exercises to help developers get a quick start, please visit tutorials.cosmos.network.

Additional resources

For node operators: If you're interested in running a node on the current Cosmos Hub, check out the docs to Join the Cosmos Hub Mainnet.

For validators: If you want to participate and help secure the Cosmos Hub and its consumer chains, consider becoming a validator. Information on what a validator is and how to participate as one can be found at the Validator FAQ. If you're running a validator node on the Cosmos Hub, reach out to a Janitor on the Cosmos Developers Discord to join the #cosmos-hub-validators-verified channel.

For delegators: If you want to secure the Cosmos Hub without running a validator, you can consider becoming a delegator. Information on what a delegator is and how to participate as one can be found at the Delegator FAQ.

Testnet

To participate in or utilize the current Cosmos Hub testnet, take a look at the cosmos/testnets repository.

Archives & Genesis

In the Cosmos Network, chain IDs have a revision number that is incremented on a hard-fork, i.e., when the chain restarts from a new genesis state. Mainnet is currently running as cosmoshub-4. If you are looking for historical genesis files and other data cosmos/mainnet is an excellent resource. Snapshots are also available at cosmos.quicksync.io.

Contributing

Check out CONTRIBUTING.md for our guidelines & policies for how we develop the Cosmos Hub. Thank you to all those who have contributed!

Talk to us

Follow the Cosmos Hub team's activities on the Cosmos Hub Twitter account.

Join the conversation on the Cosmos Hub Forum and on Discord.

gaia's People

Contributors

alessio avatar alexanderbez avatar bermuell avatar colin-axner avatar dasanchez avatar dcwalk avatar dependabot-preview[bot] avatar dependabot[bot] avatar dongsam avatar dusan-maksimovic avatar faddat avatar fedekunze avatar glnro avatar imhunterand avatar lexamichaelides avatar mmulji-ic avatar mpoke avatar msalopek avatar nooomski avatar okwme avatar pantani avatar rigelrozanski avatar rootulp avatar sabau avatar sainoe avatar shahankhatch avatar shaspitz avatar tac0turtle avatar yaruwangway 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  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  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

gaia's Issues

Documentation flow references

Summary

Some portion of docs references to the staging docs, the flow need to be updated after gaia split:
## Docs Build Workflow

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Test all cli commands

This is the list of CLI commands. Commands that are properly tested are marked.

gaiad

  • init - Make sure that -o is tested, add to TestGaiadCollectGentxs
  • collect-gentxs
  • testnet
  • gentx - Test flags in TestGaiadCollectGentxs
  • add-genesis-account
  • start
  • unsafe-reset-all
  • tendermint
    • show-node-id
    • show-validator
    • show-address
  • export - Add export/import to the end of a couple of tests (gov, staking come to mind)

gaiacli

  • status - Maybe can add to TestGaiaCLIConfig?
  • config - Test --get
  • query
    • tendermint-validator-set
    • block
    • txs
    • tx
    • account
    • gov
      • proposal
      • proposals
      • vote
      • votes
      • param - test param output to be accurate
      • proposer
      • deposit
      • deposits
      • tally
    • stake - add functions for missing queries and test in TestGaiaCLICreateValidator
      • delegation
      • delegations
      • unbonding-delegation
      • unbonding-delegations
      • redelegation
      • redelegations
      • validator
      • validators
      • delegations-to
      • unbonding-delegations-from
      • redelegations-from
      • parameters
      • pool
    • slashing
      • signing-info - add to TestSlashingGetParams
      • params
  • tx
    • send
    • sign
    • broadcast
    • gov
      • deposit
      • vote
      • submit-proposal
    • dist
      • withdraw-rewards
      • set-withdraw-addr
    • stake - add functions for missing txs and test in TestGaiaCLICreateValidator
      • create-validator
      • edit-validator
      • delegate
      • redelegate
      • unbond
    • slashing
  • keys
    • mnemonic
    • add - need to test flags
    • list
    • show - need to test flags
    • delete - need to test actually deleting a key
    • update

Documenting parameters

Summary

Could we add a page to the documentation that shows all of the current parameters of the Cosmos Hub?

Problem Definition

It's unclear to the community how long the unbonding period is, the exact percent slashed for validator double-signing, the amount slashed over time for validators that go offline, things like that. Can we document this? If it's in the docs it'll show up on https://hub.cosmos.network.

Proposal

Document the relevant parameters of the Cosmos Hub that would otherwise require querying endpoints.

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Unable to send tx from multisig address

Summary of Bug

I'm following along with the instructions given here, to create multisig address and transaction.

While trying to create the transaction to send coinage...

$ gaiacli tx send p1p2p3 cosmos1570v2fq3twt0f0x02vhxpuzc9jc4yl30q2qned 1000000uatom
  ERROR: {"codespace":"sdk","code":9,"message":"account cosmos173a2ffcr6t4t33espwrhv292wfkmmsmf8pnxmv does not exist"}
$ gaiacli keys show p1p2p3
- name: p1p2p3
  type: multi
  address: cosmos173a2ffcr6t4t33espwrhv292wfkmmsmf8pnxmv
  pubkey: cosmospub1ytql0csgqgfzd666axrjzqks4r04s85ef4zccrum3w4nd6w4wnfpzspjhekrpa7dlppe3s5vk5fzd666axrjzqs75n22x3vfpxslfs5us84rnm8tjpyzjgq82xxtfjxux52g39cregfzd666axrjzqe47t0gcuj4k96xjdw954k7zmn46nu0mwtnl5sa7qdmh6hv3k98tqpjmel0
  mnemonic: ""
  threshold: 2
  pubkeys:
  - address: cosmos1x27g4a5vumdf7eytk240zqrhegqd0h8sjfj5ma
    pubkey: cosmospub1addwnpepqtg23h6cr6v563vvp7dch2eka82hf5s3gqetumps7lxlssucc2xt24gtkad
    weight: 1
  - address: cosmos10k29n523hpqchg6nyxfgxha6qqtvuzmzv6unzk
    pubkey: cosmospub1addwnpepqg02f49rgkysng05c2wgr63ean4eqjpfyqr4rr95erwr29ygjupu5l7g03u
    weight: 1
  - address: cosmos1kquv4jlsykjxm9ujuyp0qpwlalpdq6ycdhke2p
    pubkey: cosmospub1addwnpepqv6l9h5vwf2mzarfxhz62m0pde6af78ah9el6gwlqxamatkgmzn4spj3r3l
    weight: 1

Version

0.0.0-34-g0432ac5

Steps to Reproduce

Follow along with multisig documentation


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

ERROR: Error during handshake: Error on replay: Block time 2019-09-03 02:58:00.048670958 +0000 UTC is not equal to genesis time 2019-03-13 23:00:00 +0000 UTC

Unbonding Height: 0
Unbonding Completion Time: 1970-01-01 00:00:00 +0000 UTC
Minimum Self Delegation: 1000000000000
Commission: rate: 0.100000000000000000, maxRate: 0.200000000000000000, maxChangeRate: 0.010000000000000000, updateTime: 2019-03-13 23:00:00 +0000 UTC
---rewards--- { 2}
---rewards.Rewards--current-- --rewards.Rw-- --val token-- 2000000000000
====historical=== 2
----calculateDelegationRewardsBetween---
=====rewards======
ERROR: Error during handshake: Error on replay: Block time 2019-09-03 02:58:00.048670958 +0000 UTC is not equal to genesis time 2019-03-13 23:00:00 +0000 UTC

Tags in installation docs

Hi guys,
I wanted to install gaia from the recommended tag, however there are no tags in this repo (besides v0.0.0, which isn't greater than v0.33.0). Should I treat v0.0.0 as the latest version? I found release versions in cosmos-sdk, however docs there state that I should go to this repo to join mainnet. Therefore I'm in an infinite loop now. Could you update the docs on this or maybe create a release version here? Thanks.

CI: Fix contract_tests

Summary of Bug

The contract_tests CI target is currently broken. As such, it's currently disabled.

The contract_tests CI target executes make setup-contract-tests-data:

setup-contract-tests-data:
	echo 'Prepare data for the contract tests'
	rm -rf /tmp/contract_tests ; \
	mkdir /tmp/contract_tests ; \
	cp "${GOPATH}/pkg/mod/${SDK_PACK}/client/lcd/swagger-ui/swagger.yaml" /tmp/contract_tests/swagger.yaml ; \
	./build/gaiad init --home /tmp/contract_tests/.gaiad --chain-id lcd contract-tests ; \
	tar -xzf lcd_test/testdata/state.tar.gz -C /tmp/contract_tests/

The tar -xzf lcd_test/testdata/state.tar.gz -C /tmp/contract_tests/ command is completely overriding the .gaiad directory which is wrong.

I'm not sure where state.tar.gz comes from or how it's configured, but we should not be dumping static configuration here.

Example with this pipeline enabled: https://circleci.com/gh/cosmos/gaia/2543. In this case, Tendermint's configuration structure has changed and the correct configuration was replaced by whatever was in state.tar.gz which was old/deprecated.

Version

0432ac5

/cc @alessio @sabau


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

[Error] cosmos.service: Failed to add inotify watch descriptor for control group /system.slice/cosmos.service: No space left on device

Summary of Bug

When checking out the logs I see the following error:

Aug 31 22:29:40 ip-172-31-24-108 systemd[1]: cosmos.service: Main process exited, code=exited, status=1/FAILURE
Aug 31 22:29:40 ip-172-31-24-108 systemd[1]: cosmos.service: Failed with result 'exit-code'.
Aug 31 22:29:46 ip-172-31-24-108 systemd[1]: cosmos.service: Service hold-off time over, scheduling restart.
Aug 31 22:29:46 ip-172-31-24-108 systemd[1]: cosmos.service: Scheduled restart job, restart counter is at 1448.
Aug 31 22:29:46 ip-172-31-24-108 systemd[1]: Stopped Cosmos Network Validator Service.
Aug 31 22:29:46 ip-172-31-24-108 systemd[1]: cosmos.service: Failed to add inotify watch descriptor for control group /system.slice/cosmos.service: No space left on device
Aug 31 22:29:46 ip-172-31-24-108 systemd[1]: Started Cosmos Network Validator Service.
Aug 31 22:29:46 ip-172-31-24-108 gaiad[25721]: I[2019-08-31|22:29:46.109] Starting ABCI with Tendermint                module=main
Aug 31 22:29:46 ip-172-31-24-108 gaiad[25721]: ERROR: error during handshake: error on replay: Wrong Block.Header.AppHash.  Expected E6FC14D5C8EFBBC5857FA5EFA6C12B8C89E1C835CE9230FAEEA95983E0D14D64, got 36D7DD7C9B55C422C38031AF40B09DFE8E9E56B19BB218D0082CFC19178A186D
root@ip-172-31-24-108:~/.gaiad/data/tx_index.db# df
Filesystem     1K-blocks     Used Available Use% Mounted on
udev              480316        0    480316   0% /dev
tmpfs              98484      736     97748   1% /run
/dev/nvme0n1p1  64989720 11892904  53080432  19% /
tmpfs             492420        0    492420   0% /dev/shm
tmpfs               5120        0      5120   0% /run/lock
tmpfs             492420        0    492420   0% /sys/fs/cgroup
/dev/loop0         90880    90880         0 100% /snap/core/7396
/dev/loop1         90624    90624         0 100% /snap/core/7270
/dev/loop2         18432    18432         0 100% /snap/amazon-ssm-agent/1455
tmpfs              98484        0     98484   0% /run/user/1000
root@ip-172-31-24-108:~/.gaiad/data/tx_index.db# gaiacli version
2.0.0-rc1

Version

2.0.0-rc1

Steps to Reproduce

Just deployed the latest version, and noticed after checking logs


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Makefile error

Summary of Bug

Dependencies installation

Version

branch: master

Steps to Reproduce

git clone https://github.com/cosmos/gaia

$ make install
flag provided but not defined: -m
usage: list [-e] [-f format] [-json] [build flags] [packages]
Run 'go help list' for details.
go install -mod=readonly -tags "netgo ledger" -ldflags '-X github.com/cosmos/cosmos-sdk/version.Name=gaia -X github.com/cosmos/cosmos-sdk/version.ServerName=gaiad -X github.com/cosmos/cosmos-sdk/version.ClientName=gaiacli -X github.com/cosmos/cosmos-sdk/version.Version=0.0.0-23-g2945a05 -X github.com/cosmos/cosmos-sdk/version.Commit=2945a0510e8f63660f09f788b2d42b48ba9c544c -X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger"' ./cmd/gaiad
flag provided but not defined: -mod
usage: install [-i] [build flags] [packages]
Run 'go help install' for details.
Makefile:90: recipe for target 'install' failed
make: *** [install] Error 2

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

target `build` in Makefile did not explicit depend on the code.

@yangyanqing commented on Sat May 11 2019

Summary of Bug

build/gaiacli and build/gaiad will not be recompiled while run make build after relative codes were modified.

Version

master 829ce17d

Steps to Reproduce

  1. make build
  2. Modify x/auth/client/cli/sign.go
  3. make build

We'll get make: build' is up to date., build/*` was not updated.

➜  cosmos-sdk git:(frank/4319-offline-flag) ✗ make build
make: `build' is up to date.

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

@alessio commented on Tue May 28 2019

This issue should be moved to the new gaia repo I suppose.

Move gaiadebug functionality to gaiacli

@jackzampolin commented on Mon Apr 15 2019

It would be nice for developers to have the gaiadebug functionality on the gaiacli executable.


@alexanderbez commented on Mon Apr 15 2019

Maybe we can mount the functionality under gaiacli debug. We should look through the current binary/implementation and see what we want to pull out of there. Then we can have an exact set of acceptance criteria/actionable items for this issue 😄


@marbar3778 commented on Mon Jun 17 2019

Can we close this issue, or move it to cosmos/gaia? @jackzampolin @alexanderbez


@alexanderbez commented on Tue Jun 18 2019

Yes. Moving to the gaia repo.

BankKeeper is not passing in correct black listed addresses

Summary of Bug

Same issue as this. Basically, to get the black listed accounts and set them in bank keeper we use supply keeper, but supply keeper is initialized right after bank keeper. Therefore all the black listed accounts passed in are empty addresses and no censoring occurs. This only affects bank and invariants would break if anyone sends to a module account through bank


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Gaiadebug wishlist

  1. Transaction tracing & search
    1. gaiadebug apply <tx base64> <height> - load state at specified height, run transaction, log tracing KVStore output (all keys read/written).
    2. gaiadebug bisect <store_key> <store_value> <top_height> <bottom_height> - binary search for where a particular store key was first set to a particular value, or set at all if <store_value> is not provided. When found, print out the transaction hash which updated the key and the height.

I wonder if looking into a tool like Delve, for debugging execution of particular transactions, is worthwhile.

Normalize slashing penalties by total supply

@cwgoes commented on Fri Jun 22 2018

I think we might want to normalize slashing amounts by the total supply. Currently, the spec calculates slashing amounts in proportion to validator shares, which are just bonded tokens.

In between when an equivocation is made and when it is discovered, the total token supply will change due to inflation. This would have the strange property that later discovery of evidence means a (slightly) lesser penalty, since the tokens which would have been burned if the evidence was discovered earlier can be inflated as usual until the evidence is actually discovered.

With our current unbonding period and inflation parameters, the difference is minimal, but we (or governance) might want to change those parameters in the future.

If we change the calculation to slashedTokens = slashFraction * totalBondedTokensNow * (validatorBondedTokensAtEquivocation / totalBondedTokensAtEquivocation), it changes the semantics to "slashed as if the validator double-signed now with the power they had at the time of equivocation", and means that slashing penalties are just as severe if evidence is discovered when the unbonding period is almost over as if it were discovered immediately.

cc @ebuchman @rigelrozanski


@rigelrozanski commented on Sat Jun 23 2018

hmm let’s think about this a bit more

  • I don’t think it matters so much if the total supply has grown, BUT I reckon it may matter if my % of total voting power has increased due to there being less bonded tokens. This could be caused by other people bonding/unbonding tokens or folks getting slashed.
  • Under the situation that during discovery time each misbehaving token now holds LESS voting power (relative to bonded-supply) than it did when it was used to commit a protocol breach then, yes, I agree that even more tokens should be slashed;
  • HOWEVER I do not think we should slash less tokens under that opposite situation that each token now holds more relative weight - because really, they should have been slashed at that rate earlier on

…Does what Im saying make sense?


@rigelrozanski commented on Sat Jun 23 2018

aka:

if bondedSupply@breach > bondedSupply@discovery
   each token is now worth less than they it used to be worth,
   so slash more tokens than just %slashing*tokens-that-committed-crimes
else
   slash no less %slashing*tokens-that-committed-crimes

@rigelrozanski commented on Sat Jun 23 2018

@cwgoes documentation of the slack conversation

cwgoes
I agree; I think I picked it up from some documentation somewhere but we can definitely pick a different word
Also, you're right, I implicitly assumed the entire supply was bonded when thinking about this but that won't necessarily be the case
We don't want to slash more or less for bonding/unbonding unrelated to the validator in question
(as evidenced by the issue title and body conflicting, lol)

rige
(document this conversation in the github?)

cwgoes
I will, but I want to make sure I understand your points first
I do think that it matters if the total supply has changed
Say we had high inflation, a long unbonding period, and everyone kept their inflation rewards unbonded (simple case) (edited)
Now there's a large difference between evidence being discovered immediately and discovered near the end of the unbonding period

rige
Yeah let’s say that it takes nearly the full unbonding period to discover

cwgoes
In the latter case (late discovery) the bonded steak continues earning inflation rewards for most of the unbonding period

rige
I guess the validator shouldn’t of received some of that inflation reward? is that what you want to counteract? (edited)

cwgoes
In the former case (immediate discovery) it is slashed immediately and earns much less
Yes

rige
hmm yeah okay BUT that means that you’re slashing bonded tokens to make up for unbonded tokens that you’ve received - seems counter-intuitive, I mean under a situation where we have a much longer unbonding period (on the orders of months) then yeah this may start to be an issue I guess (edited)
But I could also imagine a scenario, where you just get slashed 100% (or more!) of your tokens due to the back calculation
I almost think the perpetrators should just get to keep them

cwgoes
No, that should never be possible (getting slashed over 100%) (edited)
How do you mean?
Oh I guess if inflation is ludicrously high

rige
I reckon it is! here, imagine an unbonding period of a year with 100% inflation
yeah ^
but I guess that’s an edge case which is fine, we just need to add a check to make sure not more than 100% is attempting to get slashed so we don’t panic

cwgoes
We do that anyways
I agree it's kinda messy to slash bonded tokens for unbonded rewards (edited)
I still think it's more accurate than not normalizing at all though

rige
cool - BUT what I was saying I don’t think it matters, I almost like the idea of adding more incentive for the network to not be lazy about catching the bad-guys
like so what they made off with a bit more inflation $ - our bad for not catching em!
not to mention that for any real crime, the extra inflation $ is going to be << than the %slashed
I don’t think it negatively affects the functioning or ideals of the network if the perpetrator get’s to keep inflation $ if they’re problem is not detected instantly

cwgoes
It does seem unlikely to be too detrimental in practice
But the current model (without normalization) does oddly change the "unbonding period security" to be (even slightly) uneven over the whole period, and makes the degree of uneven-ness dependent on the choice of unbonding period and inflation constants (edited)

rige
Was the unbonding-security always uneven anyways? There is more opportunity to not be caught and continue to act out-of-protocol as more blocks pass during an unbonding period (edited)

cwgoes
If there was no inflation, the slashing amount would always be the same (relative to total supply)?
Security model A: light client coming online every 20 days
Security model B: light client coming online every other day
If both are otherwise identical (can find at least one honest node & report evidence immediately), A is now less secure since the slashing penalties for lying to A are lower

rige
But it’s not the light clients that should be performing the slashing? not sure I follow
hmm okay - As the bonded supply goes up the security of the network goes up, so as unbonding inflation is being added, the security of the network is constantly slightly decreasing, oh okay - so we want to hold this constant by increase the %slashability over the bonding period. Okay yeah - I guess that’s idealistically a bit nicer - a bit more confusing to explain though (edited)

cwgoes
No; the light clients are reporting the evidence to full nodes
Yes, that's what I mean

rige
So if we slash for the inflation reward too - we level the playing field for validators committing crimes against Security Model A and B?

cwgoes
That's the property I'm trying to get, yes (edited)

rige
👍 - okay I’m on board, I think it’s a good idea

cwgoes
what we really need (IMO) is a concrete PoS security model (edited)
exactly what guarantees we are trying to provide, under what "rational actor assumption" this system is secure, categorization of the ways in which particular fractions of stake could collude at particular times


@cwgoes commented on Fri Aug 17 2018

Tabled to post-launch by slashing design meeting.


@ragjunk commented on Mon Aug 20 2018

Quick question on how the slashing is enforced when > 1/3 of the validators act maliciously at the same time? This is the case when an outsider wants to take the network down by colluding with > 1/3 validators or somehow acquiring > 1/3 of the total stake. In this case, it is unlikely that individual bad actors act maliciously one at a time (in order to avoid getting caught), but may do so at a predetermined time. In this case, the BFT threshold is breached almost instantly. I am wondering how the slashing can be decided without some kind of voting just like the voting to approve the blocks. For example, the colluding nodes can arbitrarily decide to slash other honest nodes, if such voting mechanism is not instituted. I didn't see any spec on how the honest nodes as a whole decide and agree that one or more of malicious nodes must be punished. Any pointers or thinking on this is greatly appreciated.


@cwgoes commented on Tue Aug 21 2018

@ragjunk That sounds like a great question - but probably best suited to a different issue.


@jackzampolin commented on Fri Oct 12 2018

According to the slashing spec tracking issue this has been addressed. Closing.


@cwgoes commented on Fri Oct 12 2018

According to the slashing spec tracking issue this has been addressed. Closing.

It has not but is now post-launch.


@jackzampolin commented on Tue May 28 2019

I haven't heard any discussion about doing this. Going to close this issue.


@cwgoes commented on Tue May 28 2019

I haven't heard any discussion about doing this. Going to close this issue.

I think it's still worth considering. If we're going to close all the incentive-related issues can we port them somewhere?

I'm willing to do this if you like.


@jackzampolin commented on Tue May 28 2019

@cwgoes if you would like to port them to gaia that would be great. I think carrying on the discussion there is a better idea.


@cwgoes commented on Fri May 31 2019

@cwgoes if you would like to port them to gaia that would be great. I think carrying on the discussion there is a better idea.

That sounds fine - alas, I do not seem to have the permissions to move issues. Do you?

Contract Tests

Summary

Add CCI test for LCD to check the format against the documentation

Problem Definition

LCD tests + agreement on swagger.yml documentation and actual implementation

cosmos/cosmos-sdk#3989


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Run gaiad as a full node sync error

Summary of Bug

I run a gaiad connect to main net. but sync failed at height 1.

the output :

I[2019-06-14|11:04:21.276] Starting ABCI with Tendermint module=main
E[2019-06-14|11:04:22.895] Connection failed @ recvRoutine (reading byte) module=p2p [email protected]:26656 conn=MConn{91.205.173.168:26656} err=EOF
E[2019-06-14|11:04:22.896] Stopping peer for error module=p2p peer="Peer{MConn{91.205.173.168:26656} 3028c6ee9be21f0d34be3e97a59b093e15ec0658 out}" err=EOF
E[2019-06-14|11:04:53.618] Connection failed @ recvRoutine (reading byte) module=p2p [email protected]:26656 conn=MConn{35.238.158.173:26656} err=EOF
E[2019-06-14|11:04:53.618] Stopping peer for error module=p2p peer="Peer{MConn{35.238.158.173:26656} 6be0856f6365559fdc2e9e97a07d609f754632b0 out}" err=EOF
E[2019-06-14|11:05:22.895] Dialing failed module=pex addr=2e7c678aaad8602d3bacea26a68d180bd28892a4@[2a05:d014:60:7301:4c44:7c2c:1443:e6e4]:26656 err="dial tcp [2a05:d014:60:7301:4c44:7c2c:1443:e6e4]:26656: connect: cannot assign requested address" attempts=0
E[2019-06-14|11:05:22.936] Dialing failed module=pex [email protected]:44996 err="dial tcp 49.247.215.16:44996: connect: connection refused" attempts=0
E[2019-06-14|11:05:23.162] Dialing failed module=pex [email protected]:26656 err="dial tcp 144.76.101.254:26656: connect: connection refused" attempts=0
E[2019-06-14|11:05:23.175] Dialing failed module=pex [email protected]:26656 err="dial tcp 95.179.164.203:26656: connect: no route to host" attempts=0
E[2019-06-14|11:05:23.895] Dialing failed module=pex [email protected]:26656 err="dial tcp 47.90.29.31:26656: i/o timeout" attempts=0
E[2019-06-14|11:05:23.895] Dialing failed module=pex [email protected]:54286 err="dial tcp 153.156.40.19:54286: i/o timeout" attempts=0
E[2019-06-14|11:05:23.895] Dialing failed module=pex [email protected]:60928 err="dial tcp 118.243.115.211:60928: i/o timeout" attempts=0
E[2019-06-14|11:05:23.895] Dialing failed module=pex [email protected]:26656 err="dial tcp 35.246.242.230:26656: i/o timeout" attempts=0
E[2019-06-14|11:05:23.895] Dialing failed module=pex [email protected]:26656 err="dial tcp 85.255.11.49:26656: i/o timeout" attempts=0
E[2019-06-14|11:05:23.895] Dialing failed module=pex [email protected]:26252 err="dial tcp 54.165.75.6:26252: i/o timeout" attempts=0
E[2019-06-14|11:05:52.895] Dialing failed module=pex addr=4b8e925115ece77169bbfbaa5f41bae7df33ad6e@[2a05:d014:60:7301:b541:3611:1ed2:47fd]:26656 err="dial tcp [2a05:d014:60:7301:b541:3611:1ed2:47fd]:26656: connect: cannot assign requested address" attempts=0
E[2019-06-14|11:05:53.122] Dialing failed module=pex [email protected]:26656 err="dial tcp 77.87.108.21:26656: connect: connection refused" attempts=0
E[2019-06-14|11:05:53.546] Connection failed @ recvRoutine (reading byte) module=p2p [email protected]:26656 conn=MConn{52.56.253.229:26656} err=EOF
E[2019-06-14|11:05:53.546] Stopping peer for error module=p2p peer="Peer{MConn{52.56.253.229:26656} 3d5f2927b095c1da6021a2f25179cc72de255638 out}" err=EOF
E[2019-06-14|11:05:53.895] Dialing failed module=pex [email protected]:26656 err="dial tcp 46.183.115.231:26656: i/o timeout" attempts=0
E[2019-06-14|11:05:53.895] Dialing failed module=pex [email protected]:26656 err="dial tcp 151.236.217.169:26656: i/o timeout" attempts=0
E[2019-06-14|11:05:53.895] Dialing failed module=pex [email protected]:35288 err="dial tcp 47.52.234.156:35288: i/o timeout" attempts=0
E[2019-06-14|11:05:53.895] Dialing failed module=pex [email protected]:9328 err="dial tcp 35.161.235.185:9328: i/o timeout" attempts=0
E[2019-06-14|11:05:53.895] Dialing failed module=pex [email protected]:54116 err="dial tcp 98.15.8.61:54116: i/o timeout" attempts=0
E[2019-06-14|11:05:53.895] Dialing failed module=pex [email protected]:26656 err="dial tcp 54.209.128.157:26656: i/o timeout" attempts=0
I[2019-06-14|11:05:54.552] Executed block module=state height=1 validTxs=0 invalidTxs=0
I[2019-06-14|11:05:56.510] Committed state module=state height=1 txs=0 appHash=3987F88CD400DC5B4679A708220D44F045FD077DB6E323D315486CF238892E41
panic: Failed to process committed block (2:6874A607AABF97B8D0627ADDF4B7501CCE74ECAB82E44A6C4F39A4562D75601B): Wrong Block.Header.AppHash. Expected 3987F88CD400DC5B4679A708220D44F045FD077DB6E323D315486CF238892E41, got 056A9CA652FC5DD667A19362081216A57A70F87A256FD62B3131673BCDBD969B

Version

gaiad version
0.0.0-30-g8fd398c

seeds in config.toml
seeds = "[email protected]:26656,ba3bacc714817218562f743178228f23678b2873@public-seed-node.cosmoshub.certus.one:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,6be0856f6365559fdc2e9e97a07d609f754632b0@cosmos-cosmoshub-2-seed.nodes.polychainlabs.com:26656"

Steps to Reproduce


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

gaia make insatll errro

go install -mod=readonly -tags "netgo ledger" -ldflags '-X github.com/cosmos/cosmos-sdk/version.Name=gaia -X github.com/cosmos/cosmos-sdk/version.ServerName=gaiad -X github.com/cosmos/cosmos-sdk/version.ClientName=gaiacli -X github.com/cosmos/cosmos-sdk/version.Version=0.0.0-16-gf44b317 -X github.com/cosmos/cosmos-sdk/version.Commit=f44b317a3ba22d8f8f40dc146819504a07986a70 -X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger"' ./cmd/gaiad
go: finding github.com/onsi/gomega v1.5.0
go: finding github.com/spf13/afero v1.2.1
go: finding github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db
go: finding github.com/mitchellh/go-homedir v1.1.0
go: finding github.com/mattn/go-runewidth v0.0.4
go: finding github.com/aead/siphash v1.0.1
go: finding github.com/cpuguy83/go-md2man v1.0.10
go: finding github.com/inconshreveable/mousetrap v1.0.0
go: finding github.com/bartekn/go-bip39 v0.0.0-20171116152956-a05967ea095d
go: finding golang.org/x/tools v0.0.0-20190311212946-11955173bddd
go: finding github.com/rs/cors v1.6.0
go: finding github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792
go: finding github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f
go: finding golang.org/x/sync v0.0.0-20181108010431-42b317875d0f
go: finding github.com/prometheus/client_golang v0.9.1
go: finding golang.org/x/net v0.0.0-20181114220301-adae6a3d119a
go: finding github.com/julienschmidt/httprouter v1.2.0
go: finding github.com/spf13/viper v1.0.3
go: finding github.com/gogo/protobuf v1.1.1
go: finding github.com/cosmos/ledger-cosmos-go v0.10.3
go: finding github.com/onsi/ginkgo v1.7.0
go: finding github.com/gorilla/mux v1.7.0
go: finding golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6
go: finding github.com/pkg/errors v0.8.1
go: finding github.com/golang/protobuf v1.3.0
go: finding github.com/syndtr/goleveldb v0.0.0-20180708030551-c4c61651e9e3
go: finding github.com/russross/blackfriday v1.5.2
go: finding github.com/rakyll/statik v0.1.4
go: finding github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973
go: finding github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084
go: finding github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223
go: finding gopkg.in/resty.v1 v1.12.0
go: finding github.com/tendermint/btcd v0.1.1
go: finding github.com/tendermint/tendermint v0.31.5
go: finding golang.org/x/net v0.0.0-20181220203305-927f97764cc3
go: finding github.com/jessevdk/go-flags v0.0.0-20141203071132-1679536dcc89
go: finding golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5
go: finding github.com/pmezard/go-difflib v1.0.0
go: finding github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90
go: finding golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3
go: finding github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc
go: finding gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7
go: github.com/golang/[email protected]: git fetch -f origin refs/heads/:refs/heads/ refs/tags/:refs/tags/ in /home/zou/go/pkg/mod/cache/vcs/557c95beb308f3ef3c1c404ecab6b400370ded81aa5f9d18dfe8f03eb8d34d6b: exit status 128:
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
go: finding github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf
go: finding github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af
go: finding github.com/btcsuite/btcd v0.0.0-20190115013929-ed77733ec07d
go: finding github.com/cosmos/go-bip39 v0.0.0-20180618194314-52158e4697b8
go: finding github.com/ghodss/yaml v1.0.0
go: finding github.com/prometheus/common v0.2.0
go: finding github.com/bgentry/speakeasy v0.1.0
go: finding github.com/prometheus/client_golang v0.9.2
go: finding github.com/kr/pretty v0.1.0
go: finding gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127
go: finding github.com/prometheus/procfs v0.0.0-20190227231451-bbced9601137
go: finding github.com/rcrowley/go-metrics v0.0.0-20180503174638-e2704e165165
go: finding github.com/onsi/ginkgo v1.6.0
go: finding github.com/otiai10/mint v1.2.4
go: finding golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223
go: finding github.com/mattn/go-isatty v0.0.6
go: finding github.com/btcsuite/snappy-go v0.0.0-20151229074030-0bdef8d06723
go: finding github.com/jmhodges/levigo v1.0.0
go: golang.org/x/[email protected]: git fetch -f origin refs/heads/:refs/heads/ refs/tags/:refs/tags/ in /home/zou/go/pkg/mod/cache/vcs/b44680b3c3708a854d4c89f55aedda0b223beb8d9e30fba969cefb5bd9c1e843: exit status 128:
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
go: finding github.com/VividCortex/gohistogram v1.0.0
go: finding github.com/olekukonko/tablewriter v0.0.1
go: finding github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d
go: finding gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7
go: finding github.com/go-stack/stack v1.8.0
go: finding google.golang.org/genproto v0.0.0-20180831171423-11092d34479b
go: finding github.com/onsi/gomega v1.4.3
go: finding github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd
go: finding github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d
go: finding golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e
go: finding github.com/spf13/jwalterweatherman v1.1.0
go: finding github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910
go: finding github.com/jrick/logrotate v1.0.0
go: finding golang.org/x/net v0.0.0-20190311183353-d8887717615a
go: finding github.com/go-kit/kit v0.8.0
go: finding github.com/prometheus/tsdb v0.7.1
go: finding github.com/davecgh/go-spew v0.0.0-20171005155431-ecdeabc65495
go: finding github.com/google/go-cmp v0.2.0
go: finding github.com/spf13/cobra v0.0.3
go: finding github.com/golang/snappy v0.0.1
go: github.com/golang/[email protected]: unknown revision v0.0.1
go: finding github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23
go: finding github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515
go: gopkg.in/alecthomas/[email protected]: unrecognized import path "gopkg.in/alecthomas/kingpin.v2" (https fetch: Get https://gopkg.in/alecthomas/kingpin.v2?go-get=1: net/http: TLS handshake timeout)
go: finding github.com/go-logfmt/logfmt v0.4.0
go: finding github.com/hpcloud/tail v1.0.0
go: finding gopkg.in/yaml.v2 v2.2.1
go: finding golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8
go: finding github.com/prometheus/common v0.4.0
go: finding github.com/pkg/errors v0.8.0
go: finding github.com/stretchr/objx v0.1.0
go: finding github.com/btcsuite/goleveldb v0.0.0-20160330041536-7834afc9e8cd
go: finding golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a
go: finding golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e
go: golang.org/x/[email protected]: unknown revision 90fa682c2a6e
go: finding github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf
go: finding github.com/beorn7/perks v1.0.0
go: finding golang.org/x/net v0.0.0-20180906233101-161cd47e91fd
go: finding github.com/davecgh/go-spew v1.1.0
go: finding github.com/spf13/viper v1.3.2
go: finding github.com/tendermint/iavl v0.12.2
go: finding gopkg.in/fsnotify.v1 v1.4.7
go: finding github.com/btcsuite/winsvc v1.0.0
go: finding github.com/sirupsen/logrus v1.2.0
go: finding github.com/go-logfmt/logfmt v0.3.0
go: finding github.com/matttproud/golang_protobuf_extensions v1.0.1
go: finding github.com/fortytw2/leaktest v1.3.0
0go: github.com/jmhodges/[email protected]: unknown revision v1.0.0
go: error loading module requirements
Makefile:82: recipe for target 'install' failed
make: *** [install] Error 1

my go version:
go version go1.12.5 linux/amd64

Is this my problem? thank you, I hope to get help.

Is it go.mod version error?

Summary of Bug

Can not find github.com/cosmos/cosmos-sdk v0.28.2-0.20190709192957-95f60ea120f0 version

Version

gaia the newest version install

Steps to Reproduce

my go version is 1.12.7

make install in github.com/cosmos/gaia repository

gaia-err-in-install

hskim@hskim-labPC:~/go/src/github.com/cosmos/gaia$ make install
go: finding github.com/cosmos/cosmos-sdk v0.28.2-0.20190709192957-95f60ea120f0
go: github.com/cosmos/[email protected]: unknown revision 95f60ea120f0
go: error loading module requirements
--> Ensure dependencies have not been modified
go: finding github.com/cosmos/cosmos-sdk v0.28.2-0.20190709192957-95f60ea120f0
go: github.com/cosmos/[email protected]: unknown revision 95f60ea120f0
go: error loading module requirements
Makefile:106: recipe for target 'go.sum' failed
make: *** [go.sum] Error 1

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

target `build` in Makefile did not explicit depend on the code.

@yangyanqing commented on Sat May 11 2019

Summary of Bug

build/gaiacli and build/gaiad will not be recompiled while run make build after relative codes were modified.

Version

master 829ce17d

Steps to Reproduce

  1. make build
  2. Modify x/auth/client/cli/sign.go
  3. make build

We'll get make: build' is up to date., build/*` was not updated.

➜  cosmos-sdk git:(frank/4319-offline-flag) ✗ make build
make: `build' is up to date.

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

@alessio commented on Tue May 28 2019

This issue should be moved to the new gaia repo I suppose.

Add info to 'upgrade instructions' wiki: https://github.com/cosmos/gaia/wiki/Cosmos-Hub-2-Upgrade

@alexanderbez, we'll want instructions for validators to obtain the timestamp from the target export block. I'd like to add info necessary for a recovery scenario to the instructions wiki. @zmanian please let me know if this looks correct or not. Here are my requests:

During the upgrade process, each validator must preserve a snapshot of the node state of the target export block height to preserve recovery of their validator and sentry nodes to the cosmoshub-2 chain. // Add this to https://github.com/cosmos/gaia/wiki/Cosmos-Hub-2-Upgrade#upgrade-procedure

Recovery Scenario

In the event that a validator determines that the cosmoshub-3 chain is unlikely to start, or if export block time + 6 hours has elapsed without block generation, validators must resume signing on cosmoshub-2.

Governance procedures on the cosmoshub-2 chain will then be used to determine a future course of action for the network. // Create this as a new subsection

Rest Client Panic

$ gaiacli rest-server --chain-id=chain-LldPl4 --home ./build/node0/gaiacli
panic: statik/fs: no zip data registered

goroutine 1 [running]:
main.registerSwaggerUI(0xc000a22dc0)
	/Users/aleksbez/go/src/github.com/cosmos/gaia/cmd/gaiacli/main.go:185 +0x14f
main.registerRoutes(0xc000a22dc0)
	/Users/aleksbez/go/src/github.com/cosmos/gaia/cmd/gaiacli/main.go:170 +0x43
github.com/cosmos/cosmos-sdk/client/lcd.ServeCommand.func1(0xc000aae000, 0xc0001c3f20, 0x0, 0x3, 0x0, 0x0)
	/Users/aleksbez/go/pkg/mod/github.com/cosmos/[email protected]/client/lcd/root.go:90 +0x4f
github.com/spf13/cobra.(*Command).execute(0xc000aae000, 0xc0001c3e60, 0x3, 0x3, 0xc000aae000, 0xc0001c3e60)
	/Users/aleksbez/go/pkg/mod/github.com/spf13/[email protected]/command.go:762 +0x465
github.com/spf13/cobra.(*Command).ExecuteC(0xc0001b4c80, 0x47bd75f, 0xc0001b4c80, 0x4b7a365)
	/Users/aleksbez/go/pkg/mod/github.com/spf13/[email protected]/command.go:852 +0x2ec
github.com/spf13/cobra.(*Command).Execute(...)
	/Users/aleksbez/go/pkg/mod/github.com/spf13/[email protected]/command.go:800
github.com/tendermint/tendermint/libs/cli.Executor.Execute(0xc0001b4c80, 0x4cf3e48, 0x2, 0xc0004e3f00)
	/Users/aleksbez/go/pkg/mod/github.com/tendermint/[email protected]/libs/cli/setup.go:89 +0x3c
main.main()
	/Users/aleksbez/go/src/github.com/cosmos/gaia/cmd/gaiacli/main.go:110 +0x8c8

ERROR: unrecognized concrete type name auth/Account

Summary of Bug

I created a new account by gaiacli from master branch (old version, I don't remember the exact commit. It was on 16 Aug 2019).
Now I'm trying to query the state of my account but get the error.

What I also tried:
-- I performed a checkout with the commit 72a5f93, builded the tools (origin keys db was on my disk). Result the same.
-- Using version v2.0.0, I restored keys using the mnemonic (it was successful). But querying provides the same error.

Version

name: gaia
server_name: gaiad
client_name: gaiacli
version: 2.0.0
commit: 3c70fee
build_tags: netgo,ledger
go: go version go1.13 linux/amd64

Steps to Reproduce

root@cosmos-atom:# gaiacli config
chain-id = "cosmoshub-2"
node = "https://cosmoshub-rpc.chainlayer.net:443"
trust-node = true

root@cosmos-atom:# gaiacli query account cosmos1g4uk7a7z08ghkqgaw77sd0h9dc0cuvvjt0dc39
ERROR: unrecognized concrete type name auth/Account

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Standardize Makefile commands with SDK

Summary

Update the Gaia Makefile commands names to match the ones on the SDK.

Problem Definition

The difference in the Makefile commands with the SDK is tedious and I have to look at the file to be able to run them.

Proposal

Standardize the common commands with the SDK.

cc: @mircea-c @alessio @jackzampolin @alexanderbez


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

panic: stored supply should not have been nil & panic: ERROR: Message: "no delegation distribution info"

Summary of Bug

Trying to run a Full-Node according to the Doc I've been facing with two errors (pls look at the Steps to Reproduce section). I fix one of the errors (I hope it's acceptable), but another appears.
Please help with resolution and update your Docs to avoid them by other people.

Version

name: gaia
server_name: gaiad
client_name: gaiacli
version: 2.0.0
commit: 3c70fee
build_tags: netgo,ledger
go: go version go1.13 linux/amd64

All actions are proceeded in a brand new Docker environment, based on the latest official image "docker.io/golang". Thus we can consider that it's a clean installation

Steps to Reproduce

root@cosmos-atom:# pwd
/root
root@cosmos-atom:# 
root@cosmos-atom:# ls -la
total 16
drwxr-xr-x. 4 root root    71 Sep 16 12:19 .
drwxr-xr-x. 1 root root    17 Sep 16 12:17 ..
-rw-------. 1 root root  3137 Sep 16 12:17 .bash_history
drwxr-xr-x. 2 root root    24 Sep 16 12:19 .vim
-rw-------. 1 root root 12064 Sep 16 12:19 .viminfo
drwxr-xr-x. 2 root root    63 Sep 16 10:15 gaia_bkp
root@cosmos-atom:# 
root@cosmos-atom:# go version 
go version go1.13 linux/amd64
root@cosmos-atom:# 
root@cosmos-atom:# git clone -b "v2.0.0" https://github.com/cosmos/gaia
Cloning into 'gaia'...
remote: Enumerating objects: 33, done.
remote: Counting objects: 100% (33/33), done.
remote: Compressing objects: 100% (25/25), done.
remote: Total 1415 (delta 10), reused 12 (delta 8), pack-reused 1382
Receiving objects: 100% (1415/1415), 6.87 MiB | 6.87 MiB/s, done.
Resolving deltas: 100% (670/670), done.
Note: checking out '3c70fee433956ba32e35705193a5f7a7d5b63277'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

root@cosmos-atom:# 
root@cosmos-atom:# 
root@cosmos-atom:# cd gaia && make install
go: finding github.com/cosmos/cosmos-sdk v0.37.0
--> Ensure dependencies have not been modified
all modules verified
go install -mod=readonly -tags "netgo ledger" -ldflags '-X github.com/cosmos/cosmos-sdk/version.Name=gaia -X github.com/cosmos/cosmos-sdk/version.ServerName=gaiad -X github.com/cosmos/cosmos-sdk/version.ClientName=gaiacli -X github.com/cosmos/cosmos-sdk/version.Version=2.0.0 -X github.com/cosmos/cosmos-sdk/version.Commit=3c70fee433956ba32e35705193a5f7a7d5b63277 -X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger"' ./cmd/gaiad
go: downloading github.com/tendermint/tendermint v0.32.2
go: downloading github.com/cosmos/cosmos-sdk v0.37.0
go: downloading github.com/tendermint/tm-db v0.1.1
go: extracting github.com/tendermint/tm-db v0.1.1
go: downloading github.com/pkg/errors v0.8.1
go: extracting github.com/pkg/errors v0.8.1
go: extracting github.com/tendermint/tendermint v0.32.2
go: extracting github.com/cosmos/cosmos-sdk v0.37.0
go: downloading github.com/syndtr/goleveldb v1.0.1-0.20190318030020-c3a204f8e965
go: downloading github.com/otiai10/copy v1.0.1
go: downloading github.com/tendermint/go-amino v0.15.0
go: extracting github.com/otiai10/copy v1.0.1
go: extracting github.com/tendermint/go-amino v0.15.0
go: extracting github.com/syndtr/goleveldb v1.0.1-0.20190318030020-c3a204f8e965
go: downloading golang.org/x/net v0.0.0-20190724013045-ca1201d0de80
go: downloading github.com/gorilla/mux v1.7.3
go: downloading github.com/davecgh/go-spew v1.1.1
go: downloading google.golang.org/grpc v1.22.0
go: downloading github.com/spf13/viper v1.4.0
go: downloading gopkg.in/yaml.v2 v2.2.2
go: downloading github.com/golang/protobuf v1.3.2
go: downloading github.com/spf13/pflag v1.0.3
go: downloading github.com/pelletier/go-toml v1.4.0
go: downloading github.com/gogo/protobuf v1.2.1
go: extracting github.com/gorilla/mux v1.7.3
go: extracting github.com/davecgh/go-spew v1.1.1
go: extracting github.com/spf13/viper v1.4.0
go: downloading github.com/mitchellh/mapstructure v1.1.2
go: downloading github.com/hashicorp/hcl v1.0.0
go: downloading github.com/go-kit/kit v0.9.0
go: extracting github.com/spf13/pflag v1.0.3
go: extracting gopkg.in/yaml.v2 v2.2.2
go: downloading github.com/rakyll/statik v0.1.6
go: extracting github.com/golang/protobuf v1.3.2
go: downloading github.com/spf13/jwalterweatherman v1.1.0
go: extracting github.com/mitchellh/mapstructure v1.1.2
go: extracting github.com/pelletier/go-toml v1.4.0
go: downloading golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4
go: extracting github.com/hashicorp/hcl v1.0.0
go: downloading github.com/bartekn/go-bip39 v0.0.0-20171116152956-a05967ea095d
go: downloading github.com/tendermint/crypto v0.0.0-20180820045704-3764759f34a5
go: extracting google.golang.org/grpc v1.22.0
go: extracting github.com/rakyll/statik v0.1.6
go: extracting golang.org/x/net v0.0.0-20190724013045-ca1201d0de80
go: downloading github.com/bgentry/speakeasy v0.1.0
go: extracting github.com/go-kit/kit v0.9.0
go: extracting github.com/spf13/jwalterweatherman v1.1.0
go: downloading github.com/magiconair/properties v1.8.1
go: downloading golang.org/x/sys v0.0.0-20190804053845-51ab0e2deafa
go: extracting github.com/bartekn/go-bip39 v0.0.0-20171116152956-a05967ea095d
go: downloading github.com/spf13/cobra v0.0.5
go: downloading github.com/libp2p/go-buffer-pool v0.0.1
go: extracting github.com/bgentry/speakeasy v0.1.0
go: extracting golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4
go: extracting github.com/magiconair/properties v1.8.1
go: downloading github.com/btcsuite/btcd v0.0.0-20190523000118-16327141da8c
go: extracting github.com/spf13/cobra v0.0.5
go: extracting github.com/gogo/protobuf v1.2.1
go: downloading github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d
go: extracting github.com/libp2p/go-buffer-pool v0.0.1
go: extracting github.com/tendermint/crypto v0.0.0-20180820045704-3764759f34a5
go: downloading github.com/stretchr/testify v1.3.0
go: downloading github.com/fsnotify/fsnotify v1.4.7
go: downloading github.com/tendermint/btcd v0.1.1
go: downloading github.com/rs/cors v1.6.0
go: downloading github.com/spf13/cast v1.3.0
go: extracting github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d
go: extracting github.com/fsnotify/fsnotify v1.4.7
go: extracting github.com/rs/cors v1.6.0
go: downloading github.com/gorilla/websocket v1.4.0
go: downloading github.com/cosmos/ledger-cosmos-go v0.10.3
go: extracting github.com/stretchr/testify v1.3.0
go: downloading github.com/prometheus/client_golang v1.0.0
go: extracting golang.org/x/sys v0.0.0-20190804053845-51ab0e2deafa
go: extracting github.com/cosmos/ledger-cosmos-go v0.10.3
go: downloading google.golang.org/genproto v0.0.0-20190701230453-710ae3a149df
go: extracting github.com/spf13/cast v1.3.0
go: downloading github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d
go: extracting github.com/btcsuite/btcd v0.0.0-20190523000118-16327141da8c
go: extracting github.com/gorilla/websocket v1.4.0
go: downloading github.com/golang/snappy v0.0.1
go: downloading github.com/tendermint/iavl v0.12.4
go: extracting github.com/prometheus/client_golang v1.0.0
go: extracting github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d
go: downloading github.com/spf13/afero v1.2.2
go: downloading golang.org/x/text v0.3.2
go: downloading github.com/cosmos/ledger-go v0.9.2
go: extracting github.com/tendermint/btcd v0.1.1
go: downloading github.com/mattn/go-isatty v0.0.8
go: extracting github.com/golang/snappy v0.0.1
go: downloading github.com/prometheus/common v0.6.0
go: extracting github.com/mattn/go-isatty v0.0.8
go: extracting github.com/cosmos/ledger-go v0.9.2
go: downloading github.com/prometheus/procfs v0.0.3
go: downloading github.com/beorn7/perks v1.0.0
go: extracting github.com/prometheus/common v0.6.0
go: downloading github.com/zondax/hid v0.9.0
go: downloading github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90
go: extracting github.com/beorn7/perks v1.0.0
go: downloading github.com/rcrowley/go-metrics v0.0.0-20190704165056-9c2d0518ed81
go: extracting github.com/prometheus/procfs v0.0.3
go: downloading github.com/go-logfmt/logfmt v0.4.0
go: extracting github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90
go: downloading github.com/pmezard/go-difflib v1.0.0
go: extracting github.com/spf13/afero v1.2.2
go: extracting github.com/tendermint/iavl v0.12.4
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1
go: extracting github.com/zondax/hid v0.9.0
go: extracting github.com/go-logfmt/logfmt v0.4.0
go: extracting github.com/rcrowley/go-metrics v0.0.0-20190704165056-9c2d0518ed81
go: extracting github.com/pmezard/go-difflib v1.0.0
go: extracting github.com/matttproud/golang_protobuf_extensions v1.0.1
go: extracting golang.org/x/text v0.3.2
go: extracting google.golang.org/genproto v0.0.0-20190701230453-710ae3a149df
go: finding github.com/spf13/cobra v0.0.5
go: finding github.com/gogo/protobuf v1.2.1
go: finding github.com/tendermint/go-amino v0.15.0
go: finding github.com/spf13/viper v1.4.0
go: finding github.com/tendermint/tendermint v0.32.2
go: finding github.com/bgentry/speakeasy v0.1.0
go: finding github.com/gorilla/mux v1.7.3
go: finding github.com/tendermint/tm-db v0.1.1
go: finding github.com/bartekn/go-bip39 v0.0.0-20171116152956-a05967ea095d
go: finding github.com/pelletier/go-toml v1.4.0
go: finding github.com/mattn/go-isatty v0.0.8
go: finding github.com/pkg/errors v0.8.1
go: finding github.com/spf13/pflag v1.0.3
go: finding github.com/rakyll/statik v0.1.6
go: finding golang.org/x/sys v0.0.0-20190804053845-51ab0e2deafa
go: finding github.com/go-kit/kit v0.9.0
go: finding github.com/fsnotify/fsnotify v1.4.7
go: finding github.com/syndtr/goleveldb v1.0.1-0.20190318030020-c3a204f8e965
go: finding github.com/hashicorp/hcl v1.0.0
go: finding github.com/davecgh/go-spew v1.1.1
go: finding github.com/btcsuite/btcd v0.0.0-20190523000118-16327141da8c
go: finding github.com/go-logfmt/logfmt v0.4.0
go: finding github.com/magiconair/properties v1.8.1
go: finding github.com/otiai10/copy v1.0.1
go: finding github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d
go: finding golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4
go: finding github.com/mitchellh/mapstructure v1.1.2
go: finding github.com/stretchr/testify v1.3.0
go: finding github.com/tendermint/iavl v0.12.4
go: finding github.com/golang/protobuf v1.3.2
go: finding github.com/cosmos/ledger-cosmos-go v0.10.3
go: finding github.com/spf13/afero v1.2.2
go: finding github.com/spf13/cast v1.3.0
go: finding gopkg.in/yaml.v2 v2.2.2
go: finding github.com/tendermint/crypto v0.0.0-20180820045704-3764759f34a5
go: finding github.com/tendermint/btcd v0.1.1
go: finding github.com/spf13/jwalterweatherman v1.1.0
go: finding golang.org/x/net v0.0.0-20190724013045-ca1201d0de80
go: finding github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d
go: finding google.golang.org/grpc v1.22.0
go: finding github.com/cosmos/ledger-go v0.9.2
go: finding golang.org/x/text v0.3.2
go: finding github.com/pmezard/go-difflib v1.0.0
go: finding github.com/gorilla/websocket v1.4.0
go: finding github.com/zondax/hid v0.9.0
go: finding github.com/prometheus/client_golang v1.0.0
go: finding github.com/rs/cors v1.6.0
go: finding github.com/golang/snappy v0.0.1
go: finding github.com/beorn7/perks v1.0.0
go: finding github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90
go: finding github.com/rcrowley/go-metrics v0.0.0-20190704165056-9c2d0518ed81
go: finding github.com/prometheus/common v0.6.0
go: finding google.golang.org/genproto v0.0.0-20190701230453-710ae3a149df
go: finding github.com/matttproud/golang_protobuf_extensions v1.0.1
go: finding github.com/prometheus/procfs v0.0.3
go: finding github.com/libp2p/go-buffer-pool v0.0.1
go install -mod=readonly -tags "netgo ledger" -ldflags '-X github.com/cosmos/cosmos-sdk/version.Name=gaia -X github.com/cosmos/cosmos-sdk/version.ServerName=gaiad -X github.com/cosmos/cosmos-sdk/version.ClientName=gaiacli -X github.com/cosmos/cosmos-sdk/version.Version=2.0.0 -X github.com/cosmos/cosmos-sdk/version.Commit=3c70fee433956ba32e35705193a5f7a7d5b63277 -X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger"' ./cmd/gaiacli
root@cosmos-atom:~/gaia# 
root@cosmos-atom:~/gaia# 
root@cosmos-atom:~/gaia# gaiad version --long
name: gaia
server_name: gaiad
client_name: gaiacli
version: 2.0.0
commit: 3c70fee433956ba32e35705193a5f7a7d5b63277
build_tags: netgo,ledger
go: go version go1.13 linux/amd64

root@cosmos-atom:~/gaia# 
root@cosmos-atom:~/gaia# gaiad init test0357837135
{"app_message":{"accounts":[],"auth":{"params":{"max_memo_characters":"256","sig_verify_cost_ed25519":"590","sig_verify_cost_secp256k1":"1000","tx_sig_limit":"7","tx_size_cost_per_byte":"10"}},"bank":{"send_enabled":true},"crisis":{"constant_fee":{"amount":"1000","denom":"stake"}},"distribution":{"base_proposer_reward":"0.010000000000000000","bonus_proposer_reward":"0.040000000000000000","community_tax":"0.020000000000000000","delegator_starting_infos":[],"delegator_withdraw_infos":[],"fee_pool":{"community_pool":[]},"outstanding_rewards":[],"previous_proposer":"","validator_accumulated_commissions":[],"validator_current_rewards":[],"validator_historical_rewards":[],"validator_slash_events":[],"withdraw_addr_enabled":true},"genutil":{"gentxs":null},"gov":{"deposit_params":{"max_deposit_period":"172800000000000","min_deposit":[{"amount":"10000000","denom":"stake"}]},"deposits":null,"proposals":null,"starting_proposal_id":"1","tally_params":{"quorum":"0.334000000000000000","threshold":"0.500000000000000000","veto":"0.334000000000000000"},"votes":null,"voting_params":{"voting_period":"172800000000000"}},"mint":{"minter":{"annual_provisions":"0.000000000000000000","inflation":"0.130000000000000000"},"params":{"blocks_per_year":"6311520","goal_bonded":"0.670000000000000000","inflation_max":"0.200000000000000000","inflation_min":"0.070000000000000000","inflation_rate_change":"0.130000000000000000","mint_denom":"stake"}},"params":null,"slashing":{"missed_blocks":{},"params":{"downtime_jail_duration":"600000000000","max_evidence_age":"120000000000","min_signed_per_window":"0.500000000000000000","signed_blocks_window":"100","slash_fraction_double_sign":"0.050000000000000000","slash_fraction_downtime":"0.010000000000000000"},"signing_infos":{}},"staking":{"delegations":null,"exported":false,"last_total_power":"0","last_validator_powers":null,"params":{"bond_denom":"stake","max_entries":7,"max_validators":100,"unbonding_time":"1814400000000000"},"redelegations":null,"unbonding_delegations":null,"validators":null},"supply":{"supply":[]}},"chain_id":"test-chain-38yXiy","gentxs_dir":"","moniker":"test0357837135","node_id":"67fa04ce6846c5bbf7de31c1ab70ff6fea05f179"}
root@cosmos-atom:~/gaia# 
root@cosmos-atom:~/gaia# 
root@cosmos-atom:~/gaia# cd ~
root@cosmos-atom:# pwd
/root
root@cosmos-atom:# 
root@cosmos-atom:# ls -la
total 20
drwxr-xr-x.  7 root root   111 Sep 16 12:23 .
drwxr-xr-x.  1 root root    27 Sep 16 12:17 ..
-rw-------.  1 root root  3137 Sep 16 12:17 .bash_history
drwxr-xr-x.  3 root root    22 Sep 16 12:20 .cache
drwx------.  4 root root    32 Sep 16 12:23 .gaiad
drwxr-xr-x.  2 root root    24 Sep 16 12:19 .vim
-rw-------.  1 root root 12064 Sep 16 12:19 .viminfo
drwxr-xr-x. 12 root root  4096 Sep 16 12:20 gaia
drwxr-xr-x.  2 root root    63 Sep 16 10:15 gaia_bkp
root@cosmos-atom:# 
root@cosmos-atom:# curl https://raw.githubusercontent.com/cosmos/launch/master/genesis.json > $HOME/.gaiad/config/genesis.json
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 3310k  100 3310k    0     0  2283k      0  0:00:01  0:00:01 --:--:-- 2283k
root@cosmos-atom:# 
root@cosmos-atom:# 
root@cosmos-atom:# sed -i 's/seeds = ""/seeds = "6be0856f6365559fdc2e9e97a07d609f754632b0@cosmos-cosmoshub-2-seed.nodes.polychainlabs.com:26656"/g' .gaiad/config/config.toml 
root@cosmos-atom:# 
root@cosmos-atom:# cat ~/.gaiad/config/config.toml | fgrep 'seeds ='
seeds = "6be0856f6365559fdc2e9e97a07d609f754632b0@cosmos-cosmoshub-2-seed.nodes.polychainlabs.com:26656"
root@cosmos-atom:# 
root@cosmos-atom:# echo 'minimum-gas-prices = "0.025uatom"' | tee ~/.gaiad/config/config.toml
minimum-gas-prices = "0.025uatom"
root@cosmos-atom:# 
root@cosmos-atom:# 
root@cosmos-atom:# gaiad start
I[2019-09-16|14:06:16.066] Starting ABCI with Tendermint                module=main 
panic: stored supply should not have been nil

goroutine 1 [running]:
github.com/cosmos/cosmos-sdk/x/supply/internal/keeper.Keeper.GetSupply(0xc00010c540, 0x155b600, 0xc0009074b0, 0x156b500, 0xc00010ca10, 0x7f49103599b8, 0xc0000f8b60, 0xc000989ce0, 0x156a480, 0xc0000b4040, ...)
	/go/pkg/mod/github.com/cosmos/[email protected]/x/supply/internal/keeper/keeper.go:50 +0x18f
github.com/cosmos/cosmos-sdk/x/supply/internal/keeper.TotalSupply.func1(0x156a480, 0xc0000b4040, 0x157af00, 0xc000a3cc80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/go/pkg/mod/github.com/cosmos/[email protected]/x/supply/internal/keeper/invariants.go:27 +0xe7
github.com/cosmos/cosmos-sdk/x/crisis/internal/keeper.Keeper.AssertInvariants(0xc0008f4280, 0xb, 0x10, 0xc00010c540, 0x155b600, 0xc000907500, 0x155b640, 0xc000907520, 0xc0009d6120, 0x6, ...)
	/go/pkg/mod/github.com/cosmos/[email protected]/x/crisis/internal/keeper/keeper.go:74 +0x36d
github.com/cosmos/cosmos-sdk/x/crisis.AppModule.InitGenesis(0xc0000e5328, 0x156a480, 0xc0000b4040, 0x157af00, 0xc000a3cc80, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/go/pkg/mod/github.com/cosmos/[email protected]/x/crisis/module.go:113 +0x2dd
github.com/cosmos/cosmos-sdk/types/module.(*Manager).InitGenesis(0xc00010ce00, 0x156a480, 0xc0000b4040, 0x157af00, 0xc000a3cc80, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/go/pkg/mod/github.com/cosmos/[email protected]/types/module/module.go:258 +0x278
github.com/cosmos/gaia/app.(*GaiaApp).InitChainer(0xc0000e4f00, 0x156a480, 0xc0000b4040, 0x157af00, 0xc000a3cc80, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/root/gaia/app/app.go:247 +0x11d
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).InitChain(0xc0000c2ea0, 0x0, 0xed44fea10, 0x0, 0xc000036250, 0xb, 0xc000a3cbc0, 0xc000ae1000, 0x63, 0x63, ...)
	/go/pkg/mod/github.com/cosmos/[email protected]/baseapp/baseapp.go:392 +0x2c7
github.com/tendermint/tendermint/abci/client.(*localClient).InitChainSync(0xc0005b3560, 0x0, 0xed44fea10, 0x0, 0xc000036250, 0xb, 0xc000a3cbc0, 0xc000ae1000, 0x63, 0x63, ...)
	/go/pkg/mod/github.com/tendermint/[email protected]/abci/client/local_client.go:223 +0x101
github.com/tendermint/tendermint/proxy.(*appConnConsensus).InitChainSync(0xc0009370a0, 0x0, 0xed44fea10, 0x0, 0xc000036250, 0xb, 0xc000a3cbc0, 0xc000ae1000, 0x63, 0x63, ...)
	/go/pkg/mod/github.com/tendermint/[email protected]/proxy/app_conn.go:65 +0x6b
github.com/tendermint/tendermint/consensus.(*Handshaker).ReplayBlocks(0xc0031610f0, 0xa, 0x0, 0x119bb6c, 0x6, 0xc000036250, 0xb, 0x0, 0x0, 0x0, ...)
	/go/pkg/mod/github.com/tendermint/[email protected]/consensus/replay.go:309 +0x666
github.com/tendermint/tendermint/consensus.(*Handshaker).Handshake(0xc0031610f0, 0x157d800, 0xc00010d1f0, 0x80, 0x1012300)
	/go/pkg/mod/github.com/tendermint/[email protected]/consensus/replay.go:267 +0x485
github.com/tendermint/tendermint/node.doHandshake(0x157cd80, 0xc000010210, 0xa, 0x0, 0x119bb6c, 0x6, 0xc000036250, 0xb, 0x0, 0x0, ...)
	/go/pkg/mod/github.com/tendermint/[email protected]/node/node.go:274 +0x199
github.com/tendermint/tendermint/node.NewNode(0xc0000e2c80, 0x1565240, 0xc000033d60, 0xc000907870, 0x154c0a0, 0xc0009799a0, 0xc000907ae0, 0x13979c0, 0xc000907af0, 0x156afc0, ...)
	/go/pkg/mod/github.com/tendermint/[email protected]/node/node.go:584 +0x334
github.com/cosmos/cosmos-sdk/server.startInProcess(0xc00053fb00, 0x13981c8, 0x1d, 0x0, 0x0)
	/go/pkg/mod/github.com/cosmos/[email protected]/server/start.go:129 +0x4c1
github.com/cosmos/cosmos-sdk/server.StartCmd.func1(0xc000479180, 0x1db18b0, 0x0, 0x0, 0x0, 0x0)
	/go/pkg/mod/github.com/cosmos/[email protected]/server/start.go:43 +0xb4
github.com/spf13/cobra.(*Command).execute(0xc000479180, 0x1db18b0, 0x0, 0x0, 0xc000479180, 0x1db18b0)
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:826 +0x460
github.com/spf13/cobra.(*Command).ExecuteC(0xc0000bec80, 0x11c0836, 0xc000877ea0, 0x5977b2)
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:914 +0x2fb
github.com/spf13/cobra.(*Command).Execute(...)
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:864
github.com/tendermint/tendermint/libs/cli.Executor.Execute(0xc0000bec80, 0x13985e8, 0x11a6115, 0x10)
	/go/pkg/mod/github.com/tendermint/[email protected]/libs/cli/setup.go:89 +0x3c
main.main()
	/root/gaia/cmd/gaiad/main.go:68 +0x875
root@cosmos-atom:# 
root@cosmos-atom:#     
root@cosmos-atom:# gaiad unsafe-reset-all
I[2019-09-16|14:07:32.249] Removed all blockchain history               module=main dir=/root/.gaiad/data
I[2019-09-16|14:07:32.251] Reset private validator file to genesis state module=main keyFile=/root/.gaiad/config/priv_validator_key.json stateFile=/root/.gaiad/data/priv_validator_state.json
root@cosmos-atom:# 
root@cosmos-atom:# 
root@cosmos-atom:# gaiad start
I[2019-09-16|14:07:42.857] Starting ABCI with Tendermint                module=main 
panic: ERROR:
Codespace: distr
Code: 104
Message: "no delegation distribution info"


goroutine 1 [running]:
github.com/cosmos/cosmos-sdk/x/distribution/keeper.CanWithdrawInvariant.func1.1(0x0, 0x1583d40, 0xc0002e8620, 0xc0002e8620)
	/go/pkg/mod/github.com/cosmos/[email protected]/x/distribution/keeper/invariants.go:87 +0x6f9
github.com/cosmos/cosmos-sdk/x/staking/keeper.Keeper.IterateValidators(0x155b600, 0xc000240580, 0x155b640, 0xc0002405f0, 0xc000a30770, 0x1576fe0, 0xc000090540, 0x157b080, 0xc000230940, 0xc000a30770, ...)
	/go/pkg/mod/github.com/cosmos/[email protected]/x/staking/keeper/alias_functions.go:22 +0x206
github.com/cosmos/cosmos-sdk/x/distribution/keeper.CanWithdrawInvariant.func1(0x156a480, 0xc000036058, 0x157af00, 0xc00031f380, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/go/pkg/mod/github.com/cosmos/[email protected]/x/distribution/keeper/invariants.go:80 +0x4ce
github.com/cosmos/cosmos-sdk/x/crisis/internal/keeper.Keeper.AssertInvariants(0xc0001da280, 0xb, 0x10, 0xc000a30770, 0x155b600, 0xc0002405e0, 0x155b640, 0xc000240600, 0xc0001cfa60, 0x6, ...)
	/go/pkg/mod/github.com/cosmos/[email protected]/x/crisis/internal/keeper/keeper.go:74 +0x36d
github.com/cosmos/cosmos-sdk/x/crisis.AppModule.InitGenesis(0xc0000d7328, 0x156a480, 0xc000036058, 0x157af00, 0xc00031f380, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/go/pkg/mod/github.com/cosmos/[email protected]/x/crisis/module.go:113 +0x2dd
github.com/cosmos/cosmos-sdk/types/module.(*Manager).InitGenesis(0xc000a310a0, 0x156a480, 0xc000036058, 0x157af00, 0xc00031f380, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/go/pkg/mod/github.com/cosmos/[email protected]/types/module/module.go:258 +0x278
github.com/cosmos/gaia/app.(*GaiaApp).InitChainer(0xc0000d6f00, 0x156a480, 0xc000036058, 0x157af00, 0xc00031f380, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/root/gaia/app/app.go:247 +0x11d
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).InitChain(0xc00013d560, 0x0, 0xed44fea10, 0x0, 0xc000037bd0, 0xb, 0xc00031f2c0, 0xc000a6f000, 0x63, 0x63, ...)
	/go/pkg/mod/github.com/cosmos/[email protected]/baseapp/baseapp.go:392 +0x2c7
github.com/tendermint/tendermint/abci/client.(*localClient).InitChainSync(0xc0000afbc0, 0x0, 0xed44fea10, 0x0, 0xc000037bd0, 0xb, 0xc00031f2c0, 0xc000a6f000, 0x63, 0x63, ...)
	/go/pkg/mod/github.com/tendermint/[email protected]/abci/client/local_client.go:223 +0x101
github.com/tendermint/tendermint/proxy.(*appConnConsensus).InitChainSync(0xc000012530, 0x0, 0xed44fea10, 0x0, 0xc000037bd0, 0xb, 0xc00031f2c0, 0xc000a6f000, 0x63, 0x63, ...)
	/go/pkg/mod/github.com/tendermint/[email protected]/proxy/app_conn.go:65 +0x6b
github.com/tendermint/tendermint/consensus.(*Handshaker).ReplayBlocks(0xc0034130f0, 0xa, 0x0, 0x119bb6c, 0x6, 0xc000037bd0, 0xb, 0x0, 0x0, 0x0, ...)
	/go/pkg/mod/github.com/tendermint/[email protected]/consensus/replay.go:309 +0x666
github.com/tendermint/tendermint/consensus.(*Handshaker).Handshake(0xc0034130f0, 0x157d800, 0xc00013b0a0, 0x80, 0x1012300)
	/go/pkg/mod/github.com/tendermint/[email protected]/consensus/replay.go:267 +0x485
github.com/tendermint/tendermint/node.doHandshake(0x157cd80, 0xc000018390, 0xa, 0x0, 0x119bb6c, 0x6, 0xc000037bd0, 0xb, 0x0, 0x0, ...)
	/go/pkg/mod/github.com/tendermint/[email protected]/node/node.go:274 +0x199
github.com/tendermint/tendermint/node.NewNode(0xc0001d0000, 0x1565240, 0xc000bd5b80, 0xc000240950, 0x154c0a0, 0xc000231520, 0xc000240bc0, 0x13979c0, 0xc000240bd0, 0x156afc0, ...)
	/go/pkg/mod/github.com/tendermint/[email protected]/node/node.go:584 +0x334
github.com/cosmos/cosmos-sdk/server.startInProcess(0xc0001b4500, 0x13981c8, 0x1d, 0x0, 0x0)
	/go/pkg/mod/github.com/cosmos/[email protected]/server/start.go:129 +0x4c1
github.com/cosmos/cosmos-sdk/server.StartCmd.func1(0xc000443400, 0x1db18b0, 0x0, 0x0, 0x0, 0x0)
	/go/pkg/mod/github.com/cosmos/[email protected]/server/start.go:43 +0xb4
github.com/spf13/cobra.(*Command).execute(0xc000443400, 0x1db18b0, 0x0, 0x0, 0xc000443400, 0x1db18b0)
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:826 +0x460
github.com/spf13/cobra.(*Command).ExecuteC(0xc00011c000, 0x11c0836, 0xc000bc9ea0, 0x5977b2)
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:914 +0x2fb
github.com/spf13/cobra.(*Command).Execute(...)
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:864
github.com/tendermint/tendermint/libs/cli.Executor.Execute(0xc00011c000, 0x13985e8, 0x11a6115, 0x10)
	/go/pkg/mod/github.com/tendermint/[email protected]/libs/cli/setup.go:89 +0x3c
main.main()
	/root/gaia/cmd/gaiad/main.go:68 +0x875

root@cosmos-atom:#

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

panic on restart when enable priv_validator_laddr in 1.0.0-rc1

Summary of Bug

Can restart gaiad when you enable priv_validator_laddr.
Gaiad automaticlly generate a priv_validator_key.json in local file system. When restart, it will load the local priv_validator_json(generated by gaiad) instead of the one in HSM, then failed to start

Version

1.0.0-rc1

Steps to Reproduce

1, gaiad unsafe-reset-all
2. setup priv_validator_laddr, enable hsm.
3. remove priv_validator_key.json in .gaiad/config/ (Note: This file should be different with the one in HSM)
4. gaiad start
5. stop gaiad after synced a few blocks
6. gaiad start again, it will panic. here is the error message:

[cosmos@localhost ~]$ gaiad start
I[2019-07-26|04:57:09.560] Starting ABCI with Tendermint                module=main
panic: state.AppHash does not match AppHash after replay. Got
6234DCD8784D9862A8C6BCE06862F3FA0BD439D1A111AF2ECAD3F1DCA8BA3B58, expected .

State: {{{10 0} 0.32.1} gaia-13004 0 0 :0:000000000000 2019-07-22 20:50:00 +0000 UTC ValidatorSet{
  Proposer: Validator{4A34D913697AF5ED8D61C120E20178DFE234D70A PubKeyEd25519{FFE0064A296FED20269821373E78B6330C3915BCB4C0872F26CA9DA4D488B109} VP:210015 A:-700491}
  Validators:
    Validator{06505E062D591F3D4CCF3C909C526A5F9C8DB137 PubKeyEd25519{EA1E4F240DFFB999C7EC1BD5F322F2CAF6F435272FED3EEEDF8E71642A86E8FB} VP:10000 A:20000}
    Validator{12DD2306D4842201D396B76A4299980597FB213F PubKeyEd25519{2C7FC93858170F1B9B41B5DFC758253E5AF846C92B29D78C0542A46E195B36A7} VP:1 A:2}
    Validator{177AE79DD01ED9BAAC1492F68FF881383AFA2ADE PubKeyEd25519{E1B2616E87A3AD59E00F26B191CF8B79C260198642EA0336BD10B3D98DA4A20E} VP:55000 A:110000}
    Validator{19BCD67638BFADD44A7A5E327027C6C61EF1E889 PubKeyEd25519{F578CDDA971935DDC6D493CFC527457BB2C1B739DFE164EC120A8EA8284A25C8} VP:16600 A:33200}
    Validator{1EF22E447B2AB74A268A9A4A80F0F512212BEA6F PubKeyEd25519{9FB70C212D71429F95F1E7CA3956E56793298B1DC10F98595459FEC331A04CE8} VP:9998 A:19996}
    Validator{223083323CA362A2F2F871A3D420D0EC61A334D4 PubKeyEd25519{D9A41DC3B2BA20BBDCE7787A3A6996A1D127345FF07DA7449157EBE21EE40D31} VP:113 A:226}
    Validator{24C1DFFAC8D534DF3097FFE3D63D70B5AC555912 PubKeyEd25519{BC36AE502B61283DD1AA6891C828F1096FC71A5F3E5FBDD4CF357FBBEA4E4BB5} VP:54999 A:109998}
    Validator{259C03A0E323B3EDE86D56AD6E6E4C54E53DD15A PubKeyEd25519{F3B353A9CBEBD80F426D8AAD8423E3B31320D9CFB4F4FABE85A0BCB091C91ABB} VP:10000 A:20000}
    Validator{2B89383448ACC1DD6B870385C16342F0F3950C31 PubKeyEd25519{6D4A8DBAA9035F357C6EFDF6B380086EFF27A5F9CF4D919734445CBB9C980676} VP:22470 A:44940}
    Validator{398610C4CF11C84C89AC6975470972EE75DA17E4 PubKeyEd25519{E46031207CEED3A9749F7314F30350AC272BAE7A5947D10A7B9A9932C33687F1} VP:33581 A:67162}
    Validator{3CC014C561A6C2A3A5279E01072C8C8CA8DEEF4B PubKeyEd25519{50D97E586108075323AB5E5AE598BD4F9BDCA3A405AECE98325DD58B682AC234} VP:20 A:40}
    Validator{4A34D913697AF5ED8D61C120E20178DFE234D70A PubKeyEd25519{FFE0064A296FED20269821373E78B6330C3915BCB4C0872F26CA9DA4D488B109} VP:210015 A:-700491}
    Validator{4AA5B2B4352A4F398729AF31C22B0F8F7F9AF0AE PubKeyEd25519{538001388BEE43B00D0A4CE8F20BC9454858DAFAE00836963CFCCB122A0F168C} VP:1 A:2}
    Validator{5AB353B748D45F20DFCE19D73BA89F26E1C34CF7 PubKeyEd25519{3F8589A4F0DD72EEE25D483924E58B38EEE950162F1CB357293970BE03736DB2} VP:1000 A:2000}
    Validator{681EF3FFE4D8206B0C77154E91E05827DFC085CE PubKeyEd25519{E8C0DB65A43A12C46B3BC12A066B1226701E91B73FAF3E72F6F3F06619ADB6F8} VP:212 A:424}
    Validator{682D048B8848B16C86617D05A6082AB643801C7B PubKeyEd25519{82B90368881ADFF41652BEF75F070A80BD112339C4F596B11F2F1CF30E090F9D} VP:35 A:70}
    Validator{69BE49DE6DA23184D960FEC4C7E44044596D7B22 PubKeyEd25519{7EB8F091F6EE3F7DC583A2389F33AFFB479376414A8263FB087B23E86F8F6175} VP:1 A:2}
    Validator{6F453F4601A1B4C7C50C969301CEC09EA38AEDEB PubKeyEd25519{A5400A14CA7C11D06564549E16CA1E1C8A547AE8FB3198F3BCC5261F87B55E04} VP:201009 A:402018}
    Validator{734F358B16E66F23534984E6E31E940AEB0FF98E PubKeyEd25519{D993F3C7943C98B6B62D5FE11F29F29635BA2141433364ED3967D0639812ABE8} VP:35071 A:70142}
    Validator{780CB5F2F9152F920D8BB045B236C96DEA5AA92C PubKeyEd25519{C05D017A24CC1AC272298207522D2305E41B508805A302535D5429848B10BDB7} VP:51 A:102}
    Validator{7DF607843E110602AD8D55C7D7D17BFFC9B61577 PubKeyEd25519{5234AF17C0C49BF44871964521F4FDDFB2132896ABEC7BA1A0C2B51157AB5267} VP:1 A:2}
    Validator{8F8D88C30078FB2C033638DFDFE4B0132714C30E PubKeyEd25519{7169834B0F5F9C0C8B451FEF72B3E76ED612B994088B9BAAC6C190E9E6826FB8} VP:304 A:608}
    Validator{9C0A464E335B0ED4B994377740115A9138D2E4D7 PubKeyEd25519{3AF7278EE6787B92EFBEC4EF33C185897CAF7D0B536815743EF831A11EBD2605} VP:1 A:2}
    Validator{9D93AD02FE1BD7E76B9E58D7EB461088EAD011E5 PubKeyEd25519{8E3D18FC5CBC252251DE0F8F1D4E827B479C6301C65152786D5C91ED6C1CC8B2} VP:15692 A:31384}
    Validator{A4FE2CEAD35786898FC17196644120B204F4828B PubKeyEd25519{93ABDD01B95BA8A9618EACB72D067AF8AEF47E670E8AF01D9BE4239461B6B5D3} VP:29 A:58}
    Validator{AE8ACF826B7B062E30DD16EA47B21E4643B13712 PubKeyEd25519{88E662008FCB08E45D823EAEACDEC977720B46D321DB2DFE6763B38ECE1D7486} VP:30 A:60}
    Validator{AEBFCB6BAAF53AF6DA0025E9DDAD5780CF39A619 PubKeyEd25519{EC943EE386F6C41A867F126308B9674F06F71714D3810A84B7442346EA0BEBC7} VP:7124 A:14248}
    Validator{B713231508E6FE6E10007F7A31B5CA27BC0031DE PubKeyEd25519{44B6AA51659068BE9972EDD7F8D510D82B340ACBE3866C779605BFC7DB3A5EF9} VP:200001 A:400002}
    Validator{C09E465AF13ADD976426CE44EA1AE3D9F00BF38F PubKeyEd25519{5B920819A85267CC8980595AE527B7CF1E2E329E39E81171D163CB8F24F5A5E6} VP:100 A:200}
    Validator{C10A4438BBD3AF3259D7F3FD2A53DD1E91949225 PubKeyEd25519{0C7CC43810F1CA754FE49911F2F930CFC70229F231D9342C7EAC0AD0A14A70D8} VP:537 A:1074}
    Validator{C50248FDCDA24750CEF695B34977EFB2AE06B85E PubKeyEd25519{61B85B2A6B498C14E447949238E710DEC1500597CCCB7DA0435577748628EFF2} VP:263 A:526}
    Validator{C696FEA7DBD3A064ED66C7C8C806F260C18EB179 PubKeyEd25519{8E171C1101331CF6BDD89BAECAC503807B9EB90E0A0EB191A70FB52FE777817F} VP:221251 A:-678019}
    Validator{CAC5C600255CC939DA6FDEBB5D55F32834BF9B06 PubKeyEd25519{42FBA864EBC08469B12BB38F4F9C99E4676B4525A91CC72343D82873834EDFFC} VP:5001 A:10002}
    Validator{E7748EE6353D59DF2ABDD849632ED628A11F037F PubKeyEd25519{37F27A6929084F2596557226C53C230B13A7F2CB80C0A4EC5E89ADC95D8E593E} VP:10000 A:20000}
    Validator{EF03688F94435C35282A553C897A83B25A77B291 PubKeyEd25519{8AB977E6BD1003C2910559C252AA952F1F35A118985E3A1B697C386DD5F336A0} VP:10 A:20}
} ValidatorSet{
  Proposer: Validator{C696FEA7DBD3A064ED66C7C8C806F260C18EB179 PubKeyEd25519{8E171C1101331CF6BDD89BAECAC503807B9EB90E0A0EB191A70FB52FE777817F} VP:221251 A:-899270}
  Validators:
    Validator{06505E062D591F3D4CCF3C909C526A5F9C8DB137 PubKeyEd25519{EA1E4F240DFFB999C7EC1BD5F322F2CAF6F435272FED3EEEDF8E71642A86E8FB} VP:10000 A:10000}
    Validator{12DD2306D4842201D396B76A4299980597FB213F PubKeyEd25519{2C7FC93858170F1B9B41B5DFC758253E5AF846C92B29D78C0542A46E195B36A7} VP:1 A:1}
    Validator{177AE79DD01ED9BAAC1492F68FF881383AFA2ADE PubKeyEd25519{E1B2616E87A3AD59E00F26B191CF8B79C260198642EA0336BD10B3D98DA4A20E} VP:55000 A:55000}
    Validator{19BCD67638BFADD44A7A5E327027C6C61EF1E889 PubKeyEd25519{F578CDDA971935DDC6D493CFC527457BB2C1B739DFE164EC120A8EA8284A25C8} VP:16600 A:16600}
    Validator{1EF22E447B2AB74A268A9A4A80F0F512212BEA6F PubKeyEd25519{9FB70C212D71429F95F1E7CA3956E56793298B1DC10F98595459FEC331A04CE8} VP:9998 A:9998}
    Validator{223083323CA362A2F2F871A3D420D0EC61A334D4 PubKeyEd25519{D9A41DC3B2BA20BBDCE7787A3A6996A1D127345FF07DA7449157EBE21EE40D31} VP:113 A:113}
    Validator{24C1DFFAC8D534DF3097FFE3D63D70B5AC555912 PubKeyEd25519{BC36AE502B61283DD1AA6891C828F1096FC71A5F3E5FBDD4CF357FBBEA4E4BB5} VP:54999 A:54999}
    Validator{259C03A0E323B3EDE86D56AD6E6E4C54E53DD15A PubKeyEd25519{F3B353A9CBEBD80F426D8AAD8423E3B31320D9CFB4F4FABE85A0BCB091C91ABB} VP:10000 A:10000}
    Validator{2B89383448ACC1DD6B870385C16342F0F3950C31 PubKeyEd25519{6D4A8DBAA9035F357C6EFDF6B380086EFF27A5F9CF4D919734445CBB9C980676} VP:22470 A:22470}
    Validator{398610C4CF11C84C89AC6975470972EE75DA17E4 PubKeyEd25519{E46031207CEED3A9749F7314F30350AC272BAE7A5947D10A7B9A9932C33687F1} VP:33581 A:33581}
    Validator{3CC014C561A6C2A3A5279E01072C8C8CA8DEEF4B PubKeyEd25519{50D97E586108075323AB5E5AE598BD4F9BDCA3A405AECE98325DD58B682AC234} VP:20 A:20}
    Validator{4A34D913697AF5ED8D61C120E20178DFE234D70A PubKeyEd25519{FFE0064A296FED20269821373E78B6330C3915BCB4C0872F26CA9DA4D488B109} VP:210015 A:210015}
    Validator{4AA5B2B4352A4F398729AF31C22B0F8F7F9AF0AE PubKeyEd25519{538001388BEE43B00D0A4CE8F20BC9454858DAFAE00836963CFCCB122A0F168C} VP:1 A:1}
    Validator{5AB353B748D45F20DFCE19D73BA89F26E1C34CF7 PubKeyEd25519{3F8589A4F0DD72EEE25D483924E58B38EEE950162F1CB357293970BE03736DB2} VP:1000 A:1000}
    Validator{681EF3FFE4D8206B0C77154E91E05827DFC085CE PubKeyEd25519{E8C0DB65A43A12C46B3BC12A066B1226701E91B73FAF3E72F6F3F06619ADB6F8} VP:212 A:212}
    Validator{682D048B8848B16C86617D05A6082AB643801C7B PubKeyEd25519{82B90368881ADFF41652BEF75F070A80BD112339C4F596B11F2F1CF30E090F9D} VP:35 A:35}
    Validator{69BE49DE6DA23184D960FEC4C7E44044596D7B22 PubKeyEd25519{7EB8F091F6EE3F7DC583A2389F33AFFB479376414A8263FB087B23E86F8F6175} VP:1 A:1}
    Validator{6F453F4601A1B4C7C50C969301CEC09EA38AEDEB PubKeyEd25519{A5400A14CA7C11D06564549E16CA1E1C8A547AE8FB3198F3BCC5261F87B55E04} VP:201009 A:201009}
    Validator{734F358B16E66F23534984E6E31E940AEB0FF98E PubKeyEd25519{D993F3C7943C98B6B62D5FE11F29F29635BA2141433364ED3967D0639812ABE8} VP:35071 A:35071}
    Validator{780CB5F2F9152F920D8BB045B236C96DEA5AA92C PubKeyEd25519{C05D017A24CC1AC272298207522D2305E41B508805A302535D5429848B10BDB7} VP:51 A:51}
    Validator{7DF607843E110602AD8D55C7D7D17BFFC9B61577 PubKeyEd25519{5234AF17C0C49BF44871964521F4FDDFB2132896ABEC7BA1A0C2B51157AB5267} VP:1 A:1}
    Validator{8F8D88C30078FB2C033638DFDFE4B0132714C30E PubKeyEd25519{7169834B0F5F9C0C8B451FEF72B3E76ED612B994088B9BAAC6C190E9E6826FB8} VP:304 A:304}
    Validator{9C0A464E335B0ED4B994377740115A9138D2E4D7 PubKeyEd25519{3AF7278EE6787B92EFBEC4EF33C185897CAF7D0B536815743EF831A11EBD2605} VP:1 A:1}
    Validator{9D93AD02FE1BD7E76B9E58D7EB461088EAD011E5 PubKeyEd25519{8E3D18FC5CBC252251DE0F8F1D4E827B479C6301C65152786D5C91ED6C1CC8B2} VP:15692 A:15692}
    Validator{A4FE2CEAD35786898FC17196644120B204F4828B PubKeyEd25519{93ABDD01B95BA8A9618EACB72D067AF8AEF47E670E8AF01D9BE4239461B6B5D3} VP:29 A:29}
    Validator{AE8ACF826B7B062E30DD16EA47B21E4643B13712 PubKeyEd25519{88E662008FCB08E45D823EAEACDEC977720B46D321DB2DFE6763B38ECE1D7486} VP:30 A:30}
    Validator{AEBFCB6BAAF53AF6DA0025E9DDAD5780CF39A619 PubKeyEd25519{EC943EE386F6C41A867F126308B9674F06F71714D3810A84B7442346EA0BEBC7} VP:7124 A:7124}
    Validator{B713231508E6FE6E10007F7A31B5CA27BC0031DE PubKeyEd25519{44B6AA51659068BE9972EDD7F8D510D82B340ACBE3866C779605BFC7DB3A5EF9} VP:200001 A:200001}
    Validator{C09E465AF13ADD976426CE44EA1AE3D9F00BF38F PubKeyEd25519{5B920819A85267CC8980595AE527B7CF1E2E329E39E81171D163CB8F24F5A5E6} VP:100 A:100}
    Validator{C10A4438BBD3AF3259D7F3FD2A53DD1E91949225 PubKeyEd25519{0C7CC43810F1CA754FE49911F2F930CFC70229F231D9342C7EAC0AD0A14A70D8} VP:537 A:537}
    Validator{C50248FDCDA24750CEF695B34977EFB2AE06B85E PubKeyEd25519{61B85B2A6B498C14E447949238E710DEC1500597CCCB7DA0435577748628EFF2} VP:263 A:263}
    Validator{C696FEA7DBD3A064ED66C7C8C806F260C18EB179 PubKeyEd25519{8E171C1101331CF6BDD89BAECAC503807B9EB90E0A0EB191A70FB52FE777817F} VP:221251 A:-899270}
    Validator{CAC5C600255CC939DA6FDEBB5D55F32834BF9B06 PubKeyEd25519{42FBA864EBC08469B12BB38F4F9C99E4676B4525A91CC72343D82873834EDFFC} VP:5001 A:5001}
    Validator{E7748EE6353D59DF2ABDD849632ED628A11F037F PubKeyEd25519{37F27A6929084F2596557226C53C230B13A7F2CB80C0A4EC5E89ADC95D8E593E} VP:10000 A:10000}
    Validator{EF03688F94435C35282A553C897A83B25A77B291 PubKeyEd25519{8AB977E6BD1003C2910559C252AA952F1F35A118985E3A1B697C386DD5F336A0} VP:10 A:10}
} ValidatorSet{
  Proposer: nil-Validator
  Validators:

} 1 {{200000 2000000 1000} {100000} {[ed25519]}} 1 [] []}

Did you reset Tendermint without resetting your application's data?

goroutine 1 [running]:
github.com/tendermint/tendermint/consensus.assertAppHashEqualsOneFromState(0xc000b2dc40, 0x20, 0x20, 0xa, 0x0, 0x1190461, 0x6, 0xc00113a190, 0xa, 0x0, ...)
        /home/cosmos/go/pkg/mod/github.com/tendermint/[email protected]/consensus/replay.go:483 +0x1e8
github.com/tendermint/tendermint/consensus.(*Handshaker).ReplayBlocks(0xc000473500, 0xa, 0x0, 0x1190461, 0x6, 0xc00113a190, 0xa, 0x0, 0x0, 0x0, ...)
        /home/cosmos/go/pkg/mod/github.com/tendermint/[email protected]/consensus/replay.go:339 +0xfa9
github.com/tendermint/tendermint/consensus.(*Handshaker).Handshake(0xc000473500, 0x1579e20, 0xc0008cb030, 0x20, 0x10da080)


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Couldn't connect to any seeds

Summary of Bug

Trying to setup gaiad for the first time. Getting the following:

I[2019-07-18|21:11:47.715] Starting ABCI with Tendermint                module=main 
E[2019-07-18|21:11:48.218] Couldn't connect to any seeds                module=p2p 
E[2019-07-18|21:12:18.218] Couldn't connect to any seeds                module=p2p 
E[2019-07-18|21:12:48.218] Couldn't connect to any seeds                module=p2p 
E[2019-07-18|21:13:18.218] Couldn't connect to any seeds                module=p2p

Version

version: 0.0.0-43-gc1ae722

Steps to Reproduce

gaiad start


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

go: error loading module requirements

Hi!
I try to build docker container by Dockerfile in repo
"sudo docker build . "
And have error
"The command '/bin/sh -c apk add --no-cache $PACKAGES && make tools && make install' returned a non-zero code: 2
"
output.txt

what is the problem?

Question about redundant setting of config values

Hi,

Was just curious why these values are explicitly set, even though they're just being set to the default values?

gaia/cmd/gaiad/main.go

Lines 38 to 40 in 9c82ff2

config.SetBech32PrefixForAccount(sdk.Bech32PrefixAccAddr, sdk.Bech32PrefixAccPub)
config.SetBech32PrefixForValidator(sdk.Bech32PrefixValAddr, sdk.Bech32PrefixValPub)
config.SetBech32PrefixForConsensusNode(sdk.Bech32PrefixConsAddr, sdk.Bech32PrefixConsPub)

see config.go#L23 for the current defaults.

zondax/hid compilation_terminated

Hi!
I have such error while make install gaia:
/zondax/[email protected]/hid_enabled.go:22:23: fatal error: sys/poll.h: No such file or directory

go version go1.12.7 linux/amd64

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Stable tagging for docker images

Proposal
We may want to introduce stable tagging for our docker images once we get stable enough, to ease clients developer with updates if they choose to receive them:

  • Every breaking change means major version update
  • minor add features or fixes
  • patch increase are mainly bigfix

Something similar to:
StableTagging

Current Situation

Given
we push a tag as new version i.e. 0.34.3
Then
We push its exact tag on Docker Hub as tendermint/gaia:0.34.4 and nothing else

Desired Outcome

Given
we push a tag as new version i.e. 0.34.3
Then

  1. We push its exact tag on Docker Hub as tendermint/gaia:0.34.4
  2. We update or add its minor tag reference tendermint/gaia:0.34 to the latest available for this minor
  3. We update or add its major tag reference tendermint/gaia:0 to the latest available for this major

We don't need to check if the tags already exists for step 2 and 3 as if they exists they will be overridden, otherwise created.

Ideally this new tagging system should occur (it can be beneficial only) when we are mature enough to stop adding breaking changes inside minor / patches versions, so the image can be used by clients without the need for them to change their implementations at all, at most they can add interfaces to new features in some minor release - we probably need team agreement here, this is my typical view of projects

require mod missing in cosmos-sdk

Summary of Bug

make build failure due to missing require in go.mod
github.com/cosmos/cosmos-sdk v0.28.2-0.20190606154315-d6cb24e849a3

verified in cosmos-sdk, is has no tag v0.28.2

Version

Steps to Reproduce


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Regression between 0.34.3 and 0.34.4 for displaying keys from gaiacli

Summary of Bug

Linked to https://github.com/cosmos/ledger-cosmos/issues/144

Displaying my key on the device with gaiacli works on v0.34.3 but not on v0.34.4
gaiacli version
0.34.3-107-g829ce17d0
gaiacli keys show -d zaki-ledger
NAME: TYPE: ADDRESS: PUBKEY:
zaki-ledger ledger xxx xxx
Keys is displayed on the ledger

gaiacli version
0.34.4
NAME: TYPE: ADDRESS: PUBKEY:
zaki-ledger ledger xxx xxx
ERROR: [APDU_CODE_INS_NOT_SUPPORTED] Instruction code not supported or invalid
Key is not displayed on the ledger.

Environment info:

Nano S
Cosmos App V1.5
Mac OS


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Searching transactions returns last page when requested page greater than last page

Summary of Bug

When searching transactions using the gaia-lite GET /txs API, the last page is returned when requesting any page greater than the last.

Steps to Reproduce

Request example with the last page of results (page 3 at the time of writing):

curl -X GET "https://stargate.cosmos.network/txs?recipient=cosmos16qh8jr78hmpq6l8kca84ck2wxdv8qg4vrz9q7v&page=3&limit=5" -H  "accept: application/json"
[{"height":"1076154","txhash":"9C2FAFD33C626ECDAA511FE6EB747A6CA38569F692AA2244AC54E427FF28C106","raw_log":"[{\"msg_index\":\"0\",\"success\":true,\"log\":\"\"}]","logs":[{"msg_index":"0","success":true,"log":""}],"gas_wanted":"32066","gas_used":"27864","tags":[{"key":"action","value":"send"},{"key":"sender","value":"cosmos18xgyce245tqvqj24v9pesst6s3fpqzy9jmv9yy"},{"key":"recipient","value":"cosmos16qh8jr78hmpq6l8kca84ck2wxdv8qg4vrz9q7v"}],"tx":{"type":"auth/StdTx","value":{"msg":[{"type":"cosmos-sdk/MsgSend","value":{"from_address":"cosmos18xgyce245tqvqj24v9pesst6s3fpqzy9jmv9yy","to_address":"cosmos16qh8jr78hmpq6l8kca84ck2wxdv8qg4vrz9q7v","amount":[{"denom":"uatom","amount":"1000000"}]}}],"fee":{"amount":[{"denom":"uatom","amount":"5000"}],"gas":"32066"},"signatures":[{"pub_key":{"type":"tendermint/PubKeySecp256k1","value":"AvemriqNXK19XW9fFHRlWJ0i+5t2oFLNIPwxzdvmz3Tx"},"signature":"lDSLnkveqdv2uQYlzvbGYcc5rTqdGQ7617RwqUelvkM5Oj/u78kE20OFXch1Ef/RkRDdkFv1/FLVdBG8tx0CGA=="}],"memo":""}},"timestamp":"2019-07-17T13:32:05Z"}]

Request example for page 4, we get the same result set:

curl -X GET "https://stargate.cosmos.network/txs?recipient=cosmos16qh8jr78hmpq6l8kca84ck2wxdv8qg4vrz9q7v&page=4&limit=5" -H  "accept: application/json"
[{"height":"1076154","txhash":"9C2FAFD33C626ECDAA511FE6EB747A6CA38569F692AA2244AC54E427FF28C106","raw_log":"[{\"msg_index\":\"0\",\"success\":true,\"log\":\"\"}]","logs":[{"msg_index":"0","success":true,"log":""}],"gas_wanted":"32066","gas_used":"27864","tags":[{"key":"action","value":"send"},{"key":"sender","value":"cosmos18xgyce245tqvqj24v9pesst6s3fpqzy9jmv9yy"},{"key":"recipient","value":"cosmos16qh8jr78hmpq6l8kca84ck2wxdv8qg4vrz9q7v"}],"tx":{"type":"auth/StdTx","value":{"msg":[{"type":"cosmos-sdk/MsgSend","value":{"from_address":"cosmos18xgyce245tqvqj24v9pesst6s3fpqzy9jmv9yy","to_address":"cosmos16qh8jr78hmpq6l8kca84ck2wxdv8qg4vrz9q7v","amount":[{"denom":"uatom","amount":"1000000"}]}}],"fee":{"amount":[{"denom":"uatom","amount":"5000"}],"gas":"32066"},"signatures":[{"pub_key":{"type":"tendermint/PubKeySecp256k1","value":"AvemriqNXK19XW9fFHRlWJ0i+5t2oFLNIPwxzdvmz3Tx"},"signature":"lDSLnkveqdv2uQYlzvbGYcc5rTqdGQ7617RwqUelvkM5Oj/u78kE20OFXch1Ef/RkRDdkFv1/FLVdBG8tx0CGA=="}],"memo":""}},"timestamp":"2019-07-17T13:32:05Z"}]

Expected behaviour is to get an empty array or an error.

Setting up a private network

To me it doesn't look like this repository sets up a proper network. In the /network folder I see all the ansible and terraform work that has been done but from what I can see the nodes will never connect to each other.

So I run make validators-start or make fullnodes-start with the configured number of servers per az (availability zone) and number of az's... let's pretend two az's and one server in each.

How do these servers know about each other? I can't see anything editing the persistent_peers entry in the config.toml file.

Proposal: move CLI tests into modules

Summary

Move CLI tests into the SDK modules they refer to.

Problem Definition

As an SDK user, I'd like to be able to reuse the CLI tests in my own zone. Currently I'm just copying them into the Regen Ledger code base and tweaking them for our CLI tools.

Proposal

  • create a generic CLI test utility in Cosmos SDK that can be used for any module
  • move CLI tests from Gaia into the modules they refer to in Cosmos SDK where possible so that other zones can compose they own CLI test suite

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Problems: replace github.com/cosmos/cosmos-sdk => /path/to/clone/cosmos-sdk to go.mod

ubuntu:~/gospace/src/github.com/cosmos/gaia$ make clean build
go: parsing /path/to/clone/cosmos-sdk/go.mod: open /path/to/clone/cosmos-sdk/go.mod: no such file or directory
go: error loading module requirements
rm -rf snapcraft-local.yaml build/
--> Ensure dependencies have not been modified
go: parsing /path/to/clone/cosmos-sdk/go.mod: open /path/to/clone/cosmos-sdk/go.mod: no such file or directory
go: error loading module requirements
Makefile:106: recipe for target 'go.sum' failed
make: *** [go.sum] Error 1
My cosmos-sdk path is : $HOME/gospace/src/github.com/cosmos/cosmos-sdk

Setting the location for the chain when setting up full node

Hi everyone,

I am in the process of setting up a full node, but I don't seem to be able to find a configuration for where the entire chain will be stored when downloading. My server is only around 60GB so it will need to storage the chain on an external storage system.

It does not seem to mention anything here:
https://github.com/cosmos/gaia/blob/master/docs/join-mainnet.md
So I am assuming it just stores the chain in the default place where the gaia is installed (i.e the main server)

Thanks!

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.