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

Paying fee in currency other than Celo should be feasible if you just have enough. #1664

Merged
merged 11 commits into from
Aug 19, 2021

Conversation

37ng
Copy link
Contributor

@37ng 37ng commented Aug 10, 2021

Description

Modified tx fee checks in state_transition and tx_pool.

Tested

Automated tests.

Related issues

Backwards compatibility

Requires HF because this changed how transaction validity is checked

@37ng 37ng requested a review from trianglesphere August 10, 2021 22:44
@37ng 37ng requested a review from a team as a code owner August 10, 2021 22:44
@37ng 37ng requested review from hbandura and removed request for a team August 10, 2021 22:44
@37ng 37ng changed the title Paying fee in currency other than Celo(cUSD, cEUR, ...) should be feasible if you just have enough. Paying fee in currency other than Celo should be feasible if you just have enough. Aug 10, 2021
@37ng 37ng self-assigned this Aug 11, 2021
@37ng 37ng requested a review from nategraf as a code owner August 12, 2021 21:02
@codecov
Copy link

codecov bot commented Aug 12, 2021

Codecov Report

Merging #1664 (ff35883) into master (9d141cf) will decrease coverage by 0.02%.
The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1664      +/-   ##
==========================================
- Coverage   56.06%   56.04%   -0.03%     
==========================================
  Files         605      605              
  Lines       80261    80269       +8     
==========================================
- Hits        44999    44987      -12     
- Misses      31731    31753      +22     
+ Partials     3531     3529       -2     
Impacted Files Coverage Δ
cmd/utils/flags.go 2.86% <0.00%> (-0.01%) ⬇️
core/state_transition.go 53.50% <0.00%> (-0.72%) ⬇️
core/tx_pool.go 74.41% <75.00%> (+0.26%) ⬆️
p2p/server.go 65.97% <75.00%> (+0.37%) ⬆️
light/txpool.go 44.53% <100.00%> (+0.21%) ⬆️
p2p/dial.go 87.00% <100.00%> (ø)
eth/downloader/statesync.go 63.70% <0.00%> (-3.48%) ⬇️
p2p/discover/table.go 80.46% <0.00%> (-2.34%) ⬇️
p2p/simulations/mocker.go 33.63% <0.00%> (-0.91%) ⬇️
trie/trie.go 83.40% <0.00%> (-0.86%) ⬇️
... and 9 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0390b45...ff35883. Read the comment docs.

@37ng 37ng changed the base branch from master to tong/e-hardfork August 13, 2021 21:26
Base automatically changed from tong/e-hardfork to master August 13, 2021 22:49
Copy link
Contributor

@trianglesphere trianglesphere left a comment

Choose a reason for hiding this comment

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

Needs to have a merge in from master, but looking almost done.

@37ng 37ng removed the do not merge label Aug 17, 2021
Copy link
Contributor

@trianglesphere trianglesphere left a comment

Choose a reason for hiding this comment

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

lgtm

@37ng 37ng merged commit 765e371 into master Aug 19, 2021
@37ng 37ng deleted the tong/fee branch August 19, 2021 15:05
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.

Paying fee in currency other than Celo should be feasible if you just have enough.
2 participants