adhdev 0.9.82-rc.45 → 0.9.82-rc.46
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/cli/index.js +10 -8
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +10 -8
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/cli/index.js
CHANGED
|
@@ -49825,7 +49825,9 @@ ${block}`);
|
|
|
49825
49825
|
peerConfirmedCount: 0,
|
|
49826
49826
|
unavailableNodeIds: []
|
|
49827
49827
|
};
|
|
49828
|
-
const
|
|
49828
|
+
const passivePeerTruthNotAttempted = requireDirectPeerTruth && !refreshRequested && directTruth.directEvidenceCount > 0 && directTruth.peerAttemptedCount === 0;
|
|
49829
|
+
const effectiveDirectTruth = passivePeerTruthNotAttempted ? { ...directTruth, unavailableNodeIds: [] } : directTruth;
|
|
49830
|
+
const directTruthSatisfied = !requireDirectPeerTruth || effectiveDirectTruth.directEvidenceCount > 0 && effectiveDirectTruth.unavailableNodeIds.length === 0;
|
|
49829
49831
|
if (requireDirectPeerTruth && !directTruthSatisfied) {
|
|
49830
49832
|
const failureResult = {
|
|
49831
49833
|
success: false,
|
|
@@ -49855,7 +49857,7 @@ ${block}`);
|
|
|
49855
49857
|
});
|
|
49856
49858
|
return failureResult;
|
|
49857
49859
|
}
|
|
49858
|
-
const directTruthUnavailableNodeIds = new Set(
|
|
49860
|
+
const directTruthUnavailableNodeIds = new Set(effectiveDirectTruth.unavailableNodeIds);
|
|
49859
49861
|
const selectedCoordinatorNodeId = readStringValue(
|
|
49860
49862
|
mesh.coordinator?.preferredNodeId,
|
|
49861
49863
|
mesh.nodes?.[0]?.id,
|
|
@@ -50048,11 +50050,11 @@ ${block}`);
|
|
|
50048
50050
|
directPeerTruth: {
|
|
50049
50051
|
required: true,
|
|
50050
50052
|
satisfied: directTruthSatisfied,
|
|
50051
|
-
directEvidenceCount:
|
|
50052
|
-
localConfirmedCount:
|
|
50053
|
-
peerAttemptedCount:
|
|
50054
|
-
peerConfirmedCount:
|
|
50055
|
-
unavailableNodeIds:
|
|
50053
|
+
directEvidenceCount: effectiveDirectTruth.directEvidenceCount,
|
|
50054
|
+
localConfirmedCount: effectiveDirectTruth.localConfirmedCount,
|
|
50055
|
+
peerAttemptedCount: effectiveDirectTruth.peerAttemptedCount,
|
|
50056
|
+
peerConfirmedCount: effectiveDirectTruth.peerConfirmedCount,
|
|
50057
|
+
unavailableNodeIds: effectiveDirectTruth.unavailableNodeIds
|
|
50056
50058
|
}
|
|
50057
50059
|
} : {},
|
|
50058
50060
|
historicalEvidenceOnly: ["recoveryHints", "ledger.summary", "queue.summary"]
|
|
@@ -99306,7 +99308,7 @@ var init_adhdev_daemon = __esm({
|
|
|
99306
99308
|
init_version();
|
|
99307
99309
|
init_src();
|
|
99308
99310
|
init_runtime_defaults();
|
|
99309
|
-
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.82-rc.
|
|
99311
|
+
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.82-rc.46" });
|
|
99310
99312
|
AdhdevDaemon = class _AdhdevDaemon {
|
|
99311
99313
|
localHttpServer = null;
|
|
99312
99314
|
localWss = null;
|