Skip to content

Commit a0a35dc

Browse files
authored
Merge pull request #3832 from OnedgeLee/chore/fix-duplicated-nsrh-gen
Remove duplicated NSRH generation on BlockChain.Create()
2 parents 9d6cea6 + 8add9ef commit a0a35dc

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Libplanet/Blockchain/BlockChain.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -444,11 +444,6 @@ public static BlockChain Create(
444444
return blockChain;
445445
}
446446

447-
HashDigest<SHA256> nextStateRootHash =
448-
blockChain.DetermineNextBlockStateRootHash(genesisBlock, out _);
449-
450-
blockChain.Store.PutNextStateRootHash(genesisBlock.Hash, nextStateRootHash);
451-
452447
return blockChain;
453448
}
454449

0 commit comments

Comments
 (0)