diff --git a/ironfish/src/genesis/makeGenesisBlock.ts b/ironfish/src/genesis/makeGenesisBlock.ts index a251e116fd..a2e8a10c99 100644 --- a/ironfish/src/genesis/makeGenesisBlock.ts +++ b/ironfish/src/genesis/makeGenesisBlock.ts @@ -170,10 +170,18 @@ export async function makeGenesisBlock( GraffitiUtils.fromString('genesis'), ) - // Modify the block with any custom properties. - block.header.target = info.target - block.header.timestamp = new Date(info.timestamp) + const genesisBlock = Block.fromRaw({ + header: { + ...block.header, + target: info.target, + timestamp: new Date(info.timestamp), + }, + transactions: block.transactions, + }) + + genesisBlock.header.noteSize = block.header.noteSize + genesisBlock.header.work = block.header.work logger.info('Block complete.') - return { block } + return { block: genesisBlock } }