Skip to content

Support spec recommended additional fee API - #86

Merged
DanGould merged 5 commits into
payjoin:masterfrom
DanGould:rec-fee
Aug 8, 2023
Merged

Support spec recommended additional fee API#86
DanGould merged 5 commits into
payjoin:masterfrom
DanGould:rec-fee

Conversation

@DanGould

@DanGould DanGould commented Jul 14, 2023

Copy link
Copy Markdown
Member

Support spec recommended additional fee API and support it in payjoin-cli

  1. The first commit only calculates additional fee parameters in payjoin-cli without API change, but this PR should change the API to facilitate that part of the protocol.
  2. The second commit uses bitcoin::FeeRate in Configuration
  3. The third constructs a recommended Configuration by finding the additionalfeenoutputindex, specifying maxadditionalfeecontribution and minfeerate assuming funds are available
  4. The fourth fixes a bug and allows decimal minfeerate parameter as specified in BIP 78
  5. automatically detect script type if there is a recommendation we can identify

close #71

@DanGould DanGould added this to the 0.10.0 milestone Jul 31, 2023
@DanGould DanGould self-assigned this Jul 31, 2023
@DanGould
DanGould force-pushed the rec-fee branch 3 times, most recently from 354f122 to 51298c9 Compare August 1, 2023 20:03
@DanGould
DanGould marked this pull request as ready for review August 1, 2023 20:03
@DanGould
DanGould force-pushed the rec-fee branch 5 times, most recently from bf6a912 to 54f8c83 Compare August 2, 2023 00:00
Comment thread payjoin-cli/src/app.rs Outdated
Comment thread payjoin-cli/src/app.rs
Comment thread payjoin-cli/src/app.rs
Comment thread payjoin/src/receive/optional_parameters.rs Outdated
Comment thread payjoin/src/send/mod.rs Outdated
@DanGould
DanGould force-pushed the rec-fee branch 3 times, most recently from 819b6a1 to e7db425 Compare August 3, 2023 17:35
@DanGould
DanGould merged commit 9588dc2 into payjoin:master Aug 8, 2023
@DanGould DanGould mentioned this pull request Sep 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Configuration should support spec recommended additional fee

1 participant