Skip to content

tx pool: don't drop cxns relaying key images spent in chain#204

Open
j-berman wants to merge 2 commits intoseraphis-migration:fcmp++-stagefrom
j-berman:no-drop-dbl-spend
Open

tx pool: don't drop cxns relaying key images spent in chain#204
j-berman wants to merge 2 commits intoseraphis-migration:fcmp++-stagefrom
j-berman:no-drop-dbl-spend

Conversation

@j-berman
Copy link
Collaborator

Assume a reorg of Tx A out the chain back into the pool (or Tx A is just normally relayed to a node), and then a new Block B comes along that includes Tx B spending the same output(s) as Tx A.

Nodes currently will attempt to re-relay Tx A even though its output(s) are spent in the chain. If a node receives Tx A from another node, it will drop the connection (1, 2, 3).

Since it's possible for an honest node that hasn't seen the new block B to attempt to relay Tx A to a node that has already seen Block B, this PR changes this to a no-drop-offense. The honest node's connection will continue processing any other txs the honest node relayed to it here.

@jeffro256
Copy link
Collaborator

Needs updating to match #207

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants