@atomiqlabs/lp-lib 15.0.15 → 15.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -435,6 +435,7 @@ class ToBtcLnAbs extends ToBtcBaseSwapHandler_1.ToBtcBaseSwapHandler {
|
|
|
435
435
|
const blockHeight = await this.lightning.getBlockheight();
|
|
436
436
|
abortSignal.throwIfAborted();
|
|
437
437
|
metadata.times.blockheightFetched = Date.now();
|
|
438
|
+
metadata.probeAndRouteTimeoutDelta = maxUsableCLTV;
|
|
438
439
|
const maxTimeoutBlockheight = BigInt(blockHeight) + maxUsableCLTV;
|
|
439
440
|
const req = {
|
|
440
441
|
request: pr,
|
|
@@ -442,6 +443,8 @@ class ToBtcLnAbs extends ToBtcBaseSwapHandler_1.ToBtcBaseSwapHandler {
|
|
|
442
443
|
maxFeeMtokens: maxFee * 1000n,
|
|
443
444
|
maxTimeoutHeight: Number(maxTimeoutBlockheight)
|
|
444
445
|
};
|
|
446
|
+
this.logger.debug(`checkAndGetNetworkFee(): Attempting to probe/route the payment amount: ${amountBD.toString(10)}` +
|
|
447
|
+
`, maxFee: ${maxFee.toString(10)}, expiryDelta: ${maxUsableCLTV.toString(10)}, expiryHeight: ${maxTimeoutBlockheight.toString(10)}, pr: ${pr}`);
|
|
445
448
|
let probeOrRouteResp = await this.lightning.probe(req);
|
|
446
449
|
metadata.times.probeResult = Date.now();
|
|
447
450
|
metadata.probeResponse = { ...probeOrRouteResp };
|
package/package.json
CHANGED
|
@@ -554,6 +554,7 @@ export class ToBtcLnAbs extends ToBtcBaseSwapHandler<ToBtcLnSwapAbs, ToBtcLnSwap
|
|
|
554
554
|
const blockHeight = await this.lightning.getBlockheight();
|
|
555
555
|
abortSignal.throwIfAborted();
|
|
556
556
|
metadata.times.blockheightFetched = Date.now();
|
|
557
|
+
metadata.probeAndRouteTimeoutDelta = maxUsableCLTV;
|
|
557
558
|
|
|
558
559
|
const maxTimeoutBlockheight = BigInt(blockHeight) + maxUsableCLTV;
|
|
559
560
|
|
|
@@ -564,6 +565,9 @@ export class ToBtcLnAbs extends ToBtcBaseSwapHandler<ToBtcLnSwapAbs, ToBtcLnSwap
|
|
|
564
565
|
maxTimeoutHeight: Number(maxTimeoutBlockheight)
|
|
565
566
|
};
|
|
566
567
|
|
|
568
|
+
this.logger.debug(`checkAndGetNetworkFee(): Attempting to probe/route the payment amount: ${amountBD.toString(10)}`+
|
|
569
|
+
`, maxFee: ${maxFee.toString(10)}, expiryDelta: ${maxUsableCLTV.toString(10)}, expiryHeight: ${maxTimeoutBlockheight.toString(10)}, pr: ${pr}`);
|
|
570
|
+
|
|
567
571
|
let probeOrRouteResp: ProbeAndRouteResponse = await this.lightning.probe(req);
|
|
568
572
|
metadata.times.probeResult = Date.now();
|
|
569
573
|
metadata.probeResponse = {...probeOrRouteResp};
|