obelisk

Electrum server using libbitcoin as its backend
git clone https://git.parazyd.org/obelisk
Log | Files | Refs | README | LICENSE

commit 54e28053283f274e0f50d6625a24aba4a345f997
parent 3b7ae8f951235c59ae57b40eeb39116a044eaee5
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
this case.

Diffstat:
Mobelisk/protocol.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/obelisk/protocol.py b/obelisk/protocol.py @@ -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}