xmr-btc-swap/swap/tests
Mohan 091ba57547
feat(wallet): Use mempool histogram for fee estimation (#358)
* feat(wallet): Use mempool.space as a secondary fee estimation source

* fix: warn if mempool client cannot be instantiated

* make clippy happy

* nitpick: rename clippy_check to clippy in justfile

* rename `estimate_fee_rate_from_mempool` to `estimate_fee_rate_from_histogram` for clarity

* dprint fmt

* make clippy happy

* change teacing level back to debug!

* change log levels

* refactors

* refactor: estimate_fee and min_relay_fee

* serde camel case

Co-authored-by: Byron Hambly <byron@hambly.dev>

* refactors

* Add comments, use Weight struct where possible

* fmt, fix testrs

* dont fallback to bitcoin::MAX, fail instead

* make mempool space optional

* fmt

* refactor: use estimate_fee(...) in max_giveable(...)

* refactor max_giveable(...)

* refactor max_giveeable to return fee as well, remove safety margin for fee

* fix compile

* fmtr

* fix(integration test): Use pre-calculated cancel / punish fees for assert_alice_punished

* fix(integration test): Use real fees for asserts

* sync wallet before transaction_fee call

* split send_to_address into sweep_balance_to_address_dynamic_fee

---------

Co-authored-by: Byron Hambly <byron@hambly.dev>
2025-05-27 15:41:24 +02:00
..
harness feat(wallet): Use mempool histogram for fee estimation (#358) 2025-05-27 15:41:24 +02:00
alice_and_bob_refund_using_cancel_and_refund_command.rs feat: cargo project at root 2024-08-08 00:49:04 +02:00
alice_and_bob_refund_using_cancel_and_refund_command_timelock_not_expired.rs upgrade(swap): Concurrent syncing, bdk upgrade, refactors (#180) 2025-05-18 22:54:03 +02:00
alice_and_bob_refund_using_cancel_then_refund_command.rs feat: cargo project at root 2024-08-08 00:49:04 +02:00
alice_manually_punishes_after_bob_dead.rs feat: cargo project at root 2024-08-08 00:49:04 +02:00
alice_manually_punishes_after_bob_dead_and_bob_cancels.rs feat: cargo project at root 2024-08-08 00:49:04 +02:00
alice_manually_redeems_after_enc_sig_learned.rs feat: cargo project at root 2024-08-08 00:49:04 +02:00
alice_punishes_after_restart_bob_dead.rs feat: cargo project at root 2024-08-08 00:49:04 +02:00
alice_refunds_after_restart_bob_refunded.rs feat: cargo project at root 2024-08-08 00:49:04 +02:00
bdk.sh upgrade(swap): Concurrent syncing, bdk upgrade, refactors (#180) 2025-05-18 22:54:03 +02:00
concurrent_bobs_after_xmr_lock_proof_sent.rs feat: cargo project at root 2024-08-08 00:49:04 +02:00
concurrent_bobs_before_xmr_lock_proof_sent.rs feat: cargo project at root 2024-08-08 00:49:04 +02:00
ensure_same_swap_id.rs feat: cargo project at root 2024-08-08 00:49:04 +02:00
happy_path.rs feat: cargo project at root 2024-08-08 00:49:04 +02:00
happy_path_bob_offline_while_alice_redeems_btc.rs feat: cargo project at root 2024-08-08 00:49:04 +02:00
happy_path_restart_alice_after_xmr_locked.rs feat: cargo project at root 2024-08-08 00:49:04 +02:00
happy_path_restart_bob_after_xmr_locked.rs feat: cargo project at root 2024-08-08 00:49:04 +02:00
happy_path_restart_bob_before_xmr_locked.rs feat: cargo project at root 2024-08-08 00:49:04 +02:00
punish.rs feat: cargo project at root 2024-08-08 00:49:04 +02:00