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: charge gas per message shares #946

Merged
merged 3 commits into from
Nov 8, 2022

Conversation

rootulp
Copy link
Collaborator

@rootulp rootulp commented Nov 2, 2022

Closes #431

@rootulp rootulp self-assigned this Nov 2, 2022
@rootulp rootulp marked this pull request as ready for review November 3, 2022 08:03
payForDataGasDescriptor = "pay for data"

// GasPerMsgByte is the amount of gas to charge per byte of message data.
// TODO: extract GasPerMsgByte as a parameter to this module.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Opens #949

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.

LGTM, left a question to understand more.

x/payment/keeper/keeper.go Show resolved Hide resolved
x/payment/keeper/gas_test.go Outdated Show resolved Hide resolved
Co-authored-by: CHAMI Rachid <chamirachid1@gmail.com>
@codecov-commenter
Copy link

Codecov Report

Merging #946 (672ac31) into main (29e0a27) will increase coverage by 0.01%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##             main     #946      +/-   ##
==========================================
+ Coverage   26.13%   26.14%   +0.01%     
==========================================
  Files          77       77              
  Lines        9353     9351       -2     
==========================================
+ Hits         2444     2445       +1     
+ Misses       6680     6677       -3     
  Partials      229      229              
Impacted Files Coverage Δ
pkg/shares/split_sparse_shares.go 70.00% <25.00%> (+2.03%) ⬆️
x/payment/keeper/keeper.go 64.70% <100.00%> (+2.20%) ⬆️

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

evan-forbes
evan-forbes previously approved these changes Nov 7, 2022
x/payment/keeper/gas_test.go Outdated Show resolved Hide resolved
x/payment/keeper/keeper.go Show resolved Hide resolved
@rootulp rootulp merged commit 2e906c1 into celestiaorg:main Nov 8, 2022
rach-id added a commit to rach-id/celestia-app that referenced this pull request Nov 16, 2022
Closes celestiaorg#431

Co-authored-by: CHAMI Rachid <chamirachid1@gmail.com>
rach-id added a commit to rach-id/celestia-app that referenced this pull request Nov 16, 2022
Closes celestiaorg#431

Co-authored-by: CHAMI Rachid <chamirachid1@gmail.com>
@evan-forbes evan-forbes added this to the Incentivized Testnet milestone Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Charge gas per message share
4 participants