Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
fa4aefee
Commit
fa4aefee
authored
May 31, 2015
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core/vm: cleanup and renames
parent
86103149
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
52 deletions
+0
-52
contracts.go
core/vm/contracts.go
+0
-0
environment.go
core/vm/environment.go
+0
-40
main_test.go
core/vm/main_test.go
+0
-9
opcodes.go
core/vm/opcodes.go
+0
-0
vm_test.go
core/vm/vm_test.go
+0
-3
No files found.
core/vm/
addres
s.go
→
core/vm/
contract
s.go
View file @
fa4aefee
File moved
core/vm/environment.go
View file @
fa4aefee
...
...
@@ -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
)
}
core/vm/main_test.go
deleted
100644 → 0
View file @
86103149
package
vm
import
(
"testing"
checker
"gopkg.in/check.v1"
)
func
Test
(
t
*
testing
.
T
)
{
checker
.
TestingT
(
t
)
}
core/vm/
typ
es.go
→
core/vm/
opcod
es.go
View file @
fa4aefee
File moved
core/vm/vm_test.go
deleted
100644 → 0
View file @
86103149
package
vm
// Tests have been removed in favour of general tests. If anything implementation specific needs testing, put it here
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment