obelisk

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

commit 720e15a7f78eecba1720909c66bcf28a86975672
parent a663b8c0ce04c3992afdc3ed44a98f6c47bed34b
Author: parazyd <parazyd@dyne.org>
Date:   Wed, 14 Apr 2021 12:17:34 +0200

Add debug note about tx broadcast.

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

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