mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-12-27 08:29:38 -05:00
e5c0158597
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> |
||
---|---|---|
.. | ||
bitcoind.rs | ||
electrs.rs | ||
mod.rs |