set relay to false on spv.

This commit is contained in:
Christopher Jeffrey 2016-01-01 18:07:18 -08:00
parent 08320fd3fb
commit 4c1a3761af

View File

@ -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;