Skip to content

Should optional params Require both max_additional_fee_contribution and additional_fee_output_index #685

@benalleng

Description

@benalleng

Currently the optional parameters for max_additional_fee_contribution and additional_fee_output_index only provide a warning when only one param is present.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions