xmr-btc-swap/swap/tests/testutils
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
..
bitcoind.rs Remove pointless todo 2021-03-12 12:52:23 +11:00
electrs.rs Change imports_granularity to module 2021-03-04 14:48:13 +11:00
mod.rs Greatly reduce load onto the Electrum backend 2021-03-16 19:24:31 +11:00