tAdd debug note about tx broadcast. - 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 720e15a7f78eecba1720909c66bcf28a86975672
DIR parent a663b8c0ce04c3992afdc3ed44a98f6c47bed34b
HTML Author: parazyd <parazyd@dyne.org>
Date: Wed, 14 Apr 2021 12:17:34 +0200
Add debug note about tx broadcast.
Diffstat:
M obelisk/protocol.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
DIR diff --git a/obelisk/protocol.py b/obelisk/protocol.py
t@@ -517,8 +517,9 @@ class ElectrumProtocol(asyncio.Protocol): # pylint: disable=R0904,R0902
if not is_hex_str(hextx):
return ERRORS["invalidparams"]
- _ec, _ = await self.bx.broadcast_transaction(hextx)
+ _ec, _ = await self.bx.broadcast_transaction(unhexlify(hextx)[::-1])
if _ec and _ec != 0:
+ self.log.debug("Got error: %s", repr(_ec))
return ERRORS["internalerror"]
rawtx = unhexlify(hextx)