We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6afa54b commit 933d78aCopy full SHA for 933d78a
src/mesh/agents/state/history/HistorySynchronizer.ts
@@ -871,13 +871,16 @@ class HistorySynchronizer {
871
872
for (const idx of resp.omittedObjs.keys()) {
873
874
+
875
const hash = resp.omittedObjs[idx];
876
const omissionProof = resp.omittedObjsOwnershipProofs[idx];
877
878
const dep = await this.syncAgent.store.load(hash);
-
879
880
if (dep !== undefined && dep.hash(reqInfo.request.omissionProofsSecret) === omissionProof) {
- reqInfo.receivedObjects?.objects.set(dep.hash(), dep);
881
+ if (reqInfo.receivedObjects?.objects?.get(dep.hash()) === undefined) {
882
+ reqInfo.receivedObjects?.objects.set(dep.hash(), dep);
883
+ }
884
}
885
886
0 commit comments