From 277d45e3bc2696329c3f3ddbfbf7752e0f7484fc Mon Sep 17 00:00:00 2001 From: philippe Date: Wed, 18 May 2022 18:08:18 -0400 Subject: [PATCH] Set the number of roots in the deployed CAPE contract to 40. --- contracts/deploy/00_cape.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contracts/deploy/00_cape.ts b/contracts/deploy/00_cape.ts index 44c8c714..bb8f8522 100644 --- a/contracts/deploy/00_cape.ts +++ b/contracts/deploy/00_cape.ts @@ -32,7 +32,10 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { }); const treeDepth = 24; - const nRoots = 1000; + + // Enough so that a wallet CAP transaction can make it to the CAPE contract, + // but not too much in order to free the records of a rejected/lost transaction after a reasonable amount of time. + const nRoots = 40; // To change, update change FAUCET_MANAGER_ENCRYPTION_KEY in rust/src/cape/faucet.rs //