Разделить среды и закрепить лицензии в HEADER 1.0

This commit is contained in:
AidarKC
2026-12-05 11:42:20 +03:00
parent a64168a748
commit 77c7021aed
89 changed files with 4204 additions and 211 deletions
+5 -1
View File
@@ -104,11 +104,15 @@ export class KeyRotationClient {
});
const techTimestampMs=Number(rotation.createdAtMs)||timestampMs(tipParsed)+1000;
const techBlockNumber=cutoff+1;
const pair=await signCoreContentPair({owner32,privateKey,blockNumber:techBlockNumber,
const ws = this.auth.ws;
const { arweaveAppTag } = await this.auth.getServerEnvironment();
const generation = ws.connectionGeneration;
const pair=await signCoreContentPair({owner32,privateKey,arweaveAppTag,blockNumber:techBlockNumber,
timestamp:Math.floor(techTimestampMs/1000),prevCoreHash32:hexToBytes(rotation.forkFromHash),
content:{type:0,subType:TECH_FORK_SUBTYPE,version:1,body:forkBody},
line:{lineCode:SHINE_CORE_LINE_TECH,prevLineBlockNumber:techTail.prevLineNumber,prevLineCoreHash32:hexToBytes(techTail.prevLineHash)}});
const techRaw=packCoreContent(pair.coreDataItem,pair.contentDataItem);
if (this.auth.ws !== ws || ws.connectionGeneration !== generation || !ws.ws) throw new Error('Server connection changed');
await this.addCandidate({blockNumber:techBlockNumber,prevBlockHash:rotation.forkFromHash,blockBytesB64:bytesToBase64(techRaw)});
onProgress({phase:'copy',current:1,total:1});
}