Skip to content

Move RBF-bump to start of update_claims_view to avoid double-bump #1000

Open
@TheBlueMatt

Description

@TheBlueMatt
`OnchainTx::update_claims_view` currently checks if there are
packages which need to be RBF-bumped first, prior to adding new
packages to the tracking map. This can, in some cases, cause us to
RBF-bump a package which we only just added, at least in cases
where we're skipping blocks being connected.

Here we simply move the RBF-bump check to the top of
`OnchainTx::update_claims_view`, avoiding any such cases (though
there are still some cases where we may call
`OnchainTx::update_claims_view` twice for the same block, which is
resolved separately).

This commit doesn't appear to cause any test failures, but should get test coverage to confirm it actually does what it looks like it does, as it may not. https://git.bitcoin.ninja/index.cgi?p=rust-lightning;a=commit;h=7b161f7b0feb0fbe7d6465eb1d705c5b1bddf554

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions