SHA256
Разделить среды и закрепить лицензии в HEADER 1.0
This commit is contained in:
@@ -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});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user