Skip to content

Commit

Permalink
Improve message for CannotRetrieveFeerates error (#1859)
Browse files Browse the repository at this point in the history
On testnet or regtest, this can happen frequently because
not enough blocks have been received to estimate fees.
  • Loading branch information
evd0kim committed Jul 7, 2021
1 parent af8394a commit 3a573e2
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -160,4 +160,3 @@ object FeeratesPerKw {
blocks_144 = feeratePerKw,
blocks_1008 = feeratePerKw)
}

0 comments on commit 3a573e2

Please sign in to comment.