xmr-btc-swap/swap/tests
rishflab e5c0158597
Greatly reduce load onto the Electrum backend
We achieve our optimizations in three ways:

1. Batching calls instead of making them individually.

To get access to the batch calls, we replace all our
calls to the HTTP interface with RPC calls.

2. Never directly make network calls based on function
calls on the wallet.

Instead, inquiring about the status of a script always
just returns information based on local data. With every
call, we check when we last refreshed the local data and
do so if the data is considered to be too old. This
interval is configurable.

3. Use electrum's notification feature to get updated
with the latest blockheight.

Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
Co-authored-by: Rishab Sharma <rishflab@hotmail.com>
2021-03-16 19:24:31 +11:00
..
testutils Greatly reduce load onto the Electrum backend 2021-03-16 19:24:31 +11:00
bob_refunds_using_cancel_and_refund_command_timelock_not_expired_force.rs Change imports_granularity to module 2021-03-04 14:48:13 +11:00
bob_refunds_using_cancel_and_refund_command_timelock_not_expired.rs Don't repeat the module name within the type 2021-03-05 15:49:13 +11:00
bob_refunds_using_cancel_and_refund_command.rs Change imports_granularity to module 2021-03-04 14:48:13 +11:00
happy_path_restart_bob_before_comm.rs Change imports_granularity to module 2021-03-04 14:48:13 +11:00
happy_path.rs Alice event loop now handles the creation of new swaps 2021-02-10 16:42:55 +11:00