Skip to content

Commit 95dbf49

Browse files
aaraniknocte
authored andcommitted
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] Blockstream/electrs#36
1 parent f74ea97 commit 95dbf49

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/GWallet.Backend/Server.fs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,11 @@ module ServerRegistry =
173173
// they create exception when being queried for advanced ones (e.g. latest block)
174174
server.ServerInfo.NetworkPath.Contains "blockscout" ||
175175

176+
// Blockstream electrum servers doesn't support sending verbose transactions, we use this functionality
177+
// for getting confirmations of a transaction, this causes geewallet to crash. See:
178+
// https://github.com/Blockstream/electrs/pull/36
179+
server.ServerInfo.NetworkPath.Contains "blockstream" ||
180+
176181
// there was a mistake when adding this server to geewallet's JSON: it was added in the ETC currency instead of ETH
177182
(currency = Currency.ETC && server.ServerInfo.NetworkPath.Contains "ethrpc.mewapi.io")
178183

0 commit comments

Comments
 (0)