commit 660b7c0d29b64659e98b845ad272c89ba53a93a6
parent 6f5890fd1039d02ef1ed43859b7f06680c61441e
Author: chris-belcher <chris-belcher@users.noreply.github.com>
Date: Mon, 24 Jun 2019 14:00:51 +0100
Overshoot number of requested node addresses
This results in generally only one RPC call being needed
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/electrumpersonalserver/server/peertopeer.py b/electrumpersonalserver/server/peertopeer.py
@@ -361,7 +361,7 @@ def tor_broadcast_tx(txhex, tor_hostport, network, rpc, logger):
while True:
try:
new_node_addrs = rpc.call("getnodeaddresses",
- [required_address_count])
+ [3*required_address_count//2])
except JsonRpcError as e:
logger.debug(repr(e))
logger.error("Bitcoin Core v0.18.0 or higher is required "