mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-02-22 15:49:52 -05:00
5 second timeout for wallet snapshot receiver
Rationale: Constructing the wallet snapshot contains five dynamic parts: - Monero balance, - Bitcoin fee estimate (redeem) - Bitcoin fee estimate (punish) - New Bitcoin address (redeem) - New Bitcoin address (punish) If we calculate a second each we should be save.
This commit is contained in:
parent
76035dc488
commit
e18bda4f7b
@ -22,6 +22,7 @@ use std::task::{Context, Poll};
|
||||
use std::time::Duration;
|
||||
use uuid::Uuid;
|
||||
use void::Void;
|
||||
use std::time::Duration;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum OutEvent {
|
||||
@ -324,7 +325,7 @@ where
|
||||
) {
|
||||
let (sender, receiver) = bmrng::channel_with_timeout::<bitcoin::Amount, WalletSnapshot>(
|
||||
1,
|
||||
todo!("decide on timeout"),
|
||||
Duration::from_secs(5),
|
||||
);
|
||||
let resume_only = self.resume_only;
|
||||
let min_buy = self.min_buy;
|
||||
|
Loading…
x
Reference in New Issue
Block a user