test(wallet): tests now pass
This commit is contained in:
parent
8eab816b29
commit
e8e1516437
2 changed files with 28 additions and 28 deletions
|
|
@ -9,7 +9,7 @@ var txs = {};
|
|||
module.exports = {
|
||||
FINGERPRINT_NEW: FINGERPRINT_NEW,
|
||||
FINGERPRINT_FUNDS: FINGERPRINT_FUNDS,
|
||||
summonTransaction: function(fingerprint, tx, cb) {
|
||||
getPendingAmount: function(tx, cb) {
|
||||
var cachedTx = txs[tx.txId];
|
||||
if (cachedTx) cb(null, cachedTx);
|
||||
else {
|
||||
|
|
@ -17,6 +17,10 @@ module.exports = {
|
|||
cb(null, null);
|
||||
}
|
||||
},
|
||||
changeTxStatus: function(txId, newStatus, data, cb) {
|
||||
cb = typeof cb === 'function' ? cb : function() {};
|
||||
cb();
|
||||
},
|
||||
reportTransactionError: function(tx, err, status) {
|
||||
txs[tx.txId].err = err;
|
||||
txs[tx.txId].status = status;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue