diff options
author | obscuren <geffobscura@gmail.com> | 2015-05-31 21:05:00 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-06-04 04:39:17 +0800 |
commit | fa4aefee44c5dd32fb7e0d02960c1550e9c8a330 (patch) | |
tree | b9f9cbce2e773519722b2111aa7d0f86f4ef6c19 | |
parent | 861031491860c69f29e1444c22dd84c38abfedf4 (diff) | |
download | go-tangerine-fa4aefee44c5dd32fb7e0d02960c1550e9c8a330.tar.gz go-tangerine-fa4aefee44c5dd32fb7e0d02960c1550e9c8a330.tar.zst go-tangerine-fa4aefee44c5dd32fb7e0d02960c1550e9c8a330.zip |
core/vm: cleanup and renames
-rw-r--r-- | core/vm/contracts.go (renamed from core/vm/address.go) | 0 | ||||
-rw-r--r-- | core/vm/environment.go | 40 | ||||
-rw-r--r-- | core/vm/main_test.go | 9 | ||||
-rw-r--r-- | core/vm/opcodes.go (renamed from core/vm/types.go) | 0 | ||||
-rw-r--r-- | core/vm/vm_test.go | 3 |
5 files changed, 0 insertions, 52 deletions
diff --git a/core/vm/address.go b/core/vm/contracts.go index 742017dd2..742017dd2 100644 --- a/core/vm/address.go +++ b/core/vm/contracts.go diff --git a/core/vm/environment.go b/core/vm/environment.go index cc9570fc8..282d19578 100644 --- a/core/vm/environment.go +++ b/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) -} diff --git a/core/vm/main_test.go b/core/vm/main_test.go deleted file mode 100644 index 0ae03bf6a..000000000 --- a/core/vm/main_test.go +++ /dev/null @@ -1,9 +0,0 @@ -package vm - -import ( - "testing" - - checker "gopkg.in/check.v1" -) - -func Test(t *testing.T) { checker.TestingT(t) } diff --git a/core/vm/types.go b/core/vm/opcodes.go index 1ea80a212..1ea80a212 100644 --- a/core/vm/types.go +++ b/core/vm/opcodes.go diff --git a/core/vm/vm_test.go b/core/vm/vm_test.go deleted file mode 100644 index 9bd147a72..000000000 --- a/core/vm/vm_test.go +++ /dev/null @@ -1,3 +0,0 @@ -package vm - -// Tests have been removed in favour of general tests. If anything implementation specific needs testing, put it here |