Commit Graph

1051 Commits

Author SHA1 Message Date
Jae Kwon
62f736fbd0 Update comment on usage of sdkErrors 2017-12-21 17:56:57 -08:00
Jae Kwon
5c06e56c24 WIP: Implementing App w/ tests 2017-12-21 03:44:59 -08:00
Jae Kwon
45c2e9c30b curVersion -> nextVersion 2017-12-21 03:44:27 -08:00
Jae Kwon
00d73c397c BaseApp -> App and cleanup, WIP 2017-12-21 03:44:21 -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
Jae Kwon
6b5f08e918 Fix errors/ and x/coin/errors.go 2017-12-21 03:31:33 -08:00
Ethan Buchman
a9b2636439 Coin (#312)
* wip: tests and fixes for kvstore iteration
* update for latest tmlibs
* types compiles
* x/coin almost compiles
* x/coin: move things out of the way so it builds
* rebase fixes
* update glide
* add test for ChainDecorators
2017-12-21 03:31:33 -08:00
Ethan Buchman
72b0ed004b wip: tests and fixes for kvstore iteration 2017-12-21 03:31:33 -08:00
Jae Kwon
66e6225d13 Update glide file 2017-12-19 20:52:07 -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
Jae Kwon
1d207a2a5e Fixing store/* bugs... 2017-12-04 00:23:10 -08:00
Jae Kwon
0917fc3de7 rootMultiStore holds lastCommitID 2017-12-03 23:17:10 -08:00
Jae Kwon
8db15fe3ef Committer -> CommitStore; CacheWrap() 2017-12-03 22:55:15 -08:00
Ethan Buchman
51f522f8d8 fix some compile errors 2017-12-03 21:41:02 -08:00
Ethan Buchman
7a9014fcaf fixes from my review 2017-12-03 21:41:02 -08:00
Ethan Frey
8550e79665 If CacheWrap() must support Write() enforce that with interface 2017-12-03 21:41:02 -08:00
Ethan Frey
1d5fdfa7c2 Try to update deps, but borken 2017-12-03 21:41:02 -08:00
Ethan Frey
e6f1737a62 Implement IterKVStore/Iterator with TODO 2017-12-03 21:41:02 -08:00
Ethan Frey
dc3aa6d92a IAVLStore implements KVStore 2017-12-03 21:41:02 -08:00
Ethan Frey
6a410607b8 Added CommitterLoader for IAVLStore 2017-12-03 21:41:02 -08:00
Jae Kwon
a2a1151a4f
Unify CheckTx and DeliverTx (#286)
Unify CheckTx and DeliverTx
2017-12-03 21:25:37 -08:00
Jae Kwon
8c250cc840 Move Queue to attic 2017-12-01 14:08:37 -08:00
Jae Kwon
6a3a37d5a6 Update store types to new spec 2017-12-01 09:24:02 -08:00
Jae Kwon
0919737c00 ... 2017-12-01 09:17:23 -08:00
Jae Kwon
b96e4784ed Draft of new BaseApp 2017-12-01 09:10:17 -08:00
Jae Kwon
3474efc599 Cleanup multistore 2017-12-01 08:52:54 -08:00
Jae Kwon
ec31313bc2 Add errors 2017-11-29 21:27:03 -08:00
Jae Kwon
9eed008eed RootStore -> rootMultiStore 2017-11-29 07:58:09 -08:00
Jae Kwon
c01c38acd1 IAVLStore template 2017-11-29 03:08:32 -08:00
Jae Kwon
6e8e4331ea ... 2017-11-26 20:29:17 -08:00
Jae Kwon
458fba22d3 Update decorators/handler/results.go add tx_msg/signature.go 2017-11-26 14:14:03 -08:00
Jae Kwon
6a9b8c3a92 Sweeping util/* 2017-11-26 02:19:17 -08:00
Jae Kwon
fdc7834dae Bare auth 2017-11-25 01:36:45 -08:00
Jae Kwon
83b43f3378 delete auth/tx 2017-11-09 01:19:07 -05:00
Jae Kwon
7750a698f9 Add basic types Account and Msg 2017-11-03 16:43:04 -05:00
Jae Kwon
df325ceaef Move docs 2017-10-31 18:02:16 -05:00
Jae Kwon
561d77cae0 remove errors module 2017-10-31 17:58:12 -05:00
Jae Kwon
8d305039c8 modules -> x 2017-10-31 17:51:44 -05:00
Jae Kwon
2b84b2cda2 Remove most of state/* 2017-10-31 15:45:57 -05:00
Ethan Frey
f4b7a6ce40 Updated tx handling for eyes server 2017-10-25 19:56:48 +02:00
Ethan Frey
850796bad5 eyes example compiles - but doesnt work 2017-10-25 19:56:48 +02:00
Ethan Frey
5efbbc3237 One step for module eyes commands compiling 2017-10-25 19:56:48 +02:00
Ethan Frey
4bff480440 app package compiles 2017-10-25 19:56:48 +02:00