Skip to content

bugs related to retrying an aborted transfer #287

@zoedberg

Description

@zoedberg

While using the RGB sandbox @nicbus discovered some bugs related to retrying an aborted transfer.

To simplify and minimize the scope of the debug we tried to reproduce the same bugs in rgb-tests: RGB-WG/rgb-tests#23

The PR introduces 2 new tests that recreate a very similar scenario, where the only relevant change is the call to update_witnesses(), and they show different bugs. In detail:

  • same_transfer_twice_no_update_witnesses:
    • the 2nd consignment that the sender creates has duplicated bundles spending the same input
    • the receiver considers the 2nd consignment as valid
  • same_transfer_twice_update_witnesses:
    • the sender fails to recreate an identical transfer twice

For context, the bugs happen only:

  • on branches ready for beta 9 (on beta 8 the sender constructs a valid consignement)
  • if the receiver asks to receive on a blinded UTXO
  • (only for same_transfer_twice_no_update_witnesses) if we call resolver.add_terminals

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions