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
088bbc6b
Commit
088bbc6b
authored
Aug 21, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release/0.6.4' into develop
parents
732573ba
d03ab3c9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
11 deletions
+7
-11
README.md
README.md
+1
-1
types.go
ethvm/types.go
+6
-6
vm.go
ethvm/vm.go
+0
-4
No files found.
README.md
View file @
088bbc6b
...
@@ -6,7 +6,7 @@ Ethereum
...
@@ -6,7 +6,7 @@ Ethereum
Ethereum Go Development package (C) Jeffrey Wilcke
Ethereum Go Development package (C) Jeffrey Wilcke
Ethereum is currently in its testing phase. The current state is "Proof
Ethereum is currently in its testing phase. The current state is "Proof
of Concept 0.6.
3
". For build instructions see the
[
Wiki
](
https://github.com/ethereum/go-ethereum/wiki/Building-Ethereum(Go
)
).
of Concept 0.6.
4
". For build instructions see the
[
Wiki
](
https://github.com/ethereum/go-ethereum/wiki/Building-Ethereum(Go
)
).
Ethereum Go is split up in several sub packages Please refer to each
Ethereum Go is split up in several sub packages Please refer to each
individual package for more information.
individual package for more information.
...
...
ethvm/types.go
View file @
088bbc6b
...
@@ -59,9 +59,9 @@ const (
...
@@ -59,9 +59,9 @@ const (
GASLIMIT
=
0x45
GASLIMIT
=
0x45
// 0x50 range - 'storage' and execution
// 0x50 range - 'storage' and execution
POP
=
0x50
POP
=
0x50
DUP
=
0x51
//
DUP = 0x51
SWAP
=
0x52
//
SWAP = 0x52
MLOAD
=
0x53
MLOAD
=
0x53
MSTORE
=
0x54
MSTORE
=
0x54
MSTORE8
=
0x55
MSTORE8
=
0x55
...
@@ -204,9 +204,9 @@ var opCodeToString = map[OpCode]string{
...
@@ -204,9 +204,9 @@ var opCodeToString = map[OpCode]string{
GASLIMIT
:
"GASLIMIT"
,
GASLIMIT
:
"GASLIMIT"
,
// 0x50 range - 'storage' and execution
// 0x50 range - 'storage' and execution
POP
:
"POP"
,
POP
:
"POP"
,
DUP
:
"DUP"
,
//
DUP: "DUP",
SWAP
:
"SWAP"
,
//
SWAP: "SWAP",
MLOAD
:
"MLOAD"
,
MLOAD
:
"MLOAD"
,
MSTORE
:
"MSTORE"
,
MSTORE
:
"MSTORE"
,
MSTORE8
:
"MSTORE8"
,
MSTORE8
:
"MSTORE8"
,
...
...
ethvm/vm.go
View file @
088bbc6b
...
@@ -640,10 +640,6 @@ func (self *Vm) RunClosure(closure *Closure) (ret []byte, err error) {
...
@@ -640,10 +640,6 @@ func (self *Vm) RunClosure(closure *Closure) (ret []byte, err error) {
x
,
y
:=
stack
.
Swapn
(
n
)
x
,
y
:=
stack
.
Swapn
(
n
)
self
.
Printf
(
" => [%d] %x [0] %x"
,
n
,
x
.
Bytes
(),
y
.
Bytes
())
self
.
Printf
(
" => [%d] %x [0] %x"
,
n
,
x
.
Bytes
(),
y
.
Bytes
())
case
DUP
:
// NOP
case
SWAP
:
// NOP
case
MLOAD
:
case
MLOAD
:
require
(
1
)
require
(
1
)
offset
:=
stack
.
Pop
()
offset
:=
stack
.
Pop
()
...
...
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