From 4c1a3761afc3e67ff7b438722ae42fbe0062fc5a Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Fri, 1 Jan 2016 18:07:18 -0800 Subject: [PATCH] set relay to false on spv. --- lib/bcoin/pool.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/bcoin/pool.js b/lib/bcoin/pool.js index f6db0e58..c9464f8a 100644 --- a/lib/bcoin/pool.js +++ b/lib/bcoin/pool.js @@ -32,7 +32,9 @@ function Pool(options) { network.set(this.options.network); this.options.fullNode = !!this.options.fullNode; - this.options.relay = this.options.relay !== false; + this.options.relay = this.options.relay == null + ? (this.options.fullNode ? true : false) + : this.options.relay; this.storage = this.options.storage; this.destroyed = false; this.size = options.size || 32;