core/state, core, miner: handle missing root error from state.New
This commit is contained in:
@ -77,12 +77,12 @@ func (s *StateSuite) TestDump(c *checker.C) {
|
||||
|
||||
func (s *StateSuite) SetUpTest(c *checker.C) {
|
||||
db, _ := ethdb.NewMemDatabase()
|
||||
s.state = New(common.Hash{}, db)
|
||||
s.state, _ = New(common.Hash{}, db)
|
||||
}
|
||||
|
||||
func TestNull(t *testing.T) {
|
||||
db, _ := ethdb.NewMemDatabase()
|
||||
state := New(common.Hash{}, db)
|
||||
state, _ := New(common.Hash{}, db)
|
||||
|
||||
address := common.HexToAddress("0x823140710bf13990e4500136726d8b55")
|
||||
state.CreateAccount(address)
|
||||
@ -122,7 +122,7 @@ func (s *StateSuite) TestSnapshot(c *checker.C) {
|
||||
// printing/logging in tests (-check.vv does not work)
|
||||
func TestSnapshot2(t *testing.T) {
|
||||
db, _ := ethdb.NewMemDatabase()
|
||||
state := New(common.Hash{}, db)
|
||||
state, _ := New(common.Hash{}, db)
|
||||
|
||||
stateobjaddr0 := toAddr([]byte("so0"))
|
||||
stateobjaddr1 := toAddr([]byte("so1"))
|
||||
|
Reference in New Issue
Block a user