From 8f3de71719ea680545ad318e667db7b9c582ab41 Mon Sep 17 00:00:00 2001 From: Orfeas Stefanos Thyfronitis Litos Date: Fri, 23 Feb 2018 15:05:34 +0000 Subject: [PATCH] Handle broadcast() errors in sendTX() Replace this.pool.broadcast(tx) with this.broadcast(tx) in case of a selfish node because the latter handles broadcast errors, whereas the former does not. --- lib/node/fullnode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node/fullnode.js b/lib/node/fullnode.js index 24b36ccc..aa4925c4 100644 --- a/lib/node/fullnode.js +++ b/lib/node/fullnode.js @@ -317,7 +317,7 @@ class FullNode extends Node { // We need to announce by hand if // we're running in selfish mode. if (this.pool.options.selfish) - this.pool.broadcast(tx); + this.broadcast(tx); } /**