Skip to content

RBF API is awkward (remove allow_shrinking) #1374

@LLFourn

Description

@LLFourn

A fee bump shouldn't try to interpret the existing transaction and replicate it -- it should just create a tx with the appropriate fee that spends one or more of the existing transaction's outputs.

The builder API should just be tx_builder.replace(tx). You could call it several times to replace several transactions.

Originally posted by @LLFourn in #1342 (comment)

NB I think our RBF code is probably wrong but that's another issue. I've done a lot of work in the coin selection crate to get this correct. Getting the API right here and removing footgun allow_shrinking is what's important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiA breaking API changebugSomething isn't workingmodule-wallet

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions