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

Enforce required fee #370

Merged
merged 4 commits into from
Mar 5, 2019
Merged

Enforce required fee #370

merged 4 commits into from
Mar 5, 2019

Conversation

ethanfrey
Copy link
Contributor

Closes #349

The DynamicFeeDecorator now checks the RequiredFee field in the result returned from the Handler it executes and if this is set and greater than the actual fee paid, it will rollback the transaction, deduct the anti-spam fee, and return an error.

@ethanfrey ethanfrey requested a review from husio March 4, 2019 20:39
@ethanfrey ethanfrey requested a review from alpe as a code owner March 4, 2019 20:39
@codecov-io
Copy link

codecov-io commented Mar 4, 2019

Codecov Report

Merging #370 into master will increase coverage by <.1%.
The diff coverage is 95%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master    #370     +/-   ##
========================================
+ Coverage    70.3%   70.4%   +<.1%     
========================================
  Files         127     127             
  Lines        6653    6663     +10     
========================================
+ Hits         4682    4692     +10     
  Misses       1482    1482             
  Partials      489     489
Impacted Files Coverage Δ
x/cash/dynamicfee.go 68.8% <95%> (+3.7%) ⬆️

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 c56d9a9...53edb9d. Read the comment docs.

Copy link
Contributor

@husio husio left a comment

Choose a reason for hiding this comment

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

🍸

x/cash/dynamicfee.go Outdated Show resolved Hide resolved
@ethanfrey ethanfrey merged commit 904296b into master Mar 5, 2019
@ethanfrey ethanfrey deleted the enforce-required-fee branch March 5, 2019 09:18
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.

3 participants