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.
This commit is contained in:
Orfeas Stefanos Thyfronitis Litos 2018-02-23 15:05:34 +00:00 committed by Christopher Jeffrey
parent c15cfbc081
commit 8f3de71719
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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);
}
/**