lnlink-server 1.1.6 → 1.1.7
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.
- package/dist/app.js +155 -155
- package/dist/build-info.json +1 -1
- package/dist/index.js +20 -12
- package/dist/index.js.map +2 -2
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/build-info.json
CHANGED
package/dist/index.js
CHANGED
|
@@ -7181,7 +7181,7 @@ var require_package = __commonJS({
|
|
|
7181
7181
|
"package.json"(exports2, module2) {
|
|
7182
7182
|
module2.exports = {
|
|
7183
7183
|
name: "lnlink-server",
|
|
7184
|
-
version: "1.1.
|
|
7184
|
+
version: "1.1.7",
|
|
7185
7185
|
private: false,
|
|
7186
7186
|
main: "dist/index.js",
|
|
7187
7187
|
files: [
|
|
@@ -7810,13 +7810,19 @@ var require_lndService = __commonJS({
|
|
|
7810
7810
|
}
|
|
7811
7811
|
if (state >= WALLET_STATE_CODE.RPC_ACTIVE && isMacaroonDecrypted && state !== WALLET_STATE_CODE.WAITING_TO_START) {
|
|
7812
7812
|
const lightningService = getLightningService();
|
|
7813
|
-
const
|
|
7814
|
-
getMainLnlinkConfig()
|
|
7815
|
-
|
|
7816
|
-
|
|
7817
|
-
|
|
7818
|
-
|
|
7819
|
-
|
|
7813
|
+
const promises = [
|
|
7814
|
+
getMainLnlinkConfig()
|
|
7815
|
+
];
|
|
7816
|
+
if (state >= WALLET_STATE_CODE.SERVER_ACTIVE) {
|
|
7817
|
+
promises.push(getCacheNodeInfo(true));
|
|
7818
|
+
promises.push(lightningService.walletBalance());
|
|
7819
|
+
promises.push(lightningService.listPeers({}));
|
|
7820
|
+
}
|
|
7821
|
+
const ret = await Promise.allSettled(promises);
|
|
7822
|
+
const configResult = ret[0];
|
|
7823
|
+
const infoResult = state >= WALLET_STATE_CODE.SERVER_ACTIVE ? ret[1] : { status: "rejected" };
|
|
7824
|
+
const balanceResult = state >= WALLET_STATE_CODE.SERVER_ACTIVE ? ret[2] : { status: "rejected" };
|
|
7825
|
+
const peersResult = state >= WALLET_STATE_CODE.SERVER_ACTIVE ? ret[3] : { status: "rejected" };
|
|
7820
7826
|
let settings = null;
|
|
7821
7827
|
if (configResult.status === "fulfilled") {
|
|
7822
7828
|
settings = configResult.value?.settings;
|
|
@@ -7835,9 +7841,11 @@ var require_lndService = __commonJS({
|
|
|
7835
7841
|
address: peer.address
|
|
7836
7842
|
};
|
|
7837
7843
|
});
|
|
7838
|
-
|
|
7839
|
-
|
|
7840
|
-
|
|
7844
|
+
if (state >= WALLET_STATE_CODE.SERVER_ACTIVE) {
|
|
7845
|
+
logger2.info(
|
|
7846
|
+
`LND lndService combineNodeInfoAsync peer:${peers.map((item) => item.pub_key)}`
|
|
7847
|
+
);
|
|
7848
|
+
}
|
|
7841
7849
|
const errors = ret?.filter((p) => p.status === "rejected")?.map((p) => p.reason);
|
|
7842
7850
|
if (errors && errors.length > 0) {
|
|
7843
7851
|
logger2.error(
|
|
@@ -12072,7 +12080,7 @@ var require_info = __commonJS({
|
|
|
12072
12080
|
] = await Promise.allSettled([
|
|
12073
12081
|
rgbClient.node.getNodeInfo(),
|
|
12074
12082
|
rgbClient.onchain.getBtcBalance({
|
|
12075
|
-
skip_sync:
|
|
12083
|
+
skip_sync: false
|
|
12076
12084
|
// Skip sync for faster response
|
|
12077
12085
|
}),
|
|
12078
12086
|
rgbClient.lightning.listPeers({})
|