1
0
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:
llya Evdokimov 2021-07-07 12:40:50 +02:00 committed by GitHub
parent af8394a280
commit 3a573e267a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}