do not convert wallet txs for now.
This commit is contained in:
parent
6d994454d5
commit
a9a5f7c4ad
|
@ -812,9 +812,11 @@ Wallet.prototype.getUnconfirmedBalance = function(options) {
|
||||||
// Convert to regular TX
|
// Convert to regular TX
|
||||||
Wallet.prototype.listTransactions =
|
Wallet.prototype.listTransactions =
|
||||||
Wallet.prototype.getTransactions = function(options) {
|
Wallet.prototype.getTransactions = function(options) {
|
||||||
return bitcoindjs.walletListTransactions(options || {}).map(function(tx) {
|
var txs = bitcoindjs.walletListTransactions(options || {});
|
||||||
return Transaction.fromHex(tx.hex);
|
// return txs.map(function(tx) {
|
||||||
});
|
// return Transaction.fromHex(tx.hex);
|
||||||
|
// });
|
||||||
|
return txs;
|
||||||
};
|
};
|
||||||
|
|
||||||
Wallet.prototype.listReceivedByAddress =
|
Wallet.prototype.listReceivedByAddress =
|
||||||
|
@ -831,7 +833,8 @@ Wallet.prototype.getAccounts = function(options) {
|
||||||
// Convert to regular TX
|
// Convert to regular TX
|
||||||
Wallet.prototype.getTransaction = function(options) {
|
Wallet.prototype.getTransaction = function(options) {
|
||||||
var tx = bitcoindjs.walletGetTransaction(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) {
|
Wallet.prototype.backup = function(options) {
|
||||||
|
|
Loading…
Reference in New Issue