Skip to content

Commit

Permalink
Update string to match on bitcoind while it's indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
araspitzu committed Sep 17, 2019
1 parent 8ee53bc commit 4c387bb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4c387bb

Please sign in to comment.