Skip to content

Commit 3a573e2

Browse files
authored
Improve message for CannotRetrieveFeerates error (#1859)
On testnet or regtest, this can happen frequently because not enough blocks have been received to estimate fees.
1 parent af8394a commit 3a573e2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

eclair-core/src/main/scala/fr/acinq/eclair/blockchain/fee/FeeProvider.scala

+1-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ trait FeeProvider {
2727
def getFeerates: Future[FeeratesPerKB]
2828
}
2929

30-
case object CannotRetrieveFeerates extends RuntimeException("cannot retrieve feerates: channels may be at risk")
30+
case object CannotRetrieveFeerates extends RuntimeException("cannot retrieve feerates, channels may be at risk: ensure bitcoind estimatesmartfee correctly returns feerates and restart eclair")
3131

3232
/** Fee rate in satoshi-per-bytes. */
3333
case class FeeratePerByte(feerate: Satoshi)
@@ -160,4 +160,3 @@ object FeeratesPerKw {
160160
blocks_144 = feeratePerKw,
161161
blocks_1008 = feeratePerKw)
162162
}
163-

0 commit comments

Comments
 (0)