Разделить среды и закрепить лицензии в 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
+1 -1
View File
@@ -11,7 +11,7 @@ const owner=Buffer.from((await crypto.subtle.exportKey('jwk',key)).x,'base64url'
const stored=rows.map(r=>({blockHash:r[3],blockBytesB64:b64(packCoreContent(h(r[6]),h(r[8])))}));
for (const cutoff of [0,2,7]) test(`M5 FORK at #${cutoff}: new owner, retained TECH tail, deterministic retry`,async()=>{
const calls=[];
const client=new KeyRotationClient({ws:{async request(op,p){
const client=new KeyRotationClient({getServerEnvironment:async()=>({arweaveAppTag:"test5570"}),ws:{ws:{},connectionGeneration:1,async request(op,p){
if(op==='GetBlockchainBlock'){assert.equal(p.blockchainName,'Alice-001');return {status:200,payload:stored[p.blockNumber]};}
assert.equal(op,'KeyRotationAddBlock');calls.push(p);return {status:200,payload:{}};
}}});