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

Add a fee buffer to the transaction builder #315

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

nielstron
Copy link
Contributor

In the spirit of #292 this adds a field fee_buffer to the transaction builder. This extra buffer makes it possible to submit transactions even if the fee computation is off by a bit (for me often 100-1000 lovelace was totally sufficient). Currently, the only other way to influence the fee computation (without completely doing it on ones own) is to manually adjust the code base.

@codecov-commenter
Copy link

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (8c3a12b) 83.42% compared to head (7be1768) 83.33%.

Files Patch % Lines
pycardano/txbuilder.py 33.33% 2 Missing and 2 partials ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #315      +/-   ##
==========================================
- Coverage   83.42%   83.33%   -0.09%     
==========================================
  Files          28       28              
  Lines        3415     3421       +6     
  Branches      836      838       +2     
==========================================
+ Hits         2849     2851       +2     
- Misses        416      418       +2     
- Partials      150      152       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@cffls cffls left a comment

Choose a reason for hiding this comment

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

Nice idea!

@nielstron nielstron merged commit b2d74cc into Python-Cardano:main Feb 20, 2024
11 checks passed
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