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
fde3e01f
Commit
fde3e01f
authored
May 05, 2014
by
Maran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed import cycle
parent
c496aad2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
ethereum.go
ethereum.go
+3
-2
server.go
etherpc/server.go
+1
-1
pub.go
ethpub/pub.go
+4
-5
No files found.
ethereum.go
View file @
fde3e01f
...
...
@@ -4,6 +4,7 @@ import (
"container/list"
"github.com/ethereum/eth-go/ethchain"
"github.com/ethereum/eth-go/ethdb"
"github.com/ethereum/eth-go/etherpc"
"github.com/ethereum/eth-go/ethutil"
"github.com/ethereum/eth-go/ethwire"
"io/ioutil"
...
...
@@ -63,7 +64,7 @@ type Ethereum struct {
reactor
*
ethutil
.
ReactorEngine
// TODO: This no worky:
RpcServer *etherpc.JsonRpcServer
RpcServer
*
etherpc
.
JsonRpcServer
}
func
New
(
caps
Caps
,
usePnp
bool
)
(
*
Ethereum
,
error
)
{
...
...
@@ -338,9 +339,9 @@ func (s *Ethereum) Stop() {
close
(
s
.
quit
)
s
.
RpcServer
.
Stop
()
s
.
txPool
.
Stop
()
s
.
stateManager
.
Stop
()
// TODO: THIS NO WORKY: s.RpcServer.Stop()
close
(
s
.
shutdownChan
)
}
...
...
etherpc/server.go
View file @
fde3e01f
...
...
@@ -41,7 +41,7 @@ func (s *JsonRpcServer) Start() {
conn
,
err
:=
s
.
listener
.
Accept
()
if
err
!=
nil
{
ethutil
.
Config
.
Log
.
Infoln
(
"[JSON] Error starting JSON-RPC:"
,
err
)
continue
break
}
ethutil
.
Config
.
Log
.
Debugln
(
"[JSON] Incoming request."
)
go
jsonrpc
.
ServeConn
(
conn
)
...
...
ethpub/pub.go
View file @
fde3e01f
package
ethpub
import
(
"github.com/ethereum/eth-go"
"github.com/ethereum/eth-go/ethchain"
"github.com/ethereum/eth-go/ethutil"
)
...
...
@@ -12,11 +11,11 @@ type PEthereum struct {
txPool
*
ethchain
.
TxPool
}
func
NewPEthereum
(
eth
*
eth
.
Ethereum
)
*
PEthereum
{
func
NewPEthereum
(
sm
*
ethchain
.
StateManager
,
bc
*
ethchain
.
BlockChain
,
txp
*
ethchain
.
TxPool
)
*
PEthereum
{
return
&
PEthereum
{
eth
.
StateManager
()
,
eth
.
BlockChain
()
,
eth
.
TxPool
()
,
sm
,
bc
,
txp
,
}
}
...
...
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