From 4c387bba822424aa1b7c2a8b01d09652ec0444c2 Mon Sep 17 00:00:00 2001 From: Andrea Date: Tue, 17 Sep 2019 10:17:23 +0200 Subject: [PATCH] Update string to match on bitcoind while it's indexing --- .../fr/acinq/eclair/blockchain/bitcoind/BitcoinCoreWallet.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclair-core/src/main/scala/fr/acinq/eclair/blockchain/bitcoind/BitcoinCoreWallet.scala b/eclair-core/src/main/scala/fr/acinq/eclair/blockchain/bitcoind/BitcoinCoreWallet.scala index f32856491e..efdd802f69 100644 --- a/eclair-core/src/main/scala/fr/acinq/eclair/blockchain/bitcoind/BitcoinCoreWallet.scala +++ b/eclair-core/src/main/scala/fr/acinq/eclair/blockchain/bitcoind/BitcoinCoreWallet.scala @@ -122,7 +122,7 @@ class BitcoinCoreWallet(rpcClient: BitcoinJsonRPCClient)(implicit ec: ExecutionC exists <- getTransaction(tx.txid) .map(_ => true) // we have found the transaction .recover { - case JsonRPCError(Error(_, message)) if message.contains("indexing") => + case JsonRPCError(Error(_, message)) if message.contains("index") => sys.error("Fatal error: bitcoind is indexing!!") System.exit(1) // bitcoind is indexing, that's a fatal error!! false // won't be reached