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
e94e5ac7
Commit
e94e5ac7
authored
11 years ago
by
Maran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented rpc for ethereal and ethereum
parent
bcb3ad73
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
ethereum.go
ethereal/ethereum.go
+7
-0
ext_app.go
ethereal/ui/ext_app.go
+1
-1
ethereum.go
ethereum/ethereum.go
+2
-4
No files found.
ethereal/ethereum.go
View file @
e94e5ac7
...
...
@@ -4,6 +4,8 @@ import (
"fmt"
"github.com/ethereum/eth-go"
"github.com/ethereum/eth-go/ethchain"
"github.com/ethereum/eth-go/etherpc"
"github.com/ethereum/eth-go/ethpub"
"github.com/ethereum/eth-go/ethutil"
"github.com/ethereum/go-ethereum/ethereal/ui"
"github.com/ethereum/go-ethereum/utils"
...
...
@@ -98,6 +100,11 @@ func main() {
os
.
Exit
(
0
)
}
if
StartRpc
{
ethereum
.
RpcServer
=
etherpc
.
NewJsonRpcServer
(
ethpub
.
NewPEthereum
(
ethereum
.
StateManager
(),
ethereum
.
BlockChain
(),
ethereum
.
TxPool
()))
go
ethereum
.
RpcServer
.
Start
()
}
log
.
Printf
(
"Starting Ethereum GUI v%s
\n
"
,
ethutil
.
Config
.
Ver
)
// Set the max peers
...
...
This diff is collapsed.
Click to expand it.
ethereal/ui/ext_app.go
View file @
e94e5ac7
...
...
@@ -35,7 +35,7 @@ type ExtApplication struct {
func
NewExtApplication
(
container
AppContainer
,
lib
*
UiLib
)
*
ExtApplication
{
app
:=
&
ExtApplication
{
ethpub
.
NewPEthereum
(
lib
.
eth
),
ethpub
.
NewPEthereum
(
lib
.
eth
.
StateManager
(),
lib
.
eth
.
BlockChain
(),
lib
.
eth
.
TxPool
()
),
make
(
chan
ethutil
.
React
,
1
),
make
(
chan
ethutil
.
React
,
1
),
make
(
chan
bool
),
...
...
This diff is collapsed.
Click to expand it.
ethereum/ethereum.go
View file @
e94e5ac7
...
...
@@ -134,10 +134,8 @@ func main() {
go
console
.
Start
()
}
if
StartRpc
{
// TODO: Can we make this work again?
//ethereum.RpcServer = etherpc.NewJsonRpcServer(ethpub.NewPEthereum(ethereum))
rpc
:=
etherpc
.
NewJsonRpcServer
(
ethpub
.
NewPEthereum
(
ethereum
))
go
rpc
.
Start
()
ethereum
.
RpcServer
=
etherpc
.
NewJsonRpcServer
(
ethpub
.
NewPEthereum
(
ethereum
.
StateManager
(),
ethereum
.
BlockChain
(),
ethereum
.
TxPool
()))
go
ethereum
.
RpcServer
.
Start
()
}
RegisterInterrupts
(
ethereum
)
...
...
This diff is collapsed.
Click to expand it.
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