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/index.js
CHANGED
|
@@ -48837,7 +48837,9 @@ ${block}`);
|
|
|
48837
48837
|
peerConfirmedCount: 0,
|
|
48838
48838
|
unavailableNodeIds: []
|
|
48839
48839
|
};
|
|
48840
|
-
const
|
|
48840
|
+
const passivePeerTruthNotAttempted = requireDirectPeerTruth && !refreshRequested && directTruth.directEvidenceCount > 0 && directTruth.peerAttemptedCount === 0;
|
|
48841
|
+
const effectiveDirectTruth = passivePeerTruthNotAttempted ? { ...directTruth, unavailableNodeIds: [] } : directTruth;
|
|
48842
|
+
const directTruthSatisfied = !requireDirectPeerTruth || effectiveDirectTruth.directEvidenceCount > 0 && effectiveDirectTruth.unavailableNodeIds.length === 0;
|
|
48841
48843
|
if (requireDirectPeerTruth && !directTruthSatisfied) {
|
|
48842
48844
|
const failureResult = {
|
|
48843
48845
|
success: false,
|
|
@@ -48867,7 +48869,7 @@ ${block}`);
|
|
|
48867
48869
|
});
|
|
48868
48870
|
return failureResult;
|
|
48869
48871
|
}
|
|
48870
|
-
const directTruthUnavailableNodeIds = new Set(
|
|
48872
|
+
const directTruthUnavailableNodeIds = new Set(effectiveDirectTruth.unavailableNodeIds);
|
|
48871
48873
|
const selectedCoordinatorNodeId = readStringValue(
|
|
48872
48874
|
mesh.coordinator?.preferredNodeId,
|
|
48873
48875
|
mesh.nodes?.[0]?.id,
|
|
@@ -49060,11 +49062,11 @@ ${block}`);
|
|
|
49060
49062
|
directPeerTruth: {
|
|
49061
49063
|
required: true,
|
|
49062
49064
|
satisfied: directTruthSatisfied,
|
|
49063
|
-
directEvidenceCount:
|
|
49064
|
-
localConfirmedCount:
|
|
49065
|
-
peerAttemptedCount:
|
|
49066
|
-
peerConfirmedCount:
|
|
49067
|
-
unavailableNodeIds:
|
|
49065
|
+
directEvidenceCount: effectiveDirectTruth.directEvidenceCount,
|
|
49066
|
+
localConfirmedCount: effectiveDirectTruth.localConfirmedCount,
|
|
49067
|
+
peerAttemptedCount: effectiveDirectTruth.peerAttemptedCount,
|
|
49068
|
+
peerConfirmedCount: effectiveDirectTruth.peerConfirmedCount,
|
|
49069
|
+
unavailableNodeIds: effectiveDirectTruth.unavailableNodeIds
|
|
49068
49070
|
}
|
|
49069
49071
|
} : {},
|
|
49070
49072
|
historicalEvidenceOnly: ["recoveryHints", "ledger.summary", "queue.summary"]
|
|
@@ -68136,7 +68138,7 @@ var init_adhdev_daemon = __esm({
|
|
|
68136
68138
|
init_version();
|
|
68137
68139
|
init_src();
|
|
68138
68140
|
init_runtime_defaults();
|
|
68139
|
-
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.82-rc.
|
|
68141
|
+
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.82-rc.46" });
|
|
68140
68142
|
AdhdevDaemon = class _AdhdevDaemon {
|
|
68141
68143
|
localHttpServer = null;
|
|
68142
68144
|
localWss = null;
|