From 0c963b0894d3a27f243ef2564ac2449fe25cb31c Mon Sep 17 00:00:00 2001 From: SomberNight Date: Fri, 3 May 2019 20:11:48 +0200 Subject: [PATCH] network.broadcast_transaction: add "do not trust" text to log messages --- electrum/network.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/electrum/network.py b/electrum/network.py index bf3d959f7..81564f250 100644 --- a/electrum/network.py +++ b/electrum/network.py @@ -859,14 +859,14 @@ class Network(Logger): except (RequestTimedOut, asyncio.CancelledError, asyncio.TimeoutError): raise # pass-through except aiorpcx.jsonrpc.CodeMessageError as e: - self.logger.info(f"broadcast_transaction error: {repr(e)}") + self.logger.info(f"broadcast_transaction error [DO NOT TRUST THIS MESSAGE]: {repr(e)}") raise TxBroadcastServerReturnedError(self.sanitize_tx_broadcast_response(e.message)) from e except BaseException as e: # intentional BaseException for sanity! - self.logger.info(f"broadcast_transaction error2: {repr(e)}") + self.logger.info(f"broadcast_transaction error2 [DO NOT TRUST THIS MESSAGE]: {repr(e)}") send_exception_to_crash_reporter(e) raise TxBroadcastUnknownError() from e if out != tx.txid(): - self.logger.info(f"unexpected txid for broadcast_transaction: {out} != {tx.txid()}") + self.logger.info(f"unexpected txid for broadcast_transaction [DO NOT TRUST THIS MESSAGE]: {out} != {tx.txid()}") raise TxBroadcastHashMismatch(_("Server returned unexpected transaction ID.")) @staticmethod