mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-11-30 20:46:33 -05:00
wip: Provide enough funds to both parties
Also use cosntant backoff retry strategy as opposed to exponential backoff. This is in case retrying several times quickly causes the retry intervals to become large enough that the test is very slow and/or the Bitcoin lock transaction expires. The current problem occurs on the last message i.e. Bob sending tx_redeem_encsig to Alice. The action is yielded for Bob to do it, but Alice appears to never receive it (unconfirmed claim, requires more logging).
This commit is contained in:
parent
eb6bbe6180
commit
a37f43a1ba
7 changed files with 55 additions and 37 deletions
|
|
@ -10,8 +10,6 @@ pub mod storage;
|
|||
#[cfg(feature = "tor")]
|
||||
pub mod tor;
|
||||
|
||||
pub const ONE_BTC: u64 = 100_000_000;
|
||||
|
||||
const REFUND_TIMELOCK: u32 = 10; // Relative timelock, this is number of blocks. TODO: What should it be?
|
||||
const PUNISH_TIMELOCK: u32 = 10; // FIXME: What should this be?
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue