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

State file format #358

Closed
Elecon-rou opened this issue Jul 12, 2021 · 1 comment
Closed

State file format #358

Elecon-rou opened this issue Jul 12, 2021 · 1 comment

Comments

@Elecon-rou
Copy link

Is state file format supposed to be different from validator's ?

  • tmkms:
{
  "height": "222222",
  "round": "2",
  "step": 2,
  "block_id": {
    "hash": "SOMEHASH",
    "part_set_header": {
      "total": 3,
      "hash": "SOMEHASH"
    }
  }
}
  • cosmos-sdk v0.42.1 app:
{
  "height": "2222222",
  "round": 2,
  "step": 2,
  "signature": "SOMESIGNATURE==",
  "signbytes": "SIGNBYTES"
}

If so how on could convert formats between each other automaticaly ?

@tony-iqlusion
Copy link
Member

This structure is defined in the tendermint crate:

https://docs.rs/tendermint/0.20.0/tendermint/consensus/state/struct.State.html

Discrepancies with the Go implementation of Tendermint should be filed here:

https://github.com/informalsystems/tendermint-rs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants