Forráskód Böngészése

core/vm: cleanup and renames

obscuren 10 éve
szülő
commit
fa4aefee44
5 módosított fájl, 0 hozzáadás és 52 törlés
  1. 0 0
      core/vm/contracts.go
  2. 0 40
      core/vm/environment.go
  3. 0 9
      core/vm/main_test.go
  4. 0 0
      core/vm/opcodes.go
  5. 0 3
      core/vm/vm_test.go

+ 0 - 0
core/vm/address.go → core/vm/contracts.go


+ 0 - 40
core/vm/environment.go

@@ -2,13 +2,10 @@ package vm
 
 import (
 	"errors"
-	"fmt"
-	"io"
 	"math/big"
 
 	"github.com/ethereum/go-ethereum/common"
 	"github.com/ethereum/go-ethereum/core/state"
-	"github.com/ethereum/go-ethereum/rlp"
 )
 
 type Environment interface {
@@ -52,40 +49,3 @@ func Transfer(from, to Account, amount *big.Int) error {
 
 	return nil
 }
-
-type Log struct {
-	address common.Address
-	topics  []common.Hash
-	data    []byte
-	log     uint64
-}
-
-func (self *Log) Address() common.Address {
-	return self.address
-}
-
-func (self *Log) Topics() []common.Hash {
-	return self.topics
-}
-
-func (self *Log) Data() []byte {
-	return self.data
-}
-
-func (self *Log) Number() uint64 {
-	return self.log
-}
-
-func (self *Log) EncodeRLP(w io.Writer) error {
-	return rlp.Encode(w, []interface{}{self.address, self.topics, self.data})
-}
-
-/*
-func (self *Log) RlpData() interface{} {
-	return []interface{}{self.address, common.ByteSliceToInterface(self.topics), self.data}
-}
-*/
-
-func (self *Log) String() string {
-	return fmt.Sprintf("{%x %x %x}", self.address, self.data, self.topics)
-}

+ 0 - 9
core/vm/main_test.go

@@ -1,9 +0,0 @@
-package vm
-
-import (
-	"testing"
-
-	checker "gopkg.in/check.v1"
-)
-
-func Test(t *testing.T) { checker.TestingT(t) }

+ 0 - 0
core/vm/types.go → core/vm/opcodes.go


+ 0 - 3
core/vm/vm_test.go

@@ -1,3 +0,0 @@
-package vm
-
-// Tests have been removed in favour of general tests. If anything implementation specific needs testing, put it here