moved state and vm to core

pull/552/head
obscuren 10 years ago
parent d7eaa97a29
commit 0330077d76
  1. 2
      cmd/disasm/main.go
  2. 2
      cmd/ethereum/admin.go
  3. 2
      cmd/ethereum/main.go
  4. 4
      cmd/ethtest/main.go
  5. 4
      cmd/evm/main.go
  6. 2
      cmd/mist/bindings.go
  7. 2
      core/asm.go
  8. 2
      core/block_processor.go
  9. 2
      core/chain_makers.go
  10. 2
      core/chain_manager.go
  11. 2
      core/events.go
  12. 4
      core/execution.go
  13. 2
      core/filter.go
  14. 2
      core/genesis.go
  15. 0
      core/state/dump.go
  16. 0
      core/state/errors.go
  17. 0
      core/state/log.go
  18. 0
      core/state/main_test.go
  19. 0
      core/state/managed_state.go
  20. 0
      core/state/managed_state_test.go
  21. 0
      core/state/state_object.go
  22. 0
      core/state/state_test.go
  23. 0
      core/state/statedb.go
  24. 4
      core/state_transition.go
  25. 2
      core/transaction_pool_test.go
  26. 2
      core/types/bloom9.go
  27. 2
      core/types/bloom9_test.go
  28. 2
      core/types/common.go
  29. 2
      core/types/receipt.go
  30. 0
      core/vm/address.go
  31. 0
      core/vm/analysis.go
  32. 0
      core/vm/asm.go
  33. 0
      core/vm/common.go
  34. 0
      core/vm/context.go
  35. 2
      core/vm/environment.go
  36. 0
      core/vm/errors.go
  37. 0
      core/vm/gas.go
  38. 0
      core/vm/main_test.go
  39. 0
      core/vm/memory.go
  40. 0
      core/vm/stack.go
  41. 0
      core/vm/types.go
  42. 0
      core/vm/virtual_machine.go
  43. 2
      core/vm/vm.go
  44. 2
      core/vm/vm_jit.go
  45. 0
      core/vm/vm_jit_fake.go
  46. 0
      core/vm/vm_test.go
  47. 4
      core/vm_env.go
  48. 2
      eth/backend.go
  49. 2
      event/filter/eth_filter.go
  50. 2
      miner/worker.go
  51. 2
      rpc/responses.go
  52. 2
      tests/blocktest.go
  53. 4
      tests/helper/vm.go
  54. 2
      tests/vm/gh_test.go
  55. 0
      vm/.ethtest
  56. 2
      xeth/state.go
  57. 2
      xeth/types.go
  58. 2
      xeth/xeth.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() {

@ -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"
)

@ -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"
)

@ -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 {

@ -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 (

@ -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 {

@ -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) {

@ -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"
)

@ -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

@ -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 (

@ -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.

@ -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 {

@ -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 {

@ -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"
)
/*

@ -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

@ -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

@ -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 {

@ -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) {

@ -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"
)

@ -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 {

@ -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 {

@ -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 {

@ -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"
)

@ -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 {

@ -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"
)

@ -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 {

@ -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"
)

@ -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 {

@ -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

@ -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 {

@ -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"
)

@ -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 {

@ -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 {

@ -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"
)

Loading…
Cancel
Save