Browse Source

types: fix genesis.AppStateJSON

pull/1377/head
Ethan Buchman 7 years ago
parent
commit
9bf5862def
3 changed files with 12 additions and 6 deletions
  1. +8
    -2
      CHANGELOG.md
  2. +2
    -2
      types/genesis.go
  3. +2
    -2
      version/version.go

+ 8
- 2
CHANGELOG.md View File

@ -25,6 +25,12 @@ BUG FIXES:
- Graceful handling/recovery for apps that have non-determinism or fail to halt
- Graceful handling/recovery for violations of safety, or liveness
## 0.17.1 (March 27th, 2018)
BUG FIXES:
- [types] Actually support `app_state` in genesis as `AppStateJSON`
## 0.17.0 (March 27th, 2018)
BREAKING:
@ -32,7 +38,6 @@ BREAKING:
IMPROVEMENTS:
- [all] renamed `dummy` (`persistent_dummy`) to `kvstore` (`persistent_kvstore`) (name "dummy" is deprecated and will not work in the next breaking release)
- [config] exposed `auth_enc` flag to enable/disable encryption
- [docs] note on determinism (docs/determinism.rst)
- [genesis] `app_options` field is deprecated. please rename it to `app_state` in your genesis file(s). `app_options` will not work in the next breaking release
- [p2p] dial seeds directly without potential peers
@ -43,11 +48,12 @@ IMPROVEMENTS:
- [spec] various improvements
- switched from glide to dep internally for package management
- [wire] prep work for upgrading to new go-wire (which is now called go-amino)
- [types/priv_validator] new format and socket client, allowing for remote signing
FEATURES:
- [config] exposed `auth_enc` flag to enable/disable encryption
- [config] added the `--p2p.private_peer_ids` flag and `PrivatePeerIDs` config variable (see config for description)
- [rpc] added `/health` endpoint, which returns empty result for now
- [types/priv_validator] new format and socket client, allowing for remote signing
BUG FIXES:
- [consensus] fix liveness bug by introducing ValidBlock mechanism


+ 2
- 2
types/genesis.go View File

@ -28,7 +28,7 @@ type GenesisDoc struct {
ConsensusParams *ConsensusParams `json:"consensus_params,omitempty"`
Validators []GenesisValidator `json:"validators"`
AppHash cmn.HexBytes `json:"app_hash"`
_AppState json.RawMessage `json:"app_state,omitempty"`
AppStateJSON json.RawMessage `json:"app_state,omitempty"`
AppOptions json.RawMessage `json:"app_options,omitempty"` // DEPRECATED
}
@ -38,7 +38,7 @@ func (genDoc *GenesisDoc) AppState() json.RawMessage {
if len(genDoc.AppOptions) > 0 {
return genDoc.AppOptions
} else {
return genDoc._AppState
return genDoc.AppStateJSON
}
}


+ 2
- 2
version/version.go View File

@ -2,12 +2,12 @@ package version
const Maj = "0"
const Min = "17"
const Fix = "0"
const Fix = "1"
var (
// Version is the current version of Tendermint
// Must be a string because scripts like dist.sh read this file.
Version = "0.17.0"
Version = "0.17.1"
// GitCommit is the current HEAD set using ldflags.
GitCommit string


Loading…
Cancel
Save