note
This commit is contained in:
parent
a65746510c
commit
fbc22540f7
20
statedb.go
20
statedb.go
@ -8,6 +8,26 @@ import (
|
|||||||
"github.com/ethereum/temp/common"
|
"github.com/ethereum/temp/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
/*
|
||||||
|
The portions of the EVM we want to leverage only use the following methods:
|
||||||
|
|
||||||
|
GetBalance
|
||||||
|
Snapshot
|
||||||
|
Exist
|
||||||
|
CreateAccount
|
||||||
|
SubBalance
|
||||||
|
AddBalance
|
||||||
|
GetCode
|
||||||
|
GetCodeHash
|
||||||
|
RevertToSnapshot
|
||||||
|
GetNonce
|
||||||
|
SetNonce
|
||||||
|
AddAddressToAccessList
|
||||||
|
SetCode
|
||||||
|
|
||||||
|
The rest can be left with panics for now
|
||||||
|
*/
|
||||||
|
|
||||||
var _ vm.StateDB = &StateDB{}
|
var _ vm.StateDB = &StateDB{}
|
||||||
|
|
||||||
type StateDB struct {
|
type StateDB struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user