Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions src/lib/configSchema/aeternity_config_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions src/lib/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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
Expand Down