xmr-btc-swap/swap/tests
rishflab a0ef1f96ec Replace bitcoind wallet with bdk wallet
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.
2021-02-16 14:04:52 +11:00
..
testutils Replace bitcoind wallet with bdk wallet 2021-02-16 14:04:52 +11:00
bob_refunds_using_cancel_and_refund_command_timelock_not_expired_force.rs Fix typo 2021-02-10 16:42:55 +11:00
bob_refunds_using_cancel_and_refund_command_timelock_not_expired.rs Fix typo 2021-02-10 16:42:55 +11:00
bob_refunds_using_cancel_and_refund_command.rs Alice event loop now handles the creation of new swaps 2021-02-10 16:42:55 +11:00
happy_path_restart_bob_before_comm.rs Alice event loop now handles the creation of new swaps 2021-02-10 16:42:55 +11:00
happy_path.rs Alice event loop now handles the creation of new swaps 2021-02-10 16:42:55 +11:00