Skip to content

Asset unlock rejected below the mempool fee floor is not retried at the same tip once its lock is known #8201

Open

Description

@PastaPastaPasta

A version 2 asset unlock that a node rejects is remembered by its instance hash until the chain tip changes. If the rejection was the mempool's rolling minimum feerate and the InstantSend lock for that withdrawal arrives afterwards, the node does not take the same instance when a peer sends it again at the same tip: AlreadyHave() answers from the reject filter for MSG_ASSET_UNLOCK before it gets to the checks that let a locked transaction through for ordinary transactions.

Expected: once the lock is known, the instance is accepted, as #8199 does for transactions that are not already in the reject filter.

What happens: the node goes without the withdrawal in its mempool until the next block, when the reject filter is reset and the instance can be accepted again.

A fix has to keep stale or invalid instances of the same withdrawal filtered, which is what the instance-hash filter is for. The filter cannot say why an instance was rejected, so simply ignoring it for a locked txid would let any instance sharing that txid be validated over and over.

Follow-up to #8199.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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