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
159c4d56
Commit
159c4d56
authored
Jan 28, 2015
by
obscuren
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into jsonrpc
parents
7a894e37
8c99a87a
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
389 additions
and
31 deletions
+389
-31
.gitignore
.gitignore
+2
-0
README.md
README.md
+13
-13
chain_manager_test.go
core/chain_manager_test.go
+6
-0
gh_test.go
tests/vm/gh_test.go
+9
-9
vm_jit.go
vm/vm_jit.go
+349
-9
vm_jit_fake.go
vm/vm_jit_fake.go
+10
-0
No files found.
.gitignore
View file @
159c4d56
...
...
@@ -15,3 +15,5 @@
.#*
*#
*~
.project
.settings
README.md
View file @
159c4d56
[

](https://waffle.io/ethereum/go-ethereum)
[

](https://waffle.io/ethereum/go-ethereum)
[
!
[
Stories in
Progress](https://badge.waffle.io/ethereum/go-ethereum.svg?label=in%20progress&title=In Progress)](http://waffle.io/ethereum/go-ethereum
)
[
](http://waffle.io/ethereum/go-ethereum)
[

](https://gitter.im/ethereum/go-ethereum?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge
)
Ethereum
Ethereum PoC-8
========
[
!
[
Build
Status](http://build.ethdev.com/buildstatusimage?builder=Linux%20Go%20master%20branch)](http://build.ethdev.com:8010/builders/Linux%20Go%20master%20branch/builds/-1) master
[
!
[
Build
Status](http://build.ethdev.com/buildstatusimage?builder=Linux%20Go%20develop%20branch)](http://build.ethdev.com:8010/builders/Linux%20Go%20develop%20branch/builds/-1) develop
[

](https://coveralls.io/r/ethereum/go-ethereum?branch=tests) tests
*
[

](http://build.ethdev.com:8010/builders/Linux%20Go%20master%20branch/builds/-1) master
*
[

](http://build.ethdev.com:8010/builders/Linux%20Go%20develop%20branch/builds/-1) develop
*
[

](https://travis-ci.org/ethereum/go-ethereum) travis-ci
*
[

](https://coveralls.io/r/ethereum/go-ethereum?branch=tests)
Ethereum Go Client © 2014 Jeffrey Wilcke.
Current state: Proof of Concept 0.8
Ethereum is currently in its testing phase.
Build
=====
To build
Mist (GUI):
Mist (GUI):
`go get github.com/ethereum/go-ethereum/cmd/mist`
To build the node
(CLI):
Ethereum
(CLI):
`go get github.com/ethereum/go-ethereum/cmd/ethereum`
...
...
@@ -49,6 +46,8 @@ Go Ethereum comes with several binaries found in
`cat file | ethtest`
.
*
`evm`
is a generic Ethereum Virtual Machine:
`evm -code 60ff60ff -gas
10000 -price 0 -dump`
. See
`-h`
for a detailed description.
*
`rlpdump`
converts a rlp stream to
`interface{}`
.
*
`peerserver`
simple P2P (noi-ethereum) peer server.
General command line options
============================
...
...
@@ -125,3 +124,4 @@ expect you to write tests for me so I don't have to test your code
manually. (If you want to contribute by just writing tests that's fine
too!)
core/chain_manager_test.go
View file @
159c4d56
...
...
@@ -46,6 +46,8 @@ func insertChain(done chan bool, chainMan *ChainManager, chain types.Blocks, t *
}
func
TestChainInsertions
(
t
*
testing
.
T
)
{
t
.
Skip
()
// travil fails.
db
,
_
:=
ethdb
.
NewMemDatabase
()
chain1
,
err
:=
loadChain
(
"valid1"
,
t
)
...
...
@@ -86,6 +88,8 @@ func TestChainInsertions(t *testing.T) {
}
func
TestChainMultipleInsertions
(
t
*
testing
.
T
)
{
t
.
Skip
()
// travil fails.
db
,
_
:=
ethdb
.
NewMemDatabase
()
const
max
=
4
...
...
@@ -130,6 +134,8 @@ func TestChainMultipleInsertions(t *testing.T) {
}
func
TestGetAncestors
(
t
*
testing
.
T
)
{
t
.
Skip
()
// travil fails.
db
,
_
:=
ethdb
.
NewMemDatabase
()
var
eventMux
event
.
TypeMux
chainMan
:=
NewChainManager
(
db
,
&
eventMux
)
...
...
tests/vm/gh_test.go
View file @
159c4d56
...
...
@@ -172,47 +172,47 @@ func RunVmTest(p string, t *testing.T) {
// I've created a new function for each tests so it's easier to identify where the problem lies if any of them fail.
func
TestVMArithmetic
(
t
*
testing
.
T
)
{
const
fn
=
"../files/
vmt
ests/vmArithmeticTest.json"
const
fn
=
"../files/
VMT
ests/vmArithmeticTest.json"
RunVmTest
(
fn
,
t
)
}
func
TestBitwiseLogicOperation
(
t
*
testing
.
T
)
{
const
fn
=
"../files/
vmt
ests/vmBitwiseLogicOperationTest.json"
const
fn
=
"../files/
VMT
ests/vmBitwiseLogicOperationTest.json"
RunVmTest
(
fn
,
t
)
}
func
TestBlockInfo
(
t
*
testing
.
T
)
{
const
fn
=
"../files/
vmt
ests/vmBlockInfoTest.json"
const
fn
=
"../files/
VMT
ests/vmBlockInfoTest.json"
RunVmTest
(
fn
,
t
)
}
func
TestEnvironmentalInfo
(
t
*
testing
.
T
)
{
const
fn
=
"../files/
vmt
ests/vmEnvironmentalInfoTest.json"
const
fn
=
"../files/
VMT
ests/vmEnvironmentalInfoTest.json"
RunVmTest
(
fn
,
t
)
}
func
TestFlowOperation
(
t
*
testing
.
T
)
{
const
fn
=
"../files/
vmt
ests/vmIOandFlowOperationsTest.json"
const
fn
=
"../files/
VMT
ests/vmIOandFlowOperationsTest.json"
RunVmTest
(
fn
,
t
)
}
func
TestPushDupSwap
(
t
*
testing
.
T
)
{
const
fn
=
"../files/
vmt
ests/vmPushDupSwapTest.json"
const
fn
=
"../files/
VMT
ests/vmPushDupSwapTest.json"
RunVmTest
(
fn
,
t
)
}
func
TestVMSha3
(
t
*
testing
.
T
)
{
const
fn
=
"../files/
vmt
ests/vmSha3Test.json"
const
fn
=
"../files/
VMT
ests/vmSha3Test.json"
RunVmTest
(
fn
,
t
)
}
func
TestVm
(
t
*
testing
.
T
)
{
const
fn
=
"../files/
vmt
ests/vmtests.json"
const
fn
=
"../files/
VMT
ests/vmtests.json"
RunVmTest
(
fn
,
t
)
}
func
TestVmLog
(
t
*
testing
.
T
)
{
const
fn
=
"../files/
vmt
ests/vmLogTest.json"
const
fn
=
"../files/
VMT
ests/vmLogTest.json"
RunVmTest
(
fn
,
t
)
}
...
...
vm/vm_jit.go
View file @
159c4d56
This diff is collapsed.
Click to expand it.
vm/vm_jit_fake.go
0 → 100644
View file @
159c4d56
// +build !evmjit
package
vm
import
"fmt"
func
NewJitVm
(
env
Environment
)
VirtualMachine
{
fmt
.
Printf
(
"Warning! EVM JIT not enabled.
\n
"
)
return
New
(
env
)
}
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