rename wallet methods.

This commit is contained in:
Christopher Jeffrey 2014-09-29 12:29:20 -07:00
parent 84e6ef72a8
commit 4fb20d1409
1 changed files with 9 additions and 7 deletions

View File

@ -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 || {});
};