Compare commits
2 Commits
9563cb9714
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
9b81cc6287
|
|||
|
947c7f7056
|
@@ -363,7 +363,7 @@ export class User {
|
|||||||
}
|
}
|
||||||
if (invoice.decoded) {
|
if (invoice.decoded) {
|
||||||
invoice.timestamp = invoice.decoded.timestamp;
|
invoice.timestamp = invoice.decoded.timestamp;
|
||||||
invoice.memo = invoice.decoded.description;
|
invoice.memo = invoice.memo || invoice.decoded.description;
|
||||||
}
|
}
|
||||||
if (invoice.payment_preimage) {
|
if (invoice.payment_preimage) {
|
||||||
invoice.payment_preimage = Buffer.from(invoice.payment_preimage, 'hex').toString('hex');
|
invoice.payment_preimage = Buffer.from(invoice.payment_preimage, 'hex').toString('hex');
|
||||||
@@ -504,7 +504,7 @@ export class User {
|
|||||||
* @returns {Promise<void>}
|
* @returns {Promise<void>}
|
||||||
*/
|
*/
|
||||||
async accountForPosibleTxids() {
|
async accountForPosibleTxids() {
|
||||||
return; // TODO: remove
|
// return; // TODO: remove
|
||||||
let onchain_txs = await this.getTxs();
|
let onchain_txs = await this.getTxs();
|
||||||
let imported_txids = await this._redis.lrange('imported_txids_for_' + this._userid, 0, -1);
|
let imported_txids = await this._redis.lrange('imported_txids_for_' + this._userid, 0, -1);
|
||||||
for (let tx of onchain_txs) {
|
for (let tx of onchain_txs) {
|
||||||
|
|||||||
@@ -197,6 +197,7 @@ router.post('/addinvoice', postLimiter, async function (req, res) {
|
|||||||
async function (err, info) {
|
async function (err, info) {
|
||||||
if (err) return errorLnd(res);
|
if (err) return errorLnd(res);
|
||||||
|
|
||||||
|
info.memo = req.body.memo;
|
||||||
info.pay_req = info.payment_request; // client backwards compatibility
|
info.pay_req = info.payment_request; // client backwards compatibility
|
||||||
await u.saveUserInvoice(info);
|
await u.saveUserInvoice(info);
|
||||||
await invoice.savePreimage(r_preimage);
|
await invoice.savePreimage(r_preimage);
|
||||||
|
|||||||
Reference in New Issue
Block a user