Conversation
Codecov Report
@@ Coverage Diff @@
## develop #2344 +/- ##
===========================================
- Coverage 58.82% 58.51% -0.31%
===========================================
Files 152 144 -8
Lines 9425 8213 -1212
===========================================
- Hits 5544 4806 -738
+ Misses 3511 3091 -420
+ Partials 370 316 -54 |
a43b50f to
80a4921
Compare
|
@mossid Do you want to rebase this? I still think the refactor is a great idea and would be happy to review (sorry it didn't happen sooner)! |
db4905a to
ab13269
Compare
218f495 to
bc2b7f7
Compare
|
@mossid Thanks for rebasing. Let's pair review this in person, maybe early next week. |
483ecfa to
e1bd6dd
Compare
alexanderbez
left a comment
There was a problem hiding this comment.
@mossid this PR is pretty hefty...I really don't know how to start as I'm sure I'll miss something. May I suggest perhaps breaking it up into sub PR (I, II, III, etc...) if possible?
Thoughts @ValarDragon?
| // CommitMultiStore. | ||
| func (app *BaseApp) SetCommitMultiStoreTracer(w io.Writer) { | ||
| app.cms.WithTracer(w) | ||
| app.cms.GetTracer().Writer = w |
There was a problem hiding this comment.
The initial API call was bad and that's my fault. Can we just do app.cms.SetTracer(w)?
| keyMain *sdk.KVStoreKey | ||
| keyAccount *sdk.KVStoreKey | ||
| keyStake *sdk.KVStoreKey | ||
| keyMain *sdk.IAVLStoreKey |
There was a problem hiding this comment.
Mhmmm, why did we rename these? This assumes IAVL usage, although it probably won't change for Gaia.
There was a problem hiding this comment.
I don't want us to have this key... an IAVLStore is a KVStore... no need to create key types for specific types of KVStores. In the future we may have other store types like HeapStores.
|
lol this PR is gigantic |
|
@mossid way out of date - please update, we should get this in |
|
Closing in favor of #2986 |
Closes: #2309
Targeted PR against correct branch (see CONTRIBUTING.md)
Linked to github-issue with discussion and accepted design OR link to spec that describes this work.
Wrote tests
Updated relevant documentation (
docs/)Added entries in
PENDING.mdwith issue #rereviewed
Files changedin the github PR explorergas.go,store.go, are moved tostore/types/importsstore/now and reexports types/functionsStoreTypeenum, insteadStoreKeys are dependent on concrete store implementationerrors.goto reduce dependencytraceWriter io.WriterandtraceContext TraceContextare merged intoTracermeter GasMeterandconfig GasConfigare merged intoGasTankFor Admin Use: