You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For tests, we now have the trigger_swap_update! macro, which simulates Boltz WS updates. The tests then check if our swap states were correctly updated.
Since some state transitions depend on onchain tx confirmations, we need a similar method to simulate a tx confirmation, perhaps by simulating or mocking sync_payments_with_chain_data.
An example of such state transition is when Chain Swaps move from Pending to Complete when the claim tx is confirmed.
The text was updated successfully, but these errors were encountered:
May or may not be related, I have an update in the Webhook PR that allows history to be injected into the mock chain services for simulating txs to be retreived by get_script_history(_with_retry). In this PR it's for mocking the user lockup tx
For tests, we now have the
trigger_swap_update!
macro, which simulates Boltz WS updates. The tests then check if our swap states were correctly updated.Since some state transitions depend on onchain tx confirmations, we need a similar method to simulate a tx confirmation, perhaps by simulating or mocking
sync_payments_with_chain_data
.An example of such state transition is when Chain Swaps move from
Pending
toComplete
when the claim tx is confirmed.The text was updated successfully, but these errors were encountered: