-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: param store doesn't use gas kv #202
Conversation
Codecov Report
@@ Coverage Diff @@
## v2/develop #202 +/- ##
==============================================
- Coverage 53.51% 53.49% -0.02%
==============================================
Files 653 653
Lines 47384 47376 -8
==============================================
- Hits 25357 25345 -12
- Misses 19171 19177 +6
+ Partials 2856 2854 -2
|
} | ||
|
||
// Returns a transient store for modification | ||
func (s *Subspace) transientStore(ctx sdk.Context) sdk.KVStore { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As the function transientStore
is removed, it seems that the tKey
is also unused. we can remove it too. (However, API change has occurred, and consumer's additional action is required.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll remove it in other PR.
types/context.go
Outdated
// TransientStore fetches a TransientStore from the MultiStore. | ||
func (c Context) TransientStore(key StoreKey) KVStore { | ||
return gaskv.NewStore(c.MultiStore().GetKVStore(key), c.GasMeter(), stypes.TransientGasConfig()) | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think removing this function has no direct relevance to this PR. (although it is useless yet.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right. I will put this back and remove the TransientStore
in another PR at once.
Description
Param store does not use gas store any more.
Modified()
function of param store is not used anywhere. So I could removeModified()
function andTransientStore
from param store.closes: #XXXX
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerCodecov Report
in the comment section below once CI passes