tDon't unsubscribe scripthash from libbitcoin-server. - obelisk - Electrum server using libbitcoin as its backend HTML git clone https://git.parazyd.org/obelisk DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit 54e28053283f274e0f50d6625a24aba4a345f997 DIR parent 3b7ae8f951235c59ae57b40eeb39116a044eaee5 HTML Author: parazyd <parazyd@dyne.org> Date: Mon, 19 Apr 2021 13:40:37 +0200 Don't unsubscribe scripthash from libbitcoin-server. This is not necessary and it just slows down stopping obelisk in tthis case. Diffstat: M obelisk/protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/obelisk/protocol.py b/obelisk/protocol.py t@@ -518,7 +518,7 @@ class ElectrumProtocol(asyncio.Protocol): # pylint: disable=R0904,R0902 if scripthash in self.sh_subscriptions: self.sh_subscriptions[scripthash]["task"].cancel() - await self.bx.unsubscribe_scripthash(scripthash) + # await self.bx.unsubscribe_scripthash(scripthash) del self.sh_subscriptions[scripthash] return {"result": True}