[bug fix] set floor fees when no estimation from core

This commit is contained in:
Sosthene00 2024-04-17 08:25:52 +02:00
parent 8bbee83aac
commit a287db7cf8

View File

@ -255,8 +255,9 @@ fn faucet_send(
let fee_estimate = shared_daemon
.lock_anyhow()?
.estimate_fee(6)?
.unwrap_or(Amount::from_sat(1000))
.estimate_fee(6)
.unwrap_or(Some(Amount::from_sat(1000)))
.unwrap()
.checked_div(1000)
.unwrap();