Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R4R: Support export at specific height #2792

Merged
merged 39 commits into from
Nov 15, 2018
Merged

Conversation

cwgoes
Copy link
Contributor

@cwgoes cwgoes commented Nov 13, 2018

Closes #2791

  • Linked to github-issue with discussion and accepted design OR link to spec that describes this work.
  • Wrote tests
  • Updated relevant documentation (docs/)
  • Added entries in PENDING.md with issue #
  • rereviewed Files changed in the github PR explorer

For Admin Use:

  • Added appropriate labels to PR (ex. wip, ready-for-review, docs)
  • Reviewers Assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

@cwgoes cwgoes added wip tooling dev tooling within the sdk labels Nov 13, 2018
@codecov
Copy link

codecov bot commented Nov 13, 2018

Codecov Report

Merging #2792 into develop will increase coverage by 0.07%.
The diff coverage is 34.37%.

@@             Coverage Diff             @@
##           develop    #2792      +/-   ##
===========================================
+ Coverage     56.6%   56.68%   +0.07%     
===========================================
  Files          156      131      -25     
  Lines         9836     8539    -1297     
===========================================
- Hits          5568     4840     -728     
+ Misses        3888     3366     -522     
+ Partials       380      333      -47

@cwgoes cwgoes changed the title WIP: Support export at specific height R4R: Support export at specific height Nov 13, 2018
@cwgoes cwgoes requested a review from zramsay as a code owner November 13, 2018 15:22
@alexanderbez alexanderbez removed the wip label Nov 14, 2018
* Fix Makefile targets dependencies
* Remove unnecessary build deps from install targets
* Create a rule for each tool
* Don't dep test_lint on tools
rigelrozanski and others added 3 commits November 14, 2018 11:58
Co-Authored-By: alexanderbez <alexanderbez@users.noreply.github.com>
Co-Authored-By: alexanderbez <alexanderbez@users.noreply.github.com>
Co-Authored-By: alexanderbez <alexanderbez@users.noreply.github.com>
@@ -13,9 +13,13 @@ import (
"path"
)

const (
flagHeight = "height"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed - I don't know if we want to import the client package from the server package though.

Maybe we should have a common "flags" package.

@@ -127,6 +127,21 @@ gaiacli status

View the status of the network with the [Cosmos Explorer](https://explorecosmos.network). Once your full node syncs up to the current block height, you should see it appear on the [list of full nodes](https://explorecosmos.network/validators). If it doesn't show up, that's ok--the Explorer does not connect to every node.

## Export State
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Likely going to run to a merge conflict here (docs PR)

Copy link
Member

@jackzampolin jackzampolin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pulled this down and was able to make localnet-start, let the network run for a while, export at a height (--height 10), stop the network, gaiad unsafe_reset_all each node, replace the genesis files for each node and restart the network. This gets a 👍 from me!

cwgoes and others added 8 commits November 14, 2018 19:20
[R4R] Slight cleanup of distribution specification
* Update docs/sdk/clients.md
* organize ADR directory like tendermint
* docs: move spec-proposals into spec/
* remove lotion, moved to website repo
* move getting-started to cosmos-hub, and voyager to website
* docs: move lite/ into clients/lite/
* move introduction/ content to website repo
* move resources/ content to website repo
* mv sdk/clients.md to clients/clients.md
* mv validators to cosmos-hub/validators
* move deprecated sdk/ content to _attic
* sdk/modules.md is duplicate with modules/README.md
* consolidate remianing sdk/ files into a single sdk.md
* move examples/ to docs/examples/
* mv docs/cosmos-hub to docs/gaia
* Add keys/accounts section to localnet docs
* error checking the API call
* added docs build trigger to circleci job
* Update contribuiting.md with new merge policy
@cwgoes cwgoes merged commit d40d767 into develop Nov 15, 2018
@cwgoes cwgoes deleted the cwgoes/export-at-height branch November 15, 2018 10:21
chillyvee pushed a commit to chillyvee/cosmos-sdk that referenced this pull request Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tooling dev tooling within the sdk
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants