citadel-tech / coinswap

Functioning, minimal-viable binaries and libraries to perform a trustless, p2p Maxwell-Belcher Coinswap Protocol
https://gist.github.com/chris-belcher/9144bd57a91c194e332fb5ca371d0964
Other
69 stars 44 forks source link

Integration test: Multi-Taker And Single Maker Scenario #231

Open Shourya742 opened 1 month ago

Shourya742 commented 1 month ago

Add the behaviour for multiple taker to connect to a single chain of makers to perform swap. Use variety of taker behaviour to cover possible cases along with the standard happy path case.

Adds an integration test to simulate this whole situation.

mojoX911 commented 1 month ago

We can cover most of the surface, with this combination.

Maker: Normal Taker1: DropConnectionAfterFullSetup Taker2: BroadcastContractAfterFullSetup

These are the only two Taker behaviors we have. And both will force Maker to recover.

Later on, we can add more tests with other Maker behaviors.

In the long term, this can be a good approach to combinatorially cover all weird edge cases.