@adhdev/daemon-standalone 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/index.js +9 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -49202,7 +49202,9 @@ ${block}`);
|
|
|
49202
49202
|
peerConfirmedCount: 0,
|
|
49203
49203
|
unavailableNodeIds: []
|
|
49204
49204
|
};
|
|
49205
|
-
const
|
|
49205
|
+
const passivePeerTruthNotAttempted = requireDirectPeerTruth && !refreshRequested && directTruth.directEvidenceCount > 0 && directTruth.peerAttemptedCount === 0;
|
|
49206
|
+
const effectiveDirectTruth = passivePeerTruthNotAttempted ? { ...directTruth, unavailableNodeIds: [] } : directTruth;
|
|
49207
|
+
const directTruthSatisfied = !requireDirectPeerTruth || effectiveDirectTruth.directEvidenceCount > 0 && effectiveDirectTruth.unavailableNodeIds.length === 0;
|
|
49206
49208
|
if (requireDirectPeerTruth && !directTruthSatisfied) {
|
|
49207
49209
|
const failureResult = {
|
|
49208
49210
|
success: false,
|
|
@@ -49232,7 +49234,7 @@ ${block}`);
|
|
|
49232
49234
|
});
|
|
49233
49235
|
return failureResult;
|
|
49234
49236
|
}
|
|
49235
|
-
const directTruthUnavailableNodeIds = new Set(
|
|
49237
|
+
const directTruthUnavailableNodeIds = new Set(effectiveDirectTruth.unavailableNodeIds);
|
|
49236
49238
|
const selectedCoordinatorNodeId = readStringValue(
|
|
49237
49239
|
mesh.coordinator?.preferredNodeId,
|
|
49238
49240
|
mesh.nodes?.[0]?.id,
|
|
@@ -49425,11 +49427,11 @@ ${block}`);
|
|
|
49425
49427
|
directPeerTruth: {
|
|
49426
49428
|
required: true,
|
|
49427
49429
|
satisfied: directTruthSatisfied,
|
|
49428
|
-
directEvidenceCount:
|
|
49429
|
-
localConfirmedCount:
|
|
49430
|
-
peerAttemptedCount:
|
|
49431
|
-
peerConfirmedCount:
|
|
49432
|
-
unavailableNodeIds:
|
|
49430
|
+
directEvidenceCount: effectiveDirectTruth.directEvidenceCount,
|
|
49431
|
+
localConfirmedCount: effectiveDirectTruth.localConfirmedCount,
|
|
49432
|
+
peerAttemptedCount: effectiveDirectTruth.peerAttemptedCount,
|
|
49433
|
+
peerConfirmedCount: effectiveDirectTruth.peerConfirmedCount,
|
|
49434
|
+
unavailableNodeIds: effectiveDirectTruth.unavailableNodeIds
|
|
49433
49435
|
}
|
|
49434
49436
|
} : {},
|
|
49435
49437
|
historicalEvidenceOnly: ["recoveryHints", "ledger.summary", "queue.summary"]
|