cosmos-sdk/store/types
Aditya d247184157
Revert Capabilities on Failed Tx (#5999)
Reintroduce memKVStore to keep track of fwd and reverse mappings.

On reverse mapping, rather than store a mapping to marshalled
capability; we store the index.

capability.Keeper and all scopedKeeper have access to a capability
map that maps index to the capability pointer.

This is done to make sure that all writes to memKVStore get reverted
on a fail tx, while also allowing GetCapability to retrieve the original
memory pointer from the go map.

Go map must be accessed only by first going through the
memKVStore. SInce writes to go map cannot be automatically
reverted on tx failure, it gets cleaned up on failed GetCapability calls.

Closes: #5965
2020-04-16 18:42:13 +02:00
..
gas.go lint add deadcode unused (#4606) 2019-06-21 17:18:01 +02:00
gas_test.go fix DiffKVStores(), store/types gets 100% coverage (#5730) 2020-03-02 00:27:03 +00:00
iterator.go Merge PR #5435: Added iterator that allows to read only requested values 2019-12-26 10:33:34 -05:00
iterator_test.go Merge PR #5435: Added iterator that allows to read only requested values 2019-12-26 10:33:34 -05:00
pruning.go Merge PR #5579: Fix Restart application issue 2020-02-06 15:58:32 -05:00
pruning_test.go Increase coverage across the store package (#5727) 2020-02-28 23:05:28 +00:00
store.go Revert Capabilities on Failed Tx (#5999) 2020-04-16 18:42:13 +02:00
store_test.go fix DiffKVStores(), store/types gets 100% coverage (#5730) 2020-03-02 00:27:03 +00:00
utils.go x/staking: skip HistoricalInfo in simulations (#5949) 2020-04-07 22:33:30 +00:00
utils_test.go fix DiffKVStores(), store/types gets 100% coverage (#5730) 2020-03-02 00:27:03 +00:00
validity.go Store Refactor 1 (#2985) 2019-02-01 17:03:09 -08:00
validity_test.go fix DiffKVStores(), store/types gets 100% coverage (#5730) 2020-03-02 00:27:03 +00:00