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:
Daniel Karzel 2021-06-24 19:44:20 +10:00
parent 76035dc488
commit e18bda4f7b
No known key found for this signature in database
GPG Key ID: 30C3FC2E438ADB6E

View File

@ -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;