From 4fb20d1409e5892f3ca3b5551f7b4bb0cf45ecff Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Mon, 29 Sep 2014 12:29:20 -0700 Subject: [PATCH] rename wallet methods. --- lib/bitcoind.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/lib/bitcoind.js b/lib/bitcoind.js index 39df3ae0..86f1a6f2 100644 --- a/lib/bitcoind.js +++ b/lib/bitcoind.js @@ -667,8 +667,8 @@ function Wallet() { return obj; } -Wallet.prototype.createAddress = function(name) { - return bitcoindjs.walletNewAddress({ name: name }); +Wallet.prototype.createAddress = function(options) { + return bitcoindjs.walletNewAddress(options || {}); }; Wallet.prototype.getAccountAddress = function(options) { @@ -719,23 +719,25 @@ Wallet.prototype.getTransaction = function(options) { return bitcoindjs.walletGetTransaction(options || {}); }; -Wallet.prototype.backupWallet = function(options) { +Wallet.prototype.backup = function(options) { return bitcoindjs.walletBackup(options || {}); }; -Wallet.prototype.walletPassphrase = function(options) { +Wallet.prototype.decrypt = +Wallet.prototype.passphrase = function(options) { return bitcoindjs.walletPassphrase(options || {}); }; -Wallet.prototype.walletPassphraseChange = function(options) { +Wallet.prototype.passphraseChange = function(options) { return bitcoindjs.walletPassphraseChange(options || {}); }; -Wallet.prototype.walletLock = function(options) { +Wallet.prototype.forgetPassphrase = +Wallet.prototype.lock = function(options) { return bitcoindjs.walletLock(options || {}); }; -Wallet.prototype.encryptWallet = function(options) { +Wallet.prototype.encrypt = function(options) { return bitcoindjs.walletEncrypt(options || {}); };