From 6e7a19ef35c9c23b0858fc24ecf9895716c00f32 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 11 Jan 2017 19:02:12 -0800 Subject: [PATCH] uri: remove old options. --- lib/btc/uri.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/lib/btc/uri.js b/lib/btc/uri.js index 82f65696..006b0388 100644 --- a/lib/btc/uri.js +++ b/lib/btc/uri.js @@ -58,11 +58,6 @@ URI.prototype.fromOptions = function fromOptions(options) { this.amount = options.amount; } - if (options.version != null) { - assert(util.isUInt32(options.version), 'Version must be a uint32.'); - this.version = options.version; - } - if (options.label) { assert(typeof options.label === 'string', 'Label must be a string.'); this.label = options.label; @@ -73,15 +68,6 @@ URI.prototype.fromOptions = function fromOptions(options) { this.message = options.message; } - if (options.key) { - if (typeof options.key === 'string') { - this.key = KeyRing.fromSecret(options.key); - } else { - this.key = KeyRing.fromOptions(options.key); - assert(this.key.privateKey, 'Key must have a private key.'); - } - } - if (options.request) { assert(typeof options.request === 'string', 'Request must be a string.'); this.request = options.request;