cmd/evm, core/vm, tests: changed DisableVm to EnableVm

This commit is contained in:
Jeffrey Wilcke
2015-08-11 00:27:30 +02:00
parent 32395ddb89
commit 9cacec70f9
10 changed files with 20 additions and 30 deletions

View File

@ -354,18 +354,8 @@ func (sm *BlockProcessor) GetLogs(block *types.Block) (logs state.Logs, err erro
for _, receipt := range receipts {
logs = append(logs, receipt.Logs()...)
}
return
}
// TODO: remove backward compatibility
var (
parent = sm.bc.GetBlock(block.ParentHash())
state = state.New(parent.Root(), sm.chainDb)
)
sm.TransitionState(state, parent, block, true)
return state.Logs(), nil
return logs, nil
}
// See YP section 4.3.4. "Block Header Validity"