nimbus-eth1/tests/test_genesis.nim

8 lines
297 B
Nim
Raw Normal View History

2019-02-05 19:15:50 +00:00
import unittest, ../nimbus/[genesis, config], eth/common, nimcrypto/hash
2018-08-01 12:50:44 +00:00
suite "Genesis":
test "Correct mainnet hash":
let g = defaultGenesisBlockForNetwork(MainNet)
let b = g.toBlock
check(b.blockHash == "D4E56740F876AEF8C010B86A40D5F56745A118D0906A34E69AEC8C0DB1CB8FA3".toDigest)