Add loading of block test privkey if present

This commit is contained in:
Gustav Simonsson
2015-04-27 19:32:45 +02:00
parent 2a61611c4f
commit 34c94d5fcd
4 changed files with 35 additions and 9 deletions

View File

@ -104,7 +104,7 @@ func runOneBlockTest(ctx *cli.Context, test *tests.BlockTest) (*eth.Ethereum, er
ethereum.ResetWithGenesisBlock(test.Genesis)
// import pre accounts
statedb, err := test.InsertPreState(ethereum.StateDb())
statedb, err := test.InsertPreState(ethereum)
if err != nil {
return ethereum, fmt.Errorf("InsertPreState: %v", err)
}