From e74a8b3b7b7881b63b3203cb41c3c0aa3441b88f Mon Sep 17 00:00:00 2001 From: adas0x Date: Mon, 28 Apr 2025 13:33:21 +0000 Subject: [PATCH 1/3] fix: delete duplicate config schema key for child_block_production_time --- src/lib/configSchema/aeternity_config_schema.json | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/lib/configSchema/aeternity_config_schema.json b/src/lib/configSchema/aeternity_config_schema.json index 7db3b61..de57b38 100644 --- a/src/lib/configSchema/aeternity_config_schema.json +++ b/src/lib/configSchema/aeternity_config_schema.json @@ -1735,10 +1735,6 @@ "default": 500, "type": "integer" }, - "child_block_production_time": { - "description": "The time in milliseconds to produce a child block", - "type": "integer" - }, "child_epoch_length": { "description": "The number of blocks in an epoch on the child chain", "type": "integer" From 866934925f77d27227641cdeec4cbb5e6d28c492 Mon Sep 17 00:00:00 2001 From: adas0x Date: Mon, 28 Apr 2025 13:34:27 +0000 Subject: [PATCH 2/3] fix: make new configs generate with required child_block_production_time set --- src/lib/init.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/init.ts b/src/lib/init.ts index 795e301..577e598 100644 --- a/src/lib/init.ts +++ b/src/lib/init.ts @@ -9,6 +9,7 @@ import { getParentNodeURL } from "./aeParent.js"; export const InitConfig = z.object({ networkId: z.string(), childBlockTime: z.bigint(), + childBlockProductionTime: z.bigint(), childEpochLength: z.bigint(), pinningReward: z.bigint(), fixedCoinbase: z.bigint(), @@ -35,6 +36,7 @@ export const defaultInitConf = (networkId: string): InitConfig => { return { networkId, childBlockTime: 3000n, + childBlockProductionTime: 500n, // should be ~10 parent blocks in child blocks // in case of 180s block time of AE and 3s block time of the child chain // 180s * 10 = 1800/3 = 600 From a37513ae9eeeecca3642a2c83b4152bf9754dfa9 Mon Sep 17 00:00:00 2001 From: adas0x Date: Mon, 28 Apr 2025 13:36:52 +0000 Subject: [PATCH 3/3] update readme to include default config value for child_block_production_time --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index c891d2d..0a09fc9 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,7 @@ See the [Aeternity Node Documentation](https://github.com/aeternity/aeternity/tr The tool generates a default configuration in `init.yaml`: ```yaml +childBlockProductionTime: 500 childBlockTime: 3000 childEpochLength: 600 enablePinning: true