do not convert wallet txs for now.

This commit is contained in:
Christopher Jeffrey 2014-11-13 15:50:27 -08:00
parent 6d994454d5
commit a9a5f7c4ad
1 changed files with 7 additions and 4 deletions

View File

@ -812,9 +812,11 @@ Wallet.prototype.getUnconfirmedBalance = function(options) {
// Convert to regular TX
Wallet.prototype.listTransactions =
Wallet.prototype.getTransactions = function(options) {
return bitcoindjs.walletListTransactions(options || {}).map(function(tx) {
return Transaction.fromHex(tx.hex);
});
var txs = bitcoindjs.walletListTransactions(options || {});
// return txs.map(function(tx) {
// return Transaction.fromHex(tx.hex);
// });
return txs;
};
Wallet.prototype.listReceivedByAddress =
@ -831,7 +833,8 @@ Wallet.prototype.getAccounts = function(options) {
// Convert to regular TX
Wallet.prototype.getTransaction = function(options) {
var tx = bitcoindjs.walletGetTransaction(options || {});
return tx ? Transaction.fromHex(tx.hex) : tx;
// return tx ? Transaction.fromHex(tx.hex) : tx;
return tx;
};
Wallet.prototype.backup = function(options) {