diff --git a/src/features/block/mine.ts b/src/features/block/mine.ts index 46d7150..6678c39 100644 --- a/src/features/block/mine.ts +++ b/src/features/block/mine.ts @@ -33,10 +33,8 @@ export const mine = ( const prevBlockHash = "0000ffff00000000000000000000000000000000000000000000000000000000"; //make it the same as the difficulty - const merkleRootHash = reversify( - merkleRoot( - txs.map((tx) => reversify(sha256(sha256(txSerializer(tx).serializedTx)))) - ) + const merkleRootHash = merkleRoot( + txs.map((tx) => reversify(sha256(sha256(txSerializer(tx).serializedTx)))) ); const time = Buffer.alloc(4);