| 135 | } |
| 136 | |
| 137 | func (t *BlockTest) genesis(config *configs.ChainConfig) *core.Genesis { |
| 138 | return &core.Genesis{ |
| 139 | Config: config, |
| 140 | Timestamp: t.json.Genesis.Timestamp.Uint64(), |
| 141 | ParentHash: t.json.Genesis.ParentHash, |
| 142 | ExtraData: t.json.Genesis.ExtraData, |
| 143 | GasLimit: t.json.Genesis.GasLimit, |
| 144 | GasUsed: t.json.Genesis.GasUsed, |
| 145 | Difficulty: t.json.Genesis.Difficulty, |
| 146 | Coinbase: t.json.Genesis.Coinbase, |
| 147 | Alloc: t.json.Pre, |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | /* See https://github.com/ethereum/tests/wiki/Blockchain-Tests-II |
| 152 | |