From 18cfaa7a13865e08fdda7df7ceb0ab80b2c46175 Mon Sep 17 00:00:00 2001 From: dangershony Date: Mon, 22 Apr 2024 16:57:21 +0100 Subject: [PATCH] Add an error code type for no trx in mempool --- src/Blockcore.Indexer.Core/Client/BitcoinClientException.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Blockcore.Indexer.Core/Client/BitcoinClientException.cs b/src/Blockcore.Indexer.Core/Client/BitcoinClientException.cs index 6b0ed164..d77e071a 100644 --- a/src/Blockcore.Indexer.Core/Client/BitcoinClientException.cs +++ b/src/Blockcore.Indexer.Core/Client/BitcoinClientException.cs @@ -81,6 +81,10 @@ public bool IsTransactionNotFound() return true; } + if (ErrorMessage.Contains("No such mempool transaction")) + { + return true; + } } return false;