Skip to content

Reorg-Handling Tests & lightwalletd<->client Reorg-Handling Contract #52

Description

@defuse

In #43, you can double-spend since transactions from reorged blocks aren't removed: #43 (review). A similar kind of problem exists in the current master branch.

Both this attack and the previous one would be caught by a test that does the following:

  1. Send a payment to a client with a transaction that lands in a block that will be reorged away.
  2. The reorg happens.
  3. Check whether the client still believes it got the payment.

Close this ticket by implementing that test. The test code defining "believes it got the payment" can serve as documentation for how all clients should handle reorgs.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions