From 508ece491f8ae5cfcf48098c6b7ee58017d28f5b Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 2 Nov 2016 17:25:30 -0700 Subject: [PATCH] account: remove address methods. --- lib/wallet/account.js | 38 -------------------------------------- 1 file changed, 38 deletions(-) diff --git a/lib/wallet/account.js b/lib/wallet/account.js index 5e8dcb45..52f35d26 100644 --- a/lib/wallet/account.js +++ b/lib/wallet/account.js @@ -720,44 +720,6 @@ Account.prototype.syncDepth = co(function* syncDepth(receive, change, nested) { return result; }); -/** - * Get witness version for a path. - * @param {Path} - * @returns {Number} - */ - -Account.prototype.getWitnessVersion = function getWitnessVersion(path) { - if (!this.witness) - return -1; - - if (path.branch === 2) - return -1; - - return 0; -}; - -/** - * Get address type for a path. - * @param {Path} path - * @returns {Number} - */ - -Account.prototype.getAddressType = function getAddressType(path) { - if (path.branch === 2) - return Script.types.SCRIPTHASH; - - if (this.witness) { - if (this.type === Account.types.MULTISIG) - return Script.types.WITNESSSCRIPTHASH; - return Script.types.WITNESSPUBKEYHASH; - } - - if (this.type === Account.types.MULTISIG) - return Script.types.SCRIPTHASH; - - return Script.types.PUBKEYHASH; -}; - /** * Convert the account to a more inspection-friendly object. * @returns {Object}