2019-05-30 16:42:55 +00:00
|
|
|
import unittest2, ../nimbus/[genesis, config], eth/common, nimcrypto/hash
|
2018-08-01 12:50:44 +00:00
|
|
|
|
2019-09-21 05:45:23 +00:00
|
|
|
proc genesisMain*() =
|
|
|
|
suite "Genesis":
|
|
|
|
test "Correct mainnet hash":
|
|
|
|
let g = defaultGenesisBlockForNetwork(MainNet)
|
|
|
|
let b = g.toBlock
|
|
|
|
check(b.blockHash == "D4E56740F876AEF8C010B86A40D5F56745A118D0906A34E69AEC8C0DB1CB8FA3".toDigest)
|