Skip to content

CPFP #3

@louneskmt

Description

@louneskmt

Hey! I'm trying to use this to build a transaction that CPFP another one. It could be useful to have an option to specify the previous transaction fee rate, so the algorithm can take it into account. I can add this, but would need to check with you @landabaso the best way to do it. We need to know the previous transaction fee rate, so we can compute a new fee rate from the given fee rate and the previous one: newFeeRate = 2 * feeRate - previousFeeRate (with feeRate > previousFeeRate otherwise it wouldn't bump anything). Then use that new fee rate as replacement of the input fee rate in the algos.

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