cosmos-sdk/types
Daniel Wedul 16e5d1a47b
feat(types): Deprecate the DBBackend variable in favor of new app-db-backend config entry (#11188)
* [10948]: Add changelog entry.

* [10948]: Deprecate the types.DBBackend variable and the NewLevelDB function. Create a NewDB function to replace them.

* [10948]: Add a DBBackend string to the simulation config and a flag for setting it. Update the simulation setup to use that instead of the compile-time DBBackend variable.

* [10948]: Update the mock app creator to use the NewDB function. Not sure what to do about the db backend in that case though.

* [10948]: Update changelog to reflect new db-backend field name.

* [10948]: Use the tendermint db-backend type for the snapshot db.

* [10948]: Update the last use of NewLevelDB by adding a parameter to openDB and uppdating calls to that to provide the db type to use.

* [10948]: Upddate the NewDB function to also have a default db backend type if an empty string is provided there.

* [10948]: Remove the new TODO in mock.NewApp. After looking through it's uses, there doesn't seem to be any desire to change it, and there's no easy way to communicate it.

* [10948]: Enhance the NewDB defer function to also add info to any err that is being returned.

* [10948]: Add some unit tests for NewDB.

* [10948]: Lint fixes.

* [10948]: Add a changelog entry to the deprecated section.

* [10948]: Update the makefile to no longer set the types.DBBackend value.

* [10948]: Use memdb for the mock app instead of goleveldb. I know it was a goleveldb before, but for a mock app, a memdb feels like a better choice (assuming 'mock' and 'mem' mean what I assume they mean).

* [10948]: Fix the store benchmark tests (had some index-out-of-range issues).

* [10948]: Fix cachekv store bench test calling iter.Key() before checking iter.Valid().

* [10948]: Remove the panic recovery from types.NewDB since dbm.NewDB returns an error now (it didn't originally, when NewLevelDB was first written).

* [10948]: Add changlog entry indicationg an API breaking change due to the DBBackend change.

* [10948]: Get rid of the types.NewDB function in favor of just using the tm-db version of it.

* [10948]: Fix Update the codeql-analysis github action to use go v1.17.

* [10948]: Add config file option for the app db backend type.

* [10948]: Adjust the comment on the app-db-backend config entry to clarify fallback behavior.

* [10948]: Add a default of GoLevelDBBackend to GetAppDBBackend. The old DBBackend variable defaulted to that, and some unit tests assume that behavior still exists.

* [10948]: Add the missing quotes around the app-db-backend value.

* [10948]: Small tweak to the changelog's deprecated entry.

* Add the go version declaration back into the codeql-analysis github action.

* [10948]: Update new use of openDB.

* [10948]: Put a brief delay after closing the test network. Hopefully that helps with address-in-use and non-empty directory errors.

Co-authored-by: Marko <marbar3778@yahoo.com>
2022-03-18 10:26:20 +01:00
..
address docs: Improve markdownlint configuration (#11104) 2022-02-10 12:07:01 +00:00
bech32 chore: move server.GenerateCoinKey and server.GenerateSaveCoinKey to … (#10957) 2022-01-18 15:24:16 +00:00
errors chore: deprecate types/errors aliases (#11380) 2022-03-16 10:16:50 +00:00
grpc
kv fix: check store keys length before accessing (#9639) 2021-07-08 13:29:12 +02:00
module docs: improve RegisterMigration docs (#11225) 2022-02-18 12:42:47 +00:00
msgservice feat: add message option extension to signal msg signers in a language agnostic way (#10977) 2022-01-28 17:01:56 +00:00
query feat(orm)!: tweak API to allow pagination in generated code (#11079) 2022-02-02 16:12:11 -05:00
simulation feat(types): Deprecate the DBBackend variable in favor of new app-db-backend config entry (#11188) 2022-03-18 10:26:20 +01:00
tx docs: correct comment for SingleSignatureData.Signature (#11326) 2022-03-07 11:27:11 +01:00
abci.go
abci.pb.go fix: Fix `raw_log` when ABCIMessageLog.MsgIndex is 0 (#11147) 2022-02-12 20:29:42 +00:00
address.go refactor: Implementing sigs.k8s.io YAML to remove .proto yaml annotations (#9780) 2021-09-24 14:37:34 +00:00
address_race_test.go
address_test.go refactor: Implementing sigs.k8s.io YAML to remove .proto yaml annotations (#9780) 2021-09-24 14:37:34 +00:00
bench_test.go
codec.go
coin.go feat: min and max operators on coins (#11200) 2022-02-22 23:50:41 +00:00
coin.pb.go feat: Introduce Cosmos Scalars (#9933) 2021-09-21 09:46:29 +00:00
coin_benchmark_test.go test: fix BenchmarkCoinsAdditionIntersect panic (#9904) 2021-08-11 02:13:17 -07:00
coin_internal_test.go
coin_test.go feat: min and max operators on coins (#11200) 2022-02-22 23:50:41 +00:00
config.go
config_test.go
context.go fix(types): make UnwrapSDKContext work after context.WithValue (#11341) 2022-03-11 14:49:17 -05:00
context_test.go fix(types): make UnwrapSDKContext work after context.WithValue (#11341) 2022-03-11 14:49:17 -05:00
dec_coin.go feat: min and max operators on coins (#11200) 2022-02-22 23:50:41 +00:00
dec_coin_test.go fix: Make MulDecTruncate() return nil DecCoins when multiplier is 0 (#10687) 2022-01-12 18:26:09 +00:00
decimal.go Use correct bit length constant for sdk.Dec (#11332) 2022-03-08 22:56:44 +01:00
decimal_internal_test.go
decimal_test.go Use correct bit length constant for sdk.Dec (#11332) 2022-03-08 22:56:44 +01:00
denom.go style: lint go and markdown (#10060) 2021-10-30 13:43:04 +00:00
denom_internal_test.go
events.go chore: bump TM to v0.35.0 release candidate (#10210) 2021-11-16 11:24:38 -08:00
events_test.go chore: bump TM to v0.35.0 release candidate (#10210) 2021-11-16 11:24:38 -08:00
handler.go
handler_test.go refactor!: Keyring migration (#9695) 2021-09-20 12:02:15 +00:00
int.go types: fix nil pointer panic on `NewIntFromBigInt` (#9627) 2021-07-05 08:36:35 -04:00
int_internal_test.go fix: Handle MAX_INT_256 (#9511) 2021-06-16 14:18:02 +00:00
int_test.go types: fix nil pointer panic on `NewIntFromBigInt` (#9627) 2021-07-05 08:36:35 -04:00
invariant.go
invariant_test.go
proto.go
queryable.go
result.go refactor: middleware refactor to change tx.Handler interface (#10527) 2021-12-02 06:54:38 +00:00
result_test.go refactor: middleware refactor to change tx.Handler interface (#10527) 2021-12-02 06:54:38 +00:00
router.go
router_test.go
staking.go
staking_test.go
store.go refactor: Remove store type aliases (#10295) 2021-10-04 16:36:38 +00:00
store_internal_test.go refactor: Remove store type aliases (#10295) 2021-10-04 16:36:38 +00:00
store_test.go refactor: Remove store type aliases (#10295) 2021-10-04 16:36:38 +00:00
tx_msg.go refactor!: change GetSigners return type to []sdk.AccAddress (#9915) 2021-08-13 15:34:00 +00:00
tx_msg_test.go refactor!: change GetSigners return type to []sdk.AccAddress (#9915) 2021-08-13 15:34:00 +00:00
uint.go
uint_internal_test.go
uint_test.go
utils.go feat(types): Deprecate the DBBackend variable in favor of new app-db-backend config entry (#11188) 2022-03-18 10:26:20 +01:00
utils_test.go