Skip to content
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

feat: add param for gas per message byte #965

Merged

Conversation

rahulghangas
Copy link
Contributor

Adds gasPerMsgByte as params to the payment module.
Defines relevant stores and queries

Relevant changes in
proto/payment/*
x/payment/keeper*
x/payment/types/*

Note: To be merged after #893 and constants for default values can be defined in a cumulative PR

@codecov-commenter
Copy link

codecov-commenter commented Nov 6, 2022

Codecov Report

Merging #965 (33d824b) into main (22d366f) will decrease coverage by 2.66%.
The diff coverage is 8.77%.

@@            Coverage Diff             @@
##             main     #965      +/-   ##
==========================================
- Coverage   29.74%   27.08%   -2.67%     
==========================================
  Files          72       81       +9     
  Lines        8199     9067     +868     
==========================================
+ Hits         2439     2456      +17     
- Misses       5531     6375     +844     
- Partials      229      236       +7     
Impacted Files Coverage Δ
app/app.go 6.44% <0.00%> (-0.06%) ⬇️
app/malleate_txs.go 71.87% <ø> (ø)
app/parse_txs.go 64.00% <ø> (ø)
app/process_proposal.go 0.00% <ø> (ø)
app/test_util.go 73.77% <ø> (ø)
x/blob/handler.go 0.00% <ø> (ø)
x/blob/keeper/msg_server.go 0.00% <ø> (ø)
x/blob/module.go 3.70% <ø> (ø)
x/blob/types/builder_options.go 41.26% <ø> (ø)
x/blob/types/events.go 0.00% <ø> (ø)
... and 34 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@rach-id
Copy link
Member

rach-id commented Nov 6, 2022

I guess this PR depends on this one #893, right?

@rahulghangas
Copy link
Contributor Author

I guess this PR depends on this one #893, right?

Yes, a review makes sense after #893 is merged

@evan-forbes
Copy link
Member

I know we'll merge #893 soon, but converting to a draft until then as this PR has many duplicate changes and shouldn't be reviewed or merged until its predecessor is

@evan-forbes evan-forbes marked this pull request as draft November 8, 2022 00:49
@rahulghangas rahulghangas marked this pull request as ready for review November 10, 2022 16:12
rach-id
rach-id previously approved these changes Nov 10, 2022
Copy link
Member

@rach-id rach-id left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utAck.
Left an error message fix.

x/blob/types/params.go Outdated Show resolved Hide resolved
Copy link
Member

@evan-forbes evan-forbes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left one comment that could be addressed later, otherwise LGTM

proto/blob/params.proto Outdated Show resolved Hide resolved
@rahulghangas
Copy link
Contributor Author

rahulghangas commented Nov 11, 2022

Change for removing const and using param in followup PR that addresses #1001

Copy link
Member

@evan-forbes evan-forbes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK LGTM

@rahulghangas rahulghangas merged commit 8204e41 into celestiaorg:main Nov 11, 2022
@rahulghangas rahulghangas deleted the feat/app-payment-gas-param branch November 11, 2022 16:30
rach-id pushed a commit to rach-id/celestia-app that referenced this pull request Nov 16, 2022
Adds `gasPerMsgByte` as params to the payment module. 
Defines relevant stores and queries

Relevant changes in 
`proto/payment/*`
`x/payment/keeper*`
`x/payment/types/*`

- [x] finished 1st part of celestiaorg#949

Note: To be merged after celestiaorg#893 and constants for default values can be
defined in a cumulative PR
rach-id pushed a commit to rach-id/celestia-app that referenced this pull request Nov 16, 2022
Adds `gasPerMsgByte` as params to the payment module. 
Defines relevant stores and queries

Relevant changes in 
`proto/payment/*`
`x/payment/keeper*`
`x/payment/types/*`

- [x] finished 1st part of celestiaorg#949

Note: To be merged after celestiaorg#893 and constants for default values can be
defined in a cumulative PR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants