Skip to content

Commit

Permalink
Remove debugging logs from pdiff sync
Browse files Browse the repository at this point in the history
  • Loading branch information
lucksus committed Mar 22, 2024
1 parent 8d5a383 commit 61887d1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions bootstrap-languages/p-diff-sync/linksAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,16 +136,12 @@ export class LinkAdapter implements LinkSyncAdapter {
await checkSyncState(this.syncStateChangeCallback);

for (const hash of Array.from(revisions)) {
console.log("GOSSIP processing other revision", hash.toString('base64'));
if(!hash) continue
if (this.myCurrentRevision && hash.equals(this.myCurrentRevision)) continue
console.log("GOSSIP other revision different to ours", this.myCurrentRevision.toString('base64'));
console.log("Pulling with is_scribe =", is_scribe)
let pullResult = await this.hcDna.call(DNA_NICK, ZOME_NAME, "pull", {
hash,
is_scribe
});
console.log("GOSSIP pullResult", pullResult);
if (pullResult) {
if (pullResult.current_revision && Buffer.isBuffer(pullResult.current_revision)) {
let myRevision = pullResult.current_revision;
Expand Down
2 changes: 1 addition & 1 deletion cli/mainnet_seed.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"did:key:z6MkvPpWxwXAnLtMcoc9sX7GEoJ96oNnQ3VcQJRLspNJfpE7"
],
"knownLinkLanguages": [
"QmzSYwdhcfG8Urkt5YsF1KyPEAdd8F6emRG31s7GDLMqbRAQTH3",
"QmzSYwdejFmQYpHtztu32516wvjkBohQmZt7dKUn4pnkPJA6kPV",
"QmzSYwdnyTVrzufV8HfUfFRwDSiZZjRoBimrm95qjh6KCG9Z6YW",
"QmzSYwdnHrRH8MmuPWKKrDvFoVyW5CophNpT1ipQUCcenPVTQnd"
],
Expand Down
2 changes: 1 addition & 1 deletion rust-executor/src/mainnet_seed.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"did:key:z6MkvPpWxwXAnLtMcoc9sX7GEoJ96oNnQ3VcQJRLspNJfpE7"
],
"knownLinkLanguages": [
"QmzSYwdhcfG8Urkt5YsF1KyPEAdd8F6emRG31s7GDLMqbRAQTH3",
"QmzSYwdejFmQYpHtztu32516wvjkBohQmZt7dKUn4pnkPJA6kPV",
"QmzSYwdnyTVrzufV8HfUfFRwDSiZZjRoBimrm95qjh6KCG9Z6YW",
"QmzSYwdnHrRH8MmuPWKKrDvFoVyW5CophNpT1ipQUCcenPVTQnd"
],
Expand Down

0 comments on commit 61887d1

Please sign in to comment.