diff options
author | Felix Lange <fjl@twurst.com> | 2017-01-05 21:03:50 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2017-01-06 21:15:22 +0800 |
commit | 7731061903bb992f7630ab389863951efb360258 (patch) | |
tree | ea706da87ce002a631cba30b171cb44dbdd7c2c6 /core/vm/interface.go | |
parent | b9683d3748dcb73ab5a5474334eaf157267d9c4a (diff) | |
download | dexon-7731061903bb992f7630ab389863951efb360258.tar dexon-7731061903bb992f7630ab389863951efb360258.tar.gz dexon-7731061903bb992f7630ab389863951efb360258.tar.bz2 dexon-7731061903bb992f7630ab389863951efb360258.tar.lz dexon-7731061903bb992f7630ab389863951efb360258.tar.xz dexon-7731061903bb992f7630ab389863951efb360258.tar.zst dexon-7731061903bb992f7630ab389863951efb360258.zip |
core/vm: move Log to core/types
This significantly reduces the dependency closure of ethclient, which no
longer depends on core/vm as of this change.
All uses of vm.Logs are replaced by []*types.Log. NewLog is gone too,
the constructor simply returned a literal.
Diffstat (limited to 'core/vm/interface.go')
-rw-r--r-- | core/vm/interface.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/vm/interface.go b/core/vm/interface.go index b81f59125..8617b2d0f 100644 --- a/core/vm/interface.go +++ b/core/vm/interface.go @@ -20,6 +20,7 @@ import ( "math/big" "github.com/ethereum/go-ethereum/common" + "github.com/ethereum/go-ethereum/core/types" ) // StateDB is an EVM database for full state querying. @@ -58,7 +59,7 @@ type StateDB interface { RevertToSnapshot(int) Snapshot() int - AddLog(*Log) + AddLog(*types.Log) } // Account represents a contract or basic ethereum account. |