Skip to content

Commit ddffd35

Browse files
update
1 parent 7cb0aa2 commit ddffd35

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

test/integration/Staking.test.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -283,15 +283,6 @@ async function advanceToNextProofingPeriod(
283283
await contracts.randomSamplingStorage.updateAndGetActiveProofPeriodStartBlock();
284284
}
285285

286-
/**
287-
* Ensures a node has at least one knowledge chunk in the current epoch.
288-
* If not, it creates a small knowledge collection to facilitate proof submission.
289-
*/
290-
/**
291-
* Ensure da node ima bar jedan chunk u tekućem epoch-u.
292-
* Ako nema – sam node (kao publisher) objavi mini-KC (1 chunk, 1 TRAC),
293-
* pa odmah osvežimo proof-period tako da chunk uđe u aktivni skup.
294-
*/
295286
async function ensureNodeHasChunksThisEpoch(
296287
nodeId: bigint,
297288
node: { operational: SignerWithAddress; admin: SignerWithAddress },
@@ -309,7 +300,6 @@ async function ensureNodeHasChunksThisEpoch(
309300
);
310301

311302
if (produced === 0n) {
312-
/* dodaj self u listu primaoca (ako već nije tu) */
313303
if (
314304
!receivingNodes.some(
315305
(r) => r.operational.address === node.operational.address,
@@ -319,7 +309,6 @@ async function ensureNodeHasChunksThisEpoch(
319309
receivingNodesIdentityIds.unshift(Number(nodeId));
320310
}
321311

322-
/* ► samo-objavljena KC: publisher == node ← ovde je ključ! */
323312
await createKnowledgeCollection(
324313
node.operational, // signer = node.operational
325314
node, // publisher-node
@@ -335,7 +324,6 @@ async function ensureNodeHasChunksThisEpoch(
335324
toTRAC(1),
336325
);
337326

338-
/* odmah pomeri start proof-perioda da KC postane aktivna */
339327
await contracts.randomSamplingStorage.updateAndGetActiveProofPeriodStartBlock();
340328
}
341329
}

0 commit comments

Comments
 (0)