mirror of
https://github.com/ACINQ/eclair.git
synced 2024-11-19 18:10:42 +01:00
Improve message for CannotRetrieveFeerates
error (#1859)
On testnet or regtest, this can happen frequently because not enough blocks have been received to estimate fees.
This commit is contained in:
parent
af8394a280
commit
3a573e267a
@ -27,7 +27,7 @@ trait FeeProvider {
|
||||
def getFeerates: Future[FeeratesPerKB]
|
||||
}
|
||||
|
||||
case object CannotRetrieveFeerates extends RuntimeException("cannot retrieve feerates: channels may be at risk")
|
||||
case object CannotRetrieveFeerates extends RuntimeException("cannot retrieve feerates, channels may be at risk: ensure bitcoind estimatesmartfee correctly returns feerates and restart eclair")
|
||||
|
||||
/** Fee rate in satoshi-per-bytes. */
|
||||
case class FeeratePerByte(feerate: Satoshi)
|
||||
@ -160,4 +160,3 @@ object FeeratesPerKw {
|
||||
blocks_144 = feeratePerKw,
|
||||
blocks_1008 = feeratePerKw)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user