-
Notifications
You must be signed in to change notification settings - Fork 79
Closed
Description
Currently the optional parameters for max_additional_fee_contribution and additional_fee_output_index only provide a warning when only one param is present.
rust-payjoin/payjoin/src/receive/optional_parameters.rs
Lines 100 to 107 in eb26494
| match (max_additional_fee_contribution, additional_fee_output_index) { | |
| (Some(amount), Some(index)) => | |
| params.additional_fee_contribution = Some((amount, index)), | |
| (Some(_), None) | (None, Some(_)) => { | |
| warn!("only one additional-fee parameter specified: {params:?}"); | |
| } | |
| _ => (), | |
| } |
In the spec there is a note explaining that they both must be present for the receiver to be able to alter a senders output but it is unclear whether the whole process should halt based on a missing param here.
https://github.com/bitcoin/bips/blob/master/bip-0078.mediawiki#optional-parameters
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels