mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-21 04:28:13 -04: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
1 changed files with 2 additions and 1 deletions
|
@ -22,6 +22,7 @@ use std::task::{Context, Poll};
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
use void::Void;
|
use void::Void;
|
||||||
|
use std::time::Duration;
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum OutEvent {
|
pub enum OutEvent {
|
||||||
|
@ -324,7 +325,7 @@ where
|
||||||
) {
|
) {
|
||||||
let (sender, receiver) = bmrng::channel_with_timeout::<bitcoin::Amount, WalletSnapshot>(
|
let (sender, receiver) = bmrng::channel_with_timeout::<bitcoin::Amount, WalletSnapshot>(
|
||||||
1,
|
1,
|
||||||
todo!("decide on timeout"),
|
Duration::from_secs(5),
|
||||||
);
|
);
|
||||||
let resume_only = self.resume_only;
|
let resume_only = self.resume_only;
|
||||||
let min_buy = self.min_buy;
|
let min_buy = self.min_buy;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue