mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-12-25 23:49:31 -05:00
a0ef1f96ec
The bitcoind wallet required the user to run a bitcoind node. It was replaced with a bdk wallet which allows the user to connect to an electrum instance hosted remotely. An electrum and bitcoind testcontainer were created to the test the bdk wallet. The electrum container reads the blockdata from the bitcoind testcontainer through a shared volume. bitcoind-harness was removed as bitcoind initialisation code was moved into test_utils. The bdk wallet differs from the bitcoind wallet in that it needs to be manually synced with an electrum node. We synchronise the wallet once upon initialisation to prevent a potentially long running blocking task from interrupting protocol execution. The electrum HTTP API was used to get the latest block height and the transaction block height as this functionality was not present in the bdk wallet API or it required the bdk wallet to be re-synced to get an up to date value. |
||
---|---|---|
.. | ||
testutils | ||
bob_refunds_using_cancel_and_refund_command_timelock_not_expired_force.rs | ||
bob_refunds_using_cancel_and_refund_command_timelock_not_expired.rs | ||
bob_refunds_using_cancel_and_refund_command.rs | ||
happy_path_restart_bob_before_comm.rs | ||
happy_path.rs |