Skip to content

Commit

Permalink
Build first block for genesis
Browse files Browse the repository at this point in the history
  • Loading branch information
ermalkaleci authored Jan 10, 2024
1 parent d7b476e commit 9529c68
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ export const genesisSetup = async (chain: Blockchain, genesis: GenesisProvider)
const digest = meta.registry.createType<DigestItem>('DigestItem', { PreRuntime: [consensusEngine, newSlot] })
genesis.genesisHeaderLogs = [digest.toHex()]
}

await chain.newBlock()
}

export const setup = async (options: SetupOptions) => {
Expand Down

0 comments on commit 9529c68

Please sign in to comment.