From ed046966bdcf275e6d2b8b8a406940cf07c67a35 Mon Sep 17 00:00:00 2001 From: Marko Date: Wed, 16 Sep 2020 18:03:49 +0200 Subject: [PATCH] upgrading: state store change (#5364) ## Description Adding a section explaining the state store interface change. I wasn't aware this was used externally. Our infamous API strikes again. Screen Shot 2020-09-16 at 2 57 12 PM Closes: #XXX --- UPGRADING.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UPGRADING.md b/UPGRADING.md index d4fb827f1..caf4c189a 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -138,6 +138,8 @@ A field `State.InitialHeight` has been added to record the initial chain height, (not `0`) if starting from height `1`. This can be configured via the genesis field `initial_height`. +The state package has added a `Store` interface. All functions in [state/store.go](https://github.com/tendermint/tendermint/blob/56911ee35298191c95ef1c7d3d5ec508237aaff4/state/store.go#L42-L42) are now part of the interface. The interface returns errors on all methods and can be used by calling `state.NewStore(dbm.DB)`. + ### Privval All requests are now accompanied by the chainID from the network.