From 2bd1fd9f9f3b2a7b91f8e01690004c0fba2f02fb Mon Sep 17 00:00:00 2001 From: Afshin Arani Date: Thu, 14 Jul 2022 12:57:22 +0430 Subject: [PATCH] Backend: blacklist blockstream electrum servers Blockstream electrum servers don't support sending verbose transactions (see [1]), and we use this functionality to get confirmations of a transaction; so we prevent a crash by blacklisting them. [1] https://github.com/Blockstream/electrs/pull/36 --- src/GWallet.Backend/Server.fs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/GWallet.Backend/Server.fs b/src/GWallet.Backend/Server.fs index 2864815c3..c050cb8fd 100644 --- a/src/GWallet.Backend/Server.fs +++ b/src/GWallet.Backend/Server.fs @@ -173,6 +173,11 @@ module ServerRegistry = // they create exception when being queried for advanced ones (e.g. latest block) server.ServerInfo.NetworkPath.Contains "blockscout" || + // Blockstream electrum servers doesn't support sending verbose transactions, we use this functionality + // for getting confirmations of a transaction, this causes geewallet to crash. See: + // https://github.com/Blockstream/electrs/pull/36 + server.ServerInfo.NetworkPath.Contains "blockstream" || + // there was a mistake when adding this server to geewallet's JSON: it was added in the ETC currency instead of ETH (currency = Currency.ETC && server.ServerInfo.NetworkPath.Contains "ethrpc.mewapi.io")