From e809c3454879296e4cc9abefbedf204dad9a6050 Mon Sep 17 00:00:00 2001 From: pingke Date: Thu, 10 Oct 2024 10:28:30 +0800 Subject: [PATCH 1/2] update difficulty --- scripts/deployL2-it.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/deployL2-it.js b/scripts/deployL2-it.js index 4135eca..97054d8 100644 --- a/scripts/deployL2-it.js +++ b/scripts/deployL2-it.js @@ -52,7 +52,7 @@ async function deployContract() { console.log("storage impl address is ", impl); const data = implContract.interface.encodeFunctionData("initialize", [ - 1572864, // minimumDiff 0.1 * 180 (3 minutes) * 1024 * 1024 / 12 = 1572864 for 0.1 replicas that can have 1M IOs in one epoch + 5242880, // minimumDiff 0.1 * 600 (10 minutes) * 1024 * 1024 / 12 = 5242880 for 0.1 replicas that can have 1M IOs in one epoch 6144000000000000000n, // prepaidAmount - 50% * 2^30 / 131072 * 1500000Gwei, it also means 3145 ETH for half of the shard 1048576, // nonceLimit 1024 * 1024 = 1M samples and finish sampling in 1.3s with IO rate 6144 MB/s: 4k * 2(random checks) / 6144 = 1.3s treasuryAddress, // treasury From ff8b53993faadbc96f55e6e7338006f04547e00f Mon Sep 17 00:00:00 2001 From: pingke Date: Sat, 12 Oct 2024 10:34:45 +0800 Subject: [PATCH 2/2] resolve comment --- scripts/deployL2-it.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/deployL2-it.js b/scripts/deployL2-it.js index e33dbd7..9c321fb 100644 --- a/scripts/deployL2-it.js +++ b/scripts/deployL2-it.js @@ -54,7 +54,7 @@ async function deployContract() { console.log("storage impl address is ", impl); const data = implContract.interface.encodeFunctionData("initialize", [ - 5242880, // minimumDiff 0.1 * 600 (10 minutes) * 1024 * 1024 / 12 = 5242880 for 0.1 replicas that can have 1M IOs in one epoch + 10485760, // minimumDiff 0.1 * 1200 (20 minutes) * 1024 * 1024 / 12 = 10485760 for 0.1 replicas that can have 1M IOs in one epoch 6144000000000000000n, // prepaidAmount - 50% * 2^30 / 131072 * 1500000Gwei, it also means 3145 ETH for half of the shard 1048576, // nonceLimit 1024 * 1024 = 1M samples and finish sampling in 1.3s with IO rate 6144 MB/s: 4k * 2(random checks) / 6144 = 1.3s treasuryAddress, // treasury