commit 1908c7bdc8163b93e255a6e8a601e41d10bfa9d7
parent 95b76f1e0534c9109985bcedfd8afaebd901693f
Author: chris-belcher <chris-belcher@users.noreply.github.com>
Date: Mon, 24 Jun 2019 15:10:56 +0100
Add sleep after uploading tor tx
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/electrumpersonalserver/server/peertopeer.py b/electrumpersonalserver/server/peertopeer.py
@@ -335,6 +335,10 @@ class P2PBroadcastTx(P2PMessageHandler):
self.uploaded_tx = True
self.logger.info("Uploaded transaction via tor to peer at "
+ str(p2p.remote_hostport))
+ ##make sure the packets really got through by sleeping
+ ##some kernels seem to send a RST packet on close() even
+ ##if theres still data in the send buffer
+ time.sleep(5)
p2p.close()
def broadcaster_thread(txhex, node_addrs, tor_hostport, network, logger,