ExchangeUnion / xud

Exchange Union Daemon 🔁 ⚡️
https://exchangeunion.com
GNU Affero General Public License v3.0
115 stars 44 forks source link

test(sim): connext collateralization with wait #1926

Closed sangaman closed 4 years ago

sangaman commented 4 years ago

This restores the logic to request collateral in the custom xud builds used for instability tests by adding a one second wait after adding an order on the maker side (who then requests collateralization) but before placing a matching order on the taker side.

This appears to work around a brief, transient inability to send a connext payment to a node immediately after that node requests collateral.

Related PR #1916 - specifically the persistent simulation test failures that were eventually avoided by removing the collateral requests from custom-xud, which is being restored here.