Commit Graph

65 Commits

Author SHA1 Message Date
Christopher Goes
f8e44b5b00 Error codespacing (#809)
* Initial codespacing layout (ref #766)
* Add codespace to Router (ref #766)
* Implement Codespacer and update modules
* Default codespaces, testcases
* Update error formatting, codespacer tests
* Add RegisterOrPanic testcase
* Update CHANGELOG
2018-04-17 19:16:21 -07:00
Jae Kwon
d530ee2abc Fix MountStoreWithDB(); Bump to 0.15.0-rc0 2018-04-13 02:04:31 -07:00
Jae Kwon
186ee72c0c Update documentation 2018-04-12 16:22:44 -07:00
Jae Kwon
5883c0e942 Support namespacing within RMS db 2018-04-12 15:56:41 -07:00
Sunny Aggarwal
348e28a4b5
Merge branch 'develop' into sunny/IAVLsubspace 2018-04-05 22:02:21 +02:00
Sunny Aggarwal
f10983ba06 address review 2018-04-05 21:54:30 +02:00
Christopher Goes
0888096677
Replace Result.ToQuery with Error.QueryResult (closes #765) 2018-04-03 22:15:52 +02:00
Sunny Aggarwal
c441ccdf01 added more test 2018-04-01 18:00:28 +02:00
Sunny Aggarwal
d98ea3764f it works 2018-04-01 00:26:00 +02:00
Sunny Aggarwal
3f1362f838 why u no work 2018-04-01 00:02:29 +02:00
Sunny Aggarwal
271d240897 trying to figure it out 2018-03-31 19:30:25 +02:00
Sunny Aggarwal
56f28145dd working on it 2018-03-30 22:36:04 +02:00
Ethan Buchman
f81b6ec51d update dep 2018-03-23 00:32:57 -04:00
Ethan Buchman
723889570e ErrTxParse->ErrTxDecode; check for empty bytes in account and tx 2018-03-21 02:44:17 +01:00
Sunny Aggarwal
7e8c1e3394 added Substore 2018-03-19 22:46:35 +01:00
Ethan Buchman
630a5fe579 revert to old go-wire 2018-03-02 04:24:07 -05:00
Jae Kwon
7f4bcff3cf Add GetCommitKVStore and CommitKVStore 2018-02-21 09:49:33 -05:00
Adrian Brink
b457a4363f
Add directive to Sprintf call to pass make test on go1.10 2018-02-18 14:09:22 +01:00
Ethan Buchman
f6cea66e2e test and fix InitChain 2018-02-17 16:32:30 -05:00
Ethan Buchman
d48c819207 minor things 2018-02-06 17:20:29 -05:00
Ethan Frey
b21081c83a Test query routing in rootMultiStore 2018-02-06 17:20:29 -05:00
Ethan Frey
c73f08c845 Make GetStoreByName private, as only needed by MultiStore Query 2018-02-06 17:20:29 -05:00
Ethan Frey
44c39043f1 Test iavlStore query 2018-02-06 17:20:29 -05:00
Ethan Frey
31f00742e5 Add query to iavl store 2018-02-06 17:20:29 -05:00
Ethan Frey
512c601adc Add tests for query path routing 2018-02-06 17:20:29 -05:00
Ethan Frey
bc325c4d1c Add Query routing to rootMultiStore 2018-02-06 17:20:29 -05:00
Ethan Frey
57b28d95de Add GetStoreByName to MultiStore to help with Query lookups 2018-02-06 17:20:29 -05:00
Jae Kwon
c6bad0b325 Add first Basecoin test harness 2018-01-26 06:54:03 -08:00
Jae Kwon
be665d53fe Substore->Store; BaseApp has db; Mapper 2018-01-22 06:20:46 -08:00
Jae Kwon
68e04e629a Do not use global wire.Marshal* 2018-01-21 19:48:19 -08:00
Jae Kwon
14a0dce920
Refactor basecoin example (#332)
Refactor basecoin example
2018-01-17 16:59:40 -08:00
Ethan Buchman
48a864f93d store: fix tests 2018-01-15 20:10:46 -05:00
Ethan Buchman
381424460c basecoin compiles 2018-01-14 22:49:57 -05:00
Ethan Buchman
5e46eea616 types and store compile 2018-01-12 19:17:17 -08:00
Ethan Buchman
2c1d5332be make test/install 2018-01-06 15:53:31 -05:00
Ethan Buchman
1d07f88867 new basecoin example 2018-01-03 20:20:21 -05:00
Jae Kwon
657820372c App compiles. Ready to build on it 2017-12-26 17:04:48 -08:00
Jae Kwon
1afab45cf5 Move store/types.go to types/store.go and alias 2017-12-21 20:05:41 -08:00
Jae Kwon
cd278dea6c Fix dependency in store 2017-12-21 19:48:29 -08:00
Jae Kwon
45c2e9c30b curVersion -> nextVersion 2017-12-21 03:44:27 -08:00
Jae Kwon
6f9a08d921 Conform to new tmlibs Iterator 2017-12-21 03:44:04 -08:00
Jae Kwon
1ec9e2e0ae Commit, and working on InitState/SetOpetion 2017-12-21 03:41:40 -08:00
Jae Kwon
d681049023 CommitMultiStore, and SetCommitStoreLoader->SetSubstoreLoader 2017-12-21 03:39:00 -08:00
Ethan Buchman
72b0ed004b wip: tests and fixes for kvstore iteration 2017-12-21 03:31:33 -08:00
Jae Kwon
eb1f877d3d
KVStore refactor (#303)
I removed that stuff about cwwMutex and CacheWraps expiring. It was unnecessary complexity given that users need not write concurrent logic. If you have 2 CacheKVStores and you Write on one and later you Write on the other one, they will both write, and strange things may happen. But that’s OK, it’s kinda the expected (unsurprising) behavior. And now the code is much simpler.

Also I got rid of IterKVStore. It’s not necessary to distinguish them because we can have KVStore.Iterator() return nil or panic or an empty iterator. Further simplification…

KVStore.CacheKVStore() doesn’t exist. No need, just call NewCacheKVStore(parent).

Originally I wanted the .CacheKVStore() method because you can make the implementor be responsible for ensuring that returned CacheWraps don’t trample each other. But as written previously this complicates the code a lot more and it isn’t strictly necessary. It’s a kind of magic that maybe should just be avoided.

sdk.Iterator is dbm.Iterator. The plan is to conservatively add more aliases into the “sdk” namespace.

GetError() is removed from Iterator. We need to just panic to be consistent. More simplification.
2017-12-12 20:13:51 -08:00
Ethan Buchman
1a28c4b89c store: add some tests, fix deadlocks (#297) 2017-12-11 23:36:50 -08:00
Jae Kwon
af7a621440
cacheMergeIterator (#298) 2017-12-11 23:30:44 -08:00
Jae Kwon
04fcc6193c
iavlIterator using goroutine (#295) 2017-12-10 00:24:55 -08:00
Jae Kwon
f4484ab3b5 Implementing iavlStore... 2017-12-09 12:35:51 -08:00
Jae Kwon
a47da2c8e1 store/* fixes 2017-12-04 00:56:25 -08:00