diff --git a/cmd/disasm/main.go b/cmd/disasm/main.go index 5d42121b6f..5b658046ff 100644 --- a/cmd/disasm/main.go +++ b/cmd/disasm/main.go @@ -6,7 +6,7 @@ import ( "os" "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/vm" + "github.com/ethereum/go-ethereum/core/vm" ) func main() { diff --git a/cmd/ethereum/admin.go b/cmd/ethereum/admin.go index 65adb40866..139395dad9 100644 --- a/cmd/ethereum/admin.go +++ b/cmd/ethereum/admin.go @@ -12,7 +12,7 @@ import ( "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/rlp" "github.com/ethereum/go-ethereum/rpc" - "github.com/ethereum/go-ethereum/state" + "github.com/ethereum/go-ethereum/core/state" "github.com/ethereum/go-ethereum/xeth" "github.com/robertkrimen/otto" ) diff --git a/cmd/ethereum/main.go b/cmd/ethereum/main.go index e351453b1a..5ad4c0a4e5 100644 --- a/cmd/ethereum/main.go +++ b/cmd/ethereum/main.go @@ -36,7 +36,7 @@ import ( "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/eth" "github.com/ethereum/go-ethereum/logger" - "github.com/ethereum/go-ethereum/state" + "github.com/ethereum/go-ethereum/core/state" "github.com/peterh/liner" ) diff --git a/cmd/ethtest/main.go b/cmd/ethtest/main.go index fdf573fd8a..f5b423e8d1 100644 --- a/cmd/ethtest/main.go +++ b/cmd/ethtest/main.go @@ -36,9 +36,9 @@ import ( "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/logger" - "github.com/ethereum/go-ethereum/state" + "github.com/ethereum/go-ethereum/core/state" "github.com/ethereum/go-ethereum/tests/helper" - "github.com/ethereum/go-ethereum/vm" + "github.com/ethereum/go-ethereum/core/vm" ) type Log struct { diff --git a/cmd/evm/main.go b/cmd/evm/main.go index 17137e4bbb..76e34e21d6 100644 --- a/cmd/evm/main.go +++ b/cmd/evm/main.go @@ -35,8 +35,8 @@ import ( "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/logger" - "github.com/ethereum/go-ethereum/state" - "github.com/ethereum/go-ethereum/vm" + "github.com/ethereum/go-ethereum/core/state" + "github.com/ethereum/go-ethereum/core/vm" ) var ( diff --git a/cmd/mist/bindings.go b/cmd/mist/bindings.go index 5d45d927ea..8a9ec7cb17 100644 --- a/cmd/mist/bindings.go +++ b/cmd/mist/bindings.go @@ -28,7 +28,7 @@ import ( "github.com/ethereum/go-ethereum/cmd/utils" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/state" + "github.com/ethereum/go-ethereum/core/state" ) type plugin struct { diff --git a/core/asm.go b/core/asm.go index fc3493fe11..f40c079045 100644 --- a/core/asm.go +++ b/core/asm.go @@ -5,7 +5,7 @@ import ( "math/big" "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/vm" + "github.com/ethereum/go-ethereum/core/vm" ) func Disassemble(script []byte) (asm []string) { diff --git a/core/block_processor.go b/core/block_processor.go index ae8d5fe7b6..4bcede85e5 100644 --- a/core/block_processor.go +++ b/core/block_processor.go @@ -12,7 +12,7 @@ import ( "github.com/ethereum/go-ethereum/logger" "github.com/ethereum/go-ethereum/pow" "github.com/ethereum/go-ethereum/rlp" - "github.com/ethereum/go-ethereum/state" + "github.com/ethereum/go-ethereum/core/state" "gopkg.in/fatih/set.v0" ) diff --git a/core/chain_makers.go b/core/chain_makers.go index e3001331ca..d559b2a3ae 100644 --- a/core/chain_makers.go +++ b/core/chain_makers.go @@ -8,7 +8,7 @@ import ( "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/event" "github.com/ethereum/go-ethereum/pow" - "github.com/ethereum/go-ethereum/state" + "github.com/ethereum/go-ethereum/core/state" ) // So we can generate blocks easily diff --git a/core/chain_manager.go b/core/chain_manager.go index a3be3878fe..3e030838a9 100644 --- a/core/chain_manager.go +++ b/core/chain_manager.go @@ -12,7 +12,7 @@ import ( "github.com/ethereum/go-ethereum/event" "github.com/ethereum/go-ethereum/logger" "github.com/ethereum/go-ethereum/rlp" - "github.com/ethereum/go-ethereum/state" + "github.com/ethereum/go-ethereum/core/state" ) var ( diff --git a/core/events.go b/core/events.go index b93f27c513..3da668af5e 100644 --- a/core/events.go +++ b/core/events.go @@ -2,7 +2,7 @@ package core import ( "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/state" + "github.com/ethereum/go-ethereum/core/state" ) // TxPreEvent is posted when a transaction enters the transaction pool. diff --git a/core/execution.go b/core/execution.go index 4f15fb42a9..92d932a9f9 100644 --- a/core/execution.go +++ b/core/execution.go @@ -6,8 +6,8 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/state" - "github.com/ethereum/go-ethereum/vm" + "github.com/ethereum/go-ethereum/core/state" + "github.com/ethereum/go-ethereum/core/vm" ) type Execution struct { diff --git a/core/filter.go b/core/filter.go index b5d9deb7a6..901931d991 100644 --- a/core/filter.go +++ b/core/filter.go @@ -5,7 +5,7 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/state" + "github.com/ethereum/go-ethereum/core/state" ) type AccountChange struct { diff --git a/core/genesis.go b/core/genesis.go index 3e00533ae6..e0d3e51b8b 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -8,7 +8,7 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/state" + "github.com/ethereum/go-ethereum/core/state" ) /* diff --git a/state/dump.go b/core/state/dump.go similarity index 100% rename from state/dump.go rename to core/state/dump.go diff --git a/state/errors.go b/core/state/errors.go similarity index 100% rename from state/errors.go rename to core/state/errors.go diff --git a/state/log.go b/core/state/log.go similarity index 100% rename from state/log.go rename to core/state/log.go diff --git a/state/main_test.go b/core/state/main_test.go similarity index 100% rename from state/main_test.go rename to core/state/main_test.go diff --git a/state/managed_state.go b/core/state/managed_state.go similarity index 100% rename from state/managed_state.go rename to core/state/managed_state.go diff --git a/state/managed_state_test.go b/core/state/managed_state_test.go similarity index 100% rename from state/managed_state_test.go rename to core/state/managed_state_test.go diff --git a/state/state_object.go b/core/state/state_object.go similarity index 100% rename from state/state_object.go rename to core/state/state_object.go diff --git a/state/state_test.go b/core/state/state_test.go similarity index 100% rename from state/state_test.go rename to core/state/state_test.go diff --git a/state/statedb.go b/core/state/statedb.go similarity index 100% rename from state/statedb.go rename to core/state/statedb.go diff --git a/core/state_transition.go b/core/state_transition.go index d0b2c5d7c3..e530567d00 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -6,8 +6,8 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/state" - "github.com/ethereum/go-ethereum/vm" + "github.com/ethereum/go-ethereum/core/state" + "github.com/ethereum/go-ethereum/core/vm" ) const tryJit = false diff --git a/core/transaction_pool_test.go b/core/transaction_pool_test.go index bf9012573c..a009a4c9d3 100644 --- a/core/transaction_pool_test.go +++ b/core/transaction_pool_test.go @@ -9,7 +9,7 @@ import ( "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/event" - "github.com/ethereum/go-ethereum/state" + "github.com/ethereum/go-ethereum/core/state" ) // State query interface diff --git a/core/types/bloom9.go b/core/types/bloom9.go index 64a8ff49a2..af90679cef 100644 --- a/core/types/bloom9.go +++ b/core/types/bloom9.go @@ -5,7 +5,7 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/state" + "github.com/ethereum/go-ethereum/core/state" ) func CreateBloom(receipts Receipts) Bloom { diff --git a/core/types/bloom9_test.go b/core/types/bloom9_test.go index 0841bb8595..3c95772ecb 100644 --- a/core/types/bloom9_test.go +++ b/core/types/bloom9_test.go @@ -4,7 +4,7 @@ package types import ( "testing" - "github.com/ethereum/go-ethereum/state" + "github.com/ethereum/go-ethereum/core/state" ) func TestBloom9(t *testing.T) { diff --git a/core/types/common.go b/core/types/common.go index ce1090919b..4397d4938e 100644 --- a/core/types/common.go +++ b/core/types/common.go @@ -4,7 +4,7 @@ import ( "math/big" "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/state" + "github.com/ethereum/go-ethereum/core/state" "fmt" ) diff --git a/core/types/receipt.go b/core/types/receipt.go index f88d42b29a..83c981f935 100644 --- a/core/types/receipt.go +++ b/core/types/receipt.go @@ -8,7 +8,7 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/rlp" - "github.com/ethereum/go-ethereum/state" + "github.com/ethereum/go-ethereum/core/state" ) type Receipt struct { diff --git a/vm/address.go b/core/vm/address.go similarity index 100% rename from vm/address.go rename to core/vm/address.go diff --git a/vm/analysis.go b/core/vm/analysis.go similarity index 100% rename from vm/analysis.go rename to core/vm/analysis.go diff --git a/vm/asm.go b/core/vm/asm.go similarity index 100% rename from vm/asm.go rename to core/vm/asm.go diff --git a/vm/common.go b/core/vm/common.go similarity index 100% rename from vm/common.go rename to core/vm/common.go diff --git a/vm/context.go b/core/vm/context.go similarity index 100% rename from vm/context.go rename to core/vm/context.go diff --git a/vm/environment.go b/core/vm/environment.go similarity index 97% rename from vm/environment.go rename to core/vm/environment.go index 5d493166c9..a0a18a99b5 100644 --- a/vm/environment.go +++ b/core/vm/environment.go @@ -8,7 +8,7 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/rlp" - "github.com/ethereum/go-ethereum/state" + "github.com/ethereum/go-ethereum/core/state" ) type Environment interface { diff --git a/vm/errors.go b/core/vm/errors.go similarity index 100% rename from vm/errors.go rename to core/vm/errors.go diff --git a/vm/gas.go b/core/vm/gas.go similarity index 100% rename from vm/gas.go rename to core/vm/gas.go diff --git a/vm/main_test.go b/core/vm/main_test.go similarity index 100% rename from vm/main_test.go rename to core/vm/main_test.go diff --git a/vm/memory.go b/core/vm/memory.go similarity index 100% rename from vm/memory.go rename to core/vm/memory.go diff --git a/vm/stack.go b/core/vm/stack.go similarity index 100% rename from vm/stack.go rename to core/vm/stack.go diff --git a/vm/types.go b/core/vm/types.go similarity index 100% rename from vm/types.go rename to core/vm/types.go diff --git a/vm/virtual_machine.go b/core/vm/virtual_machine.go similarity index 100% rename from vm/virtual_machine.go rename to core/vm/virtual_machine.go diff --git a/vm/vm.go b/core/vm/vm.go similarity index 99% rename from vm/vm.go rename to core/vm/vm.go index 7400a48c40..f4bf1ca72a 100644 --- a/vm/vm.go +++ b/core/vm/vm.go @@ -6,7 +6,7 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/state" + "github.com/ethereum/go-ethereum/core/state" ) type Vm struct { diff --git a/vm/vm_jit.go b/core/vm/vm_jit.go similarity index 99% rename from vm/vm_jit.go rename to core/vm/vm_jit.go index 9d26957f04..2b88d86202 100644 --- a/vm/vm_jit.go +++ b/core/vm/vm_jit.go @@ -19,7 +19,7 @@ import ( "errors" "fmt" "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/state" + "github.com/ethereum/go-ethereum/core/state" "math/big" "unsafe" ) diff --git a/vm/vm_jit_fake.go b/core/vm/vm_jit_fake.go similarity index 100% rename from vm/vm_jit_fake.go rename to core/vm/vm_jit_fake.go diff --git a/vm/vm_test.go b/core/vm/vm_test.go similarity index 100% rename from vm/vm_test.go rename to core/vm/vm_test.go diff --git a/core/vm_env.go b/core/vm_env.go index 7845d1cd95..d786844dc2 100644 --- a/core/vm_env.go +++ b/core/vm_env.go @@ -5,8 +5,8 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/state" - "github.com/ethereum/go-ethereum/vm" + "github.com/ethereum/go-ethereum/core/state" + "github.com/ethereum/go-ethereum/core/vm" ) type VMEnv struct { diff --git a/eth/backend.go b/eth/backend.go index 06c3cbd177..11ef9660f7 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -21,7 +21,7 @@ import ( "github.com/ethereum/go-ethereum/p2p" "github.com/ethereum/go-ethereum/p2p/discover" "github.com/ethereum/go-ethereum/p2p/nat" - "github.com/ethereum/go-ethereum/vm" + "github.com/ethereum/go-ethereum/core/vm" "github.com/ethereum/go-ethereum/whisper" ) diff --git a/event/filter/eth_filter.go b/event/filter/eth_filter.go index 1abd48389e..dc032b5c21 100644 --- a/event/filter/eth_filter.go +++ b/event/filter/eth_filter.go @@ -7,7 +7,7 @@ import ( "github.com/ethereum/go-ethereum/core" "github.com/ethereum/go-ethereum/event" - "github.com/ethereum/go-ethereum/state" + "github.com/ethereum/go-ethereum/core/state" ) type FilterManager struct { diff --git a/miner/worker.go b/miner/worker.go index 587036f226..e21765f9da 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -13,7 +13,7 @@ import ( "github.com/ethereum/go-ethereum/event" "github.com/ethereum/go-ethereum/logger" "github.com/ethereum/go-ethereum/pow" - "github.com/ethereum/go-ethereum/state" + "github.com/ethereum/go-ethereum/core/state" "gopkg.in/fatih/set.v0" ) diff --git a/rpc/responses.go b/rpc/responses.go index 1ec5f08eb2..993f467eaf 100644 --- a/rpc/responses.go +++ b/rpc/responses.go @@ -7,7 +7,7 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/state" + "github.com/ethereum/go-ethereum/core/state" ) type BlockRes struct { diff --git a/tests/blocktest.go b/tests/blocktest.go index 5719a835ba..34bd69ac85 100644 --- a/tests/blocktest.go +++ b/tests/blocktest.go @@ -15,7 +15,7 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/rlp" - "github.com/ethereum/go-ethereum/state" + "github.com/ethereum/go-ethereum/core/state" ) // Block Test JSON Format diff --git a/tests/helper/vm.go b/tests/helper/vm.go index 44c1088702..68ae8e97ba 100644 --- a/tests/helper/vm.go +++ b/tests/helper/vm.go @@ -7,8 +7,8 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core" "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/state" - "github.com/ethereum/go-ethereum/vm" + "github.com/ethereum/go-ethereum/core/state" + "github.com/ethereum/go-ethereum/core/vm" ) type Env struct { diff --git a/tests/vm/gh_test.go b/tests/vm/gh_test.go index 68600d3040..123e8ccb56 100644 --- a/tests/vm/gh_test.go +++ b/tests/vm/gh_test.go @@ -10,7 +10,7 @@ import ( "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/logger" - "github.com/ethereum/go-ethereum/state" + "github.com/ethereum/go-ethereum/core/state" "github.com/ethereum/go-ethereum/tests/helper" ) diff --git a/vm/.ethtest b/vm/.ethtest deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/xeth/state.go b/xeth/state.go index f645a9cacf..b0f2ce019e 100644 --- a/xeth/state.go +++ b/xeth/state.go @@ -2,7 +2,7 @@ package xeth import ( "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/state" + "github.com/ethereum/go-ethereum/core/state" ) type State struct { diff --git a/xeth/types.go b/xeth/types.go index b4ba7bab0f..09d0dc714a 100644 --- a/xeth/types.go +++ b/xeth/types.go @@ -11,7 +11,7 @@ import ( "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/p2p" "github.com/ethereum/go-ethereum/rlp" - "github.com/ethereum/go-ethereum/state" + "github.com/ethereum/go-ethereum/core/state" ) type Object struct { diff --git a/xeth/xeth.go b/xeth/xeth.go index f7f4ce0cfb..02a691ffb9 100644 --- a/xeth/xeth.go +++ b/xeth/xeth.go @@ -19,7 +19,7 @@ import ( "github.com/ethereum/go-ethereum/logger" "github.com/ethereum/go-ethereum/miner" "github.com/ethereum/go-ethereum/p2p" - "github.com/ethereum/go-ethereum/state" + "github.com/ethereum/go-ethereum/core/state" "github.com/ethereum/go-ethereum/whisper" )