diff --git a/lib/http/rpc.js b/lib/http/rpc.js index dbf036cc..303f03b1 100644 --- a/lib/http/rpc.js +++ b/lib/http/rpc.js @@ -3168,7 +3168,7 @@ RPC.prototype.getwalletinfo = co(function* getwalletinfo(args) { return { walletid: this.wallet.id, - walletversion: 0, + walletversion: 6, balance: +utils.btc(balance.unconfirmed), unconfirmed_balance: +utils.btc(balance.unconfirmed), txcount: this.wallet.state.tx, diff --git a/lib/wallet/wallet.js b/lib/wallet/wallet.js index 275b38a2..b01c3388 100644 --- a/lib/wallet/wallet.js +++ b/lib/wallet/wallet.js @@ -2550,10 +2550,6 @@ Wallet.prototype.__defineGetter__('state', function() { return this.txdb.state; }); -Wallet.prototype.__defineGetter__('balance', function() { - return this.txdb.balance; -}); - /** * Convert the wallet to a more inspection-friendly object. * @returns {Object} diff --git a/lib/wallet/walletdb.js b/lib/wallet/walletdb.js index 769cf5e0..bd6131b9 100644 --- a/lib/wallet/walletdb.js +++ b/lib/wallet/walletdb.js @@ -1176,7 +1176,7 @@ WalletDB.prototype.getHashes = function getHashes() { }; /** - * Get all tx hashes. + * Get all outpoints. * @returns {Promise} */