|
@ -28,7 +28,7 @@ Storage.prototype.fetchWallet = function (id, cb) { |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
Storage.prototype.fetchTx = function (walletId, txProposalId, cb) { |
|
|
Storage.prototype.fetchTx = function (walletId, txProposalId, cb) { |
|
|
this.db.get('wallet-' + walletId + '-tx-' + txProposalId, function (err, data) { |
|
|
this.db.get('wallet-' + walletId + '-txp-' + txProposalId, function (err, data) { |
|
|
if (err) { |
|
|
if (err) { |
|
|
if (err.notFound) return cb(); |
|
|
if (err.notFound) return cb(); |
|
|
return cb(err); |
|
|
return cb(err); |
|
@ -45,8 +45,8 @@ Storage.prototype.storeAddress = function (walletId, address, cb) { |
|
|
this.db.put('wallet-' + walletId + '-address-' + address.address, address, cb); |
|
|
this.db.put('wallet-' + walletId + '-address-' + address.address, address, cb); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
Storage.prototype.storeTx = function (walletId, tx, cb) { |
|
|
Storage.prototype.storeTx = function (walletId, txp, cb) { |
|
|
this.db.put('wallet-' + walletId + '-tx-' + tx.txProposalId, tx, cb); |
|
|
this.db.put('wallet-' + walletId + '-txp-' + txp.txProposalId, txp, cb); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
Storage.prototype.fetchAddresses = function (walletId, cb) { |
|
|
Storage.prototype.fetchAddresses = function (walletId, cb) { |
|
|