From ed384b6ae923ced08f6cf686e8df77700136fe0f Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Tue, 24 Nov 2020 13:30:00 -0800 Subject: [PATCH 1/3] fix threaded keysend amount reducer --- dist/src/network/send.js | 4 ++-- dist/src/network/send.js.map | 2 +- dist/src/utils/lightning.js | 3 ++- dist/src/utils/lightning.js.map | 2 +- dist/src/utils/unlock.js | 1 - dist/src/utils/unlock.js.map | 2 +- src/network/send.ts | 4 ++-- src/utils/lightning.ts | 3 ++- src/utils/unlock.ts | 2 -- 9 files changed, 11 insertions(+), 12 deletions(-) diff --git a/dist/src/network/send.js b/dist/src/network/send.js index d78148f40..daa5dbd33 100644 --- a/dist/src/network/send.js +++ b/dist/src/network/send.js @@ -72,7 +72,7 @@ function sendMessage(params) { } let yes = true; let no = null; - // console.log('=> all contactIds',contactIds) + console.log('=> sending to', contactIds.length, 'contacts'); yield asyncForEach(contactIds, (contactId) => __awaiter(this, void 0, void 0, function* () { if (contactId == 1) { // dont send to self return; @@ -85,7 +85,7 @@ function sendMessage(params) { if (destkey === skipPubKey) { return; // skip (for tribe owner broadcasting, not back to the sender) } - console.log('-> sending to ', contact.id, destkey); + // console.log('-> sending to ', contact.id, destkey) let mqttTopic = networkType === 'mqtt' ? `${destkey}/${chatUUID}` : ''; // sending a payment to one subscriber, buying a pic from OG poster // or boost to og poster diff --git a/dist/src/network/send.js.map b/dist/src/network/send.js.map index bbd559096..3cbb798d6 100644 --- a/dist/src/network/send.js.map +++ b/dist/src/network/send.js.map @@ -1 +1 @@ -{"version":3,"file":"send.js","sourceRoot":"","sources":["../../../src/network/send.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAAkC;AAClC,0CAAyC;AACzC,0CAAyC;AACzC,sCAA+D;AAC/D,0CAAyC;AACzC,gEAAuE;AACvE,uCAAwC;AACxC,yCAAwC;AACxC,4CAAoC;AAIpC,SAAsB,WAAW,CAAC,MAAM;;QACvC,MAAM,EAAE,IAAI,EAAE,IAAI,EA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QACD,OAAO,EAAE,OAAO;QAChB,MAAM,EAAE;YACP,OAAO,EAAE,MAAM,CAAC,SAAS;YACzB,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;YACvC,IAAI,EAAE,MAAM,CAAC,IAAI,IAAI,mBAAS,CAAC,UAAU,CAAC,MAAM;SAGhD;KACD,CAAA;AACF,CAAC;AAvBD,wBAuBC;AAED,SAAe,YAAY,CAAC,KAAK,EAAE,QAAQ;;QAC1C,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;YAChD,MAAM,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;SAC7C;IACF,CAAC;CAAA;AACD,SAAe,KAAK,CAAC,EAAE;;QACtB,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAA;IACvD,CAAC;CAAA;AAED,oCAAoC;AACpC,iGAAiG;AACjG,IAAI;AACJ,oCAAoC;AACpC,yFAAyF;AACzF,IAAI"} \ No newline at end of file +{"version":3,"file":"send.js","sourceRoot":"","sources":["../../../src/network/send.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAAkC;AAClC,0CAAyC;AACzC,0CAAyC;AACzC,sCAA+D;AAC/D,0CAAyC;AACzC,gEAAuE;AACvE,uCAAwC;AACxC,yCAAwC;AACxC,4CAAoC;AAIpC,SAAsB,WAAW,CAAC,MAAM;;QACvC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,iBAAiB,EAAE,GAAG,MAAM,CAAA;QACpH,IAAG,CAAC,IAAI,IAAI,CAAC,MAAM;YAAE,OAAM;QAE3B,M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AC,IAAI,IAAI,mBAAS,CAAC,UAAU,CAAC,MAAM;SAGhD;KACD,CAAA;AACF,CAAC;AAvBD,wBAuBC;AAED,SAAe,YAAY,CAAC,KAAK,EAAE,QAAQ;;QAC1C,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;YAChD,MAAM,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;SAC7C;IACF,CAAC;CAAA;AACD,SAAe,KAAK,CAAC,EAAE;;QACtB,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAA;IACvD,CAAC;CAAA;AAED,oCAAoC;AACpC,iGAAiG;AACjG,IAAI;AACJ,oCAAoC;AACpC,yFAAyF;AACzF,IAAI"} \ No newline at end of file diff --git a/dist/src/utils/lightning.js b/dist/src/utils/lightning.js index 52ad62359..47d4924bc 100644 --- a/dist/src/utils/lightning.js +++ b/dist/src/utils/lightning.js @@ -207,7 +207,8 @@ function keysendMessage(opts) { yield asyncForEach(Array.from(Array(n)), (u, i) => __awaiter(this, void 0, void 0, function* () { const spliti = Math.ceil(opts.data.length / n); const m = opts.data.substr(i * spliti, spliti); - const amt = Math.round(opts.amt / n); + const isLastThread = i === n - 1; + const amt = isLastThread ? opts.amt : constants_1.default.min_sat_amount; try { res = yield keysend(Object.assign(Object.assign({}, opts), { amt, data: `${ts}_${i}_${n}_${m}` })); success = true; diff --git a/dist/src/utils/lightning.js.map b/dist/src/utils/lightning.js.map index f6a764e0d..759ca7d76 100644 --- a/dist/src/utils/lightning.js.map +++ b/dist/src/utils/lightning.js.map @@ -1 +1 @@ -{"version":3,"file":"lightning.js","sourceRoot":"","sources":["../../../src/utils/lightning.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,yCAAwC;AACxC,yBAAwB;AACxB,6BAA4B;A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,CAAC,CAAA;iBACjB;qBAAM;oBACN,MAAM,CAAC,GAAG,CAAC,CAAA;iBACX;YACF,CAAC,CAAC,CAAC;QACJ,CAAC,CAAC,CAAA;IACH,CAAC;CAAA;AAgDC,oCAAY;AA9Cd,SAAe,cAAc;;QAC5B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAC,MAAM,EAAC,EAAE;YACpC,MAAM,SAAS,GAAG,aAAa,EAAE,CAAA;YACjC,SAAS,CAAC,cAAc,CAAC,EAAE,EAAE,UAAS,GAAG,EAAE,QAAQ;gBAClD,IAAI,GAAG,IAAI,IAAI,EAAE;oBAChB,OAAO,CAAC,QAAQ,CAAC,CAAA;iBACjB;qBAAM;oBACN,MAAM,CAAC,GAAG,CAAC,CAAA;iBACX;YACF,CAAC,CAAC,CAAC;QACJ,CAAC,CAAC,CAAA;IACH,CAAC;CAAA;AAoCC,wCAAc;AAlChB,SAAS,aAAa,CAAC,GAAG;IACzB,IAAI,IAAI,GAAc,EAAE,CAAC;IACzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAG,EAAE;QAC5C,IAAI,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QACjD,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KACd;IACF,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACtB,CAAC"} \ No newline at end of file +{"version":3,"file":"lightning.js","sourceRoot":"","sources":["../../../src/utils/lightning.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,yCAAwC;AACxC,yBAAwB;AACxB,6BAA4B;AAC5B,wCAAmC;AACnC,iCAAgC;AAChC,iCAAgC;AAChC,6BAA4B;AAC5B,4CAAoC;AACpC,yCAAsC;AAEtC,kDAAkD;AAClD,MAAM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,MAAM,CAAC,GAAG,CAAC,CAAA;iBACX;YACF,CAAC,CAAC,CAAC;QACJ,CAAC,CAAC,CAAA;IACH,CAAC;CAAA;AAgDC,oCAAY;AA9Cd,SAAe,cAAc;;QAC5B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAC,MAAM,EAAC,EAAE;YACpC,MAAM,SAAS,GAAG,aAAa,EAAE,CAAA;YACjC,SAAS,CAAC,cAAc,CAAC,EAAE,EAAE,UAAS,GAAG,EAAE,QAAQ;gBAClD,IAAI,GAAG,IAAI,IAAI,EAAE;oBAChB,OAAO,CAAC,QAAQ,CAAC,CAAA;iBACjB;qBAAM;oBACN,MAAM,CAAC,GAAG,CAAC,CAAA;iBACX;YACF,CAAC,CAAC,CAAC;QACJ,CAAC,CAAC,CAAA;IACH,CAAC;CAAA;AAoCC,wCAAc;AAlChB,SAAS,aAAa,CAAC,GAAG;IACzB,IAAI,IAAI,GAAc,EAAE,CAAC;IACzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAG,EAAE;QAC5C,IAAI,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QACjD,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KACd;IACF,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACtB,CAAC"} \ No newline at end of file diff --git a/dist/src/utils/unlock.js b/dist/src/utils/unlock.js index a3262be5b..440ee9948 100644 --- a/dist/src/utils/unlock.js +++ b/dist/src/utils/unlock.js @@ -15,7 +15,6 @@ const fs = require('fs'); const readline = require('readline'); const env = process.env.NODE_ENV || 'development'; const config = require(path.join(__dirname, '../../config/app.json'))[env]; -console.log(JSON.stringify(config, null, 2)); /* "lnd_pwd_path": "/relay/.lnd/.lndpwd" */ diff --git a/dist/src/utils/unlock.js.map b/dist/src/utils/unlock.js.map index faae838d4..0f9f1e224 100644 --- a/dist/src/utils/unlock.js.map +++ b/dist/src/utils/unlock.js.map @@ -1 +1 @@ -{"version":3,"file":"unlock.js","sourceRoot":"","sources":["../../../src/utils/unlock.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,6BAA4B;AAC5B,2CAA0C;AAC1C,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;AACxB,MAAM,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAErC,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,aAAa,CAAC;AAClD,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,uBAAuB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAA;AAE1E,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAC,IAAI,EAAC,CAAC,CAAC,CAAC,CAAA;AAE1C;;EAEE;AAEF,SAAsB,cAAc;;QAChC,MAAM,CAAC,GAAG,MAAM,CAAC,YAAY,CAAA;QAC7B,IAAI,CAAC,CAAC;YAAE,OAAM;QAEd,OAAO,CAAC,GAAG,CAAC,KAAK,EAAC,CAAC,CAAC,CAAA;QAEpB,IAAI,GAAG,GAAG,MAAM,YAAY,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QAClD,IAAG,CAAC,GAAG;YAAE,OAAM;QAEf,OAAO,CAAC,GAAG,CAAC,KAAK,EAAC,GAAG,EAAC,OAAO,GAAG,CAAC,CAAA;QAEjC,IAAI;YACA,MAAM,wBAAY,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAA;SAClC;QAAC,OAAM,CAAC,EAAE;YACP,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAC,CAAC,CAAC,CAAA;SACnC;IACL,CAAC;CAAA;AAhBD,wCAgBC;AAED,SAAe,YAAY,CAAC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O,CAAC,GAAG,CAAC,KAAK,EAAC,GAAG,EAAC,OAAO,GAAG,CAAC,CAAA;QAEjC,IAAI;YACA,MAAM,wBAAY,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAA;SAClC;QAAC,OAAM,CAAC,EAAE;YACP,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAC,CAAC,CAAC,CAAA;SACnC;IACL,CAAC;CAAA;AAhBD,wCAgBC;AAED,SAAe,YAAY,CAAC,UAAU;;QAClC,MAAM,QAAQ,GAAG,EAAE,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;QACjD,MAAM,MAAM,GAAG,QAAQ,CAAC,eAAe,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;QAC7D,MAAM,IAAI,GAAG,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YACvC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;gBACvB,MAAM,CAAC,KAAK,EAAE,CAAC;gBACf,OAAO,CAAC,IAAI,CAAC,CAAC;YAClB,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;QACH,QAAQ,CAAC,KAAK,EAAE,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;CAAA"} \ No newline at end of file diff --git a/src/network/send.ts b/src/network/send.ts index 28b7cf211..03c82e7ca 100644 --- a/src/network/send.ts +++ b/src/network/send.ts @@ -66,7 +66,7 @@ export async function sendMessage(params) { let yes:any = true let no:any = null - // console.log('=> all contactIds',contactIds) + console.log('=> sending to',contactIds.length,'contacts') await asyncForEach(contactIds, async contactId => { if (contactId == 1) { // dont send to self return @@ -80,7 +80,7 @@ export async function sendMessage(params) { if(destkey===skipPubKey) { return // skip (for tribe owner broadcasting, not back to the sender) } - console.log('-> sending to ', contact.id, destkey) + // console.log('-> sending to ', contact.id, destkey) let mqttTopic = networkType==='mqtt' ? `${destkey}/${chatUUID}` : '' diff --git a/src/utils/lightning.ts b/src/utils/lightning.ts index cbfbce2b4..80a26e167 100644 --- a/src/utils/lightning.ts +++ b/src/utils/lightning.ts @@ -194,7 +194,8 @@ async function keysendMessage(opts) { await asyncForEach(Array.from(Array(n)), async(u,i)=> { const spliti = Math.ceil(opts.data.length/n) const m = opts.data.substr(i*spliti, spliti) - const amt = Math.round(opts.amt/n) + const isLastThread = i===n-1 + const amt = isLastThread ? opts.amt : constants.min_sat_amount try { res = await keysend({ ...opts, amt, // split the amt too diff --git a/src/utils/unlock.ts b/src/utils/unlock.ts index 9ba6c2e7b..36cf238a3 100644 --- a/src/utils/unlock.ts +++ b/src/utils/unlock.ts @@ -6,8 +6,6 @@ const readline = require('readline'); const env = process.env.NODE_ENV || 'development'; const config = require(path.join(__dirname, '../../config/app.json'))[env] -console.log(JSON.stringify(config,null,2)) - /* "lnd_pwd_path": "/relay/.lnd/.lndpwd" */ From b86cfdb8ebfd98638910efb11c559a1edd3f9f86 Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Tue, 24 Nov 2020 13:45:51 -0800 Subject: [PATCH 2/3] weave logs --- dist/src/network/receive.js | 5 ++++- dist/src/network/receive.js.map | 2 +- dist/src/utils/lightning.js | 3 +++ dist/src/utils/lightning.js.map | 2 +- src/network/receive.ts | 6 +++++- src/utils/lightning.ts | 3 +++ 6 files changed, 17 insertions(+), 4 deletions(-) diff --git a/dist/src/network/receive.js b/dist/src/network/receive.js index a971a6074..f0749c7a2 100644 --- a/dist/src/network/receive.js +++ b/dist/src/network/receive.js @@ -100,8 +100,10 @@ function onReceive(payload) { } // CHECK PRICES if (needsPricePerMessage) { - if (payload.message.amount < chat.pricePerMessage) + if (payload.message.amount < chat.pricePerMessage) { + console.log("===> WEAVE AMOUNT IS TOO LOW", payload.message.amount, chat.pricePerMessage); doAction = false; + } if (chat.escrowAmount) { timers.addTimer({ amount: chat.escrowAmount, @@ -385,6 +387,7 @@ function parseKeysendInvoice(i) { if (payload) { const dat = payload; if (value && dat && dat.message) { + console.log("===> WEAVE TRUE VALUE:", value); dat.message.amount = value; // ADD IN TRUE VALUE } dat.network_type = constants_1.default.network_types.lightning; diff --git a/dist/src/network/receive.js.map b/dist/src/network/receive.js.map index 8786a0b50..bbf5e51ae 100644 --- a/dist/src/network/receive.js.map +++ b/dist/src/network/receive.js.map @@ -1 +1 @@ -{"version":3,"file":"receive.js","sourceRoot":"","sources":["../../../src/network/receive.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAAqC;AACrC,kDAA0C;AAC1C,gDAAsC;AACtC,0CAAyC;AACzC,kDAA2D;AAC3D,0CAAyC;AACzC,sCAAkC;AAClC,iCAAkC;AAClC,qCAA8G;AAC9G,sCAAiE;AACjE,yCAA8B;AAC9B,0CAAyC;AACzC,0CAAyC;AACzC,gCAAyC;AACzC,4CAAoC;AACpC,2CAA0C;AAE1C;;;;EAIE;AAEF,MAAM,QAAQ,GAAG,mBAAS,CAAC,aAAa,CAAA;AAE3B,QAAA,cAAc,GAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC,WAAW;IAC3D,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK;CACpD,CAAA;AACD,MAAM,aAAa,GAAC;IACnB,QAAQ,CAAC,UAAU;CACnB,CAAA;AACD,MAAM,4BAA4B,GAAG;IACpC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC,KAAK;CACrD,CAAA;AACY,QAAA,aAAa,GAAC;IAC1B,QAAQ,CAAC,OAAO;IAChB,QAAQ,CAAC,UAAU;IACnB,QAAQ,CAAC,WAAW;IACpB,QAAQ,CAAC,OAAO;CAChB,CAAA;AACD,MAAM,QAAQ,GAAC;IACd,mBAAS,CAAC,aAAa,CAAC,WAAW;IACnC,mBAAS,CAAC,aAAa,CAAC,OAAO;IAC/B,mBAAS,CAAC,aAAa,CAAC,OAAO;CAC/B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CAAC,CAAC,EAAC;QAClC,cAAc;QACd,MAAM,GAAG,GAAG,MAAM,CAAC,EAAE,CAAC,CAAA;QACtB,IAAI,OAAO,GAAG,EAAE,CAAA;QAChB,GAAG,CAAC,KAAK,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAC,CAAC,EAAC,EAAE,CAAA,CAAC,CAAC,CAAC,GAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAA,EAAE;YAC7C,OAAO,IAAI,GAAG,CAAC,CAAC,CAAA;QACjB,CAAC,CAAC,CAAA;QACF,OAAO,MAAM,CAAC,EAAE,CAAC,CAAA;QACjB,OAAO,OAAO,CAAA;KACd;AACF,CAAC"} \ No newline at end of file diff --git a/dist/src/utils/lightning.js b/dist/src/utils/lightning.js index 47d4924bc..a3d3d3306 100644 --- a/dist/src/utils/lightning.js +++ b/dist/src/utils/lightning.js @@ -204,11 +204,14 @@ function keysendMessage(opts) { let res = null; const ts = new Date().valueOf(); // WEAVE MESSAGE If TOO LARGE + console.log("===> WEAVE"); yield asyncForEach(Array.from(Array(n)), (u, i) => __awaiter(this, void 0, void 0, function* () { const spliti = Math.ceil(opts.data.length / n); const m = opts.data.substr(i * spliti, spliti); const isLastThread = i === n - 1; + console.log("===> WEAVE i:", i); const amt = isLastThread ? opts.amt : constants_1.default.min_sat_amount; + console.log("===> WEAVE amt:", amt); try { res = yield keysend(Object.assign(Object.assign({}, opts), { amt, data: `${ts}_${i}_${n}_${m}` })); success = true; diff --git a/dist/src/utils/lightning.js.map b/dist/src/utils/lightning.js.map index 759ca7d76..5a5060886 100644 --- a/dist/src/utils/lightning.js.map +++ b/dist/src/utils/lightning.js.map @@ -1 +1 @@ -{"version":3,"file":"lightning.js","sourceRoot":"","sources":["../../../src/utils/lightning.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,yCAAwC;AACxC,yBAAwB;AACxB,6BAA4B;AAC5B,wCAAmC;AACnC,iCAAgC;AAChC,iCAAgC;AACh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AI,EAAE;oBAChB,OAAO,CAAC,QAAQ,CAAC,CAAA;iBACjB;qBAAM;oBACN,MAAM,CAAC,GAAG,CAAC,CAAA;iBACX;YACF,CAAC,CAAC,CAAC;QACJ,CAAC,CAAC,CAAA;IACH,CAAC;CAAA;AAgDC,oCAAY;AA9Cd,SAAe,cAAc;;QAC5B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAC,MAAM,EAAC,EAAE;YACpC,MAAM,SAAS,GAAG,aAAa,EAAE,CAAA;YACjC,SAAS,CAAC,cAAc,CAAC,EAAE,EAAE,UAAS,GAAG,EAAE,QAAQ;gBAClD,IAAI,GAAG,IAAI,IAAI,EAAE;oBAChB,OAAO,CAAC,QAAQ,CAAC,CAAA;iBACjB;qBAAM;oBACN,MAAM,CAAC,GAAG,CAAC,CAAA;iBACX;YACF,CAAC,CAAC,CAAC;QACJ,CAAC,CAAC,CAAA;IACH,CAAC;CAAA;AAoCC,wCAAc;AAlChB,SAAS,aAAa,CAAC,GAAG;IACzB,IAAI,IAAI,GAAc,EAAE,CAAC;IACzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAG,EAAE;QAC5C,IAAI,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QACjD,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KACd;IACF,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACtB,CAAC"} \ No newline at end of file +{"version":3,"file":"lightning.js","sourceRoot":"","sources":["../../../src/utils/lightning.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,yCAAwC;AACxC,yBAAwB;AACxB,6BAA4B;AAC5B,wCAAmC;AACnC,iCAAgC;AAChC,iCAAgC;AAChC,6BAA4B;AAC5B,4CAAoC;AACpC,y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src/network/receive.ts +++ b/src/network/receive.ts @@ -89,7 +89,10 @@ async function onReceive(payload){ } // CHECK PRICES if(needsPricePerMessage) { - if(payload.message.amount WEAVE AMOUNT IS TOO LOW", payload.message.amount, chat.pricePerMessage) + doAction=false + } if(chat.escrowAmount) { timers.addTimer({ // pay them back amount: chat.escrowAmount, @@ -353,6 +356,7 @@ export async function parseKeysendInvoice(i){ if(payload){ const dat = payload if(value && dat && dat.message){ + console.log("===> WEAVE TRUE VALUE:", value) dat.message.amount = value // ADD IN TRUE VALUE } dat.network_type = constants.network_types.lightning diff --git a/src/utils/lightning.ts b/src/utils/lightning.ts index 80a26e167..5c302224c 100644 --- a/src/utils/lightning.ts +++ b/src/utils/lightning.ts @@ -191,11 +191,14 @@ async function keysendMessage(opts) { let res:any = null const ts = new Date().valueOf() // WEAVE MESSAGE If TOO LARGE + console.log("===> WEAVE") await asyncForEach(Array.from(Array(n)), async(u,i)=> { const spliti = Math.ceil(opts.data.length/n) const m = opts.data.substr(i*spliti, spliti) const isLastThread = i===n-1 + console.log("===> WEAVE i:",i) const amt = isLastThread ? opts.amt : constants.min_sat_amount + console.log("===> WEAVE amt:",amt) try { res = await keysend({ ...opts, amt, // split the amt too From 42935eada0efb72d126ada46b20b5f13513829d1 Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Tue, 24 Nov 2020 13:55:05 -0800 Subject: [PATCH 3/3] fix weaving, cleanup --- dist/src/network/receive.js | 2 -- dist/src/network/receive.js.map | 2 +- dist/src/utils/lightning.js | 3 --- dist/src/utils/lightning.js.map | 2 +- src/network/receive.ts | 2 -- src/utils/lightning.ts | 3 --- 6 files changed, 2 insertions(+), 12 deletions(-) diff --git a/dist/src/network/receive.js b/dist/src/network/receive.js index f0749c7a2..e55937a64 100644 --- a/dist/src/network/receive.js +++ b/dist/src/network/receive.js @@ -101,7 +101,6 @@ function onReceive(payload) { // CHECK PRICES if (needsPricePerMessage) { if (payload.message.amount < chat.pricePerMessage) { - console.log("===> WEAVE AMOUNT IS TOO LOW", payload.message.amount, chat.pricePerMessage); doAction = false; } if (chat.escrowAmount) { @@ -387,7 +386,6 @@ function parseKeysendInvoice(i) { if (payload) { const dat = payload; if (value && dat && dat.message) { - console.log("===> WEAVE TRUE VALUE:", value); dat.message.amount = value; // ADD IN TRUE VALUE } dat.network_type = constants_1.default.network_types.lightning; diff --git a/dist/src/network/receive.js.map b/dist/src/network/receive.js.map index bbf5e51ae..39b9cf1a2 100644 --- a/dist/src/network/receive.js.map +++ b/dist/src/network/receive.js.map @@ -1 +1 @@ -{"version":3,"file":"receive.js","sourceRoot":"","sources":["../../../src/network/receive.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAAqC;AACrC,kDAA0C;AAC1C,gDAAsC;AACtC,0CAAyC;AACzC,kDAA2D;AAC3D,0CAAyC;AACzC,sCAAkC;AAClC,iCAAkC;AAClC,qCAA8G;AAC9G,sCAAiE;AACjE,yCAA8B;AAC9B,0CAAyC;AACzC,0CAAyC;AACzC,gCAAyC;AACzC,4CAAoC;AACpC,2CAA0C;AAE1C;;;;EAIE;AAEF,MAAM,QAAQ,GAAG,mBAAS,CAAC,aAAa,CAAA;AAE3B,QAAA,cAAc,GAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC,WAAW;IAC3D,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK;CACpD,CAAA;AACD,MAAM,aAAa,GAAC;IACnB,QAAQ,CAAC,UAAU;CACnB,CAAA;AACD,MAAM,4BAA4B,GAAG;IACpC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC,KAAK;CACrD,CAAA;AACY,QAAA,aAAa,GAAC;IAC1B,QAAQ,CAAC,OAAO;IAChB,QAAQ,CAAC,UAAU;IACnB,QAAQ,CAAC,WAAW;IACpB,QAAQ,CAAC,OAAO;CAChB,CAAA;AACD,MAA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AC,CAAC,CAAC,CAAC,EAAC,CAAC,EAAC,CAAC,EAAC,CAAC,EAAC,CAAC,CAAA;IAC9D,IAAG,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,KAAG,QAAQ,CAAC,CAAC,CAAC,EAAC;QAClC,cAAc;QACd,MAAM,GAAG,GAAG,MAAM,CAAC,EAAE,CAAC,CAAA;QACtB,IAAI,OAAO,GAAG,EAAE,CAAA;QAChB,GAAG,CAAC,KAAK,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAC,CAAC,EAAC,EAAE,CAAA,CAAC,CAAC,CAAC,GAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAA,EAAE;YAC7C,OAAO,IAAI,GAAG,CAAC,CAAC,CAAA;QACjB,CAAC,CAAC,CAAA;QACF,OAAO,MAAM,CAAC,EAAE,CAAC,CAAA;QACjB,OAAO,OAAO,CAAA;KACd;AACF,CAAC"} \ No newline at end of file diff --git a/dist/src/utils/lightning.js b/dist/src/utils/lightning.js index a3d3d3306..47d4924bc 100644 --- a/dist/src/utils/lightning.js +++ b/dist/src/utils/lightning.js @@ -204,14 +204,11 @@ function keysendMessage(opts) { let res = null; const ts = new Date().valueOf(); // WEAVE MESSAGE If TOO LARGE - console.log("===> WEAVE"); yield asyncForEach(Array.from(Array(n)), (u, i) => __awaiter(this, void 0, void 0, function* () { const spliti = Math.ceil(opts.data.length / n); const m = opts.data.substr(i * spliti, spliti); const isLastThread = i === n - 1; - console.log("===> WEAVE i:", i); const amt = isLastThread ? opts.amt : constants_1.default.min_sat_amount; - console.log("===> WEAVE amt:", amt); try { res = yield keysend(Object.assign(Object.assign({}, opts), { amt, data: `${ts}_${i}_${n}_${m}` })); success = true; diff --git a/dist/src/utils/lightning.js.map b/dist/src/utils/lightning.js.map index 5a5060886..759ca7d76 100644 --- a/dist/src/utils/lightning.js.map +++ b/dist/src/utils/lightning.js.map @@ -1 +1 @@ -{"version":3,"file":"lightning.js","sourceRoot":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ACd;IACF,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACtB,CAAC"} \ No newline at end of file diff --git a/src/network/receive.ts b/src/network/receive.ts index 7c8fc4fc0..745297f50 100644 --- a/src/network/receive.ts +++ b/src/network/receive.ts @@ -90,7 +90,6 @@ async function onReceive(payload){ // CHECK PRICES if(needsPricePerMessage) { if(payload.message.amount WEAVE AMOUNT IS TOO LOW", payload.message.amount, chat.pricePerMessage) doAction=false } if(chat.escrowAmount) { @@ -356,7 +355,6 @@ export async function parseKeysendInvoice(i){ if(payload){ const dat = payload if(value && dat && dat.message){ - console.log("===> WEAVE TRUE VALUE:", value) dat.message.amount = value // ADD IN TRUE VALUE } dat.network_type = constants.network_types.lightning diff --git a/src/utils/lightning.ts b/src/utils/lightning.ts index 5c302224c..80a26e167 100644 --- a/src/utils/lightning.ts +++ b/src/utils/lightning.ts @@ -191,14 +191,11 @@ async function keysendMessage(opts) { let res:any = null const ts = new Date().valueOf() // WEAVE MESSAGE If TOO LARGE - console.log("===> WEAVE") await asyncForEach(Array.from(Array(n)), async(u,i)=> { const spliti = Math.ceil(opts.data.length/n) const m = opts.data.substr(i*spliti, spliti) const isLastThread = i===n-1 - console.log("===> WEAVE i:",i) const amt = isLastThread ? opts.amt : constants.min_sat_amount - console.log("===> WEAVE amt:",amt) try { res = await keysend({ ...opts, amt, // split the amt too