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
af6afbaa
Commit
af6afbaa
authored
Dec 10, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed start/stop methods
parent
1b98cbbf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
24 deletions
+0
-24
block_manager.go
core/block_manager.go
+0
-22
ethereum.go
ethereum.go
+0
-2
No files found.
core/block_manager.go
View file @
af6afbaa
...
...
@@ -90,14 +90,6 @@ func NewBlockManager(ethereum EthManager) *BlockManager {
return
sm
}
func
(
self
*
BlockManager
)
Start
()
{
statelogger
.
Debugln
(
"Starting block manager"
)
}
func
(
self
*
BlockManager
)
Stop
()
{
statelogger
.
Debugln
(
"Stopping state manager"
)
}
func
(
sm
*
BlockManager
)
CurrentState
()
*
state
.
StateDB
{
return
sm
.
eth
.
ChainManager
()
.
CurrentBlock
.
State
()
}
...
...
@@ -106,20 +98,6 @@ func (sm *BlockManager) TransState() *state.StateDB {
return
sm
.
transState
}
func
(
sm
*
BlockManager
)
MiningState
()
*
state
.
StateDB
{
return
sm
.
miningState
}
func
(
sm
*
BlockManager
)
NewMiningState
()
*
state
.
StateDB
{
sm
.
miningState
=
sm
.
eth
.
ChainManager
()
.
CurrentBlock
.
State
()
.
Copy
()
return
sm
.
miningState
}
func
(
sm
*
BlockManager
)
ChainManager
()
*
ChainManager
{
return
sm
.
bc
}
func
(
sm
*
BlockManager
)
TransitionState
(
statedb
*
state
.
StateDB
,
parent
,
block
*
types
.
Block
)
(
receipts
types
.
Receipts
,
err
error
)
{
coinbase
:=
statedb
.
GetOrNewStateObject
(
block
.
Coinbase
)
coinbase
.
SetGasPool
(
block
.
CalcGasLimit
(
parent
))
...
...
ethereum.go
View file @
af6afbaa
...
...
@@ -393,7 +393,6 @@ func (s *Ethereum) reapDeadPeerHandler() {
// Start the ethereum
func
(
s
*
Ethereum
)
Start
(
seed
bool
)
{
s
.
blockPool
.
Start
()
s
.
blockManager
.
Start
()
// Bind to addr and port
ln
,
err
:=
net
.
Listen
(
"tcp"
,
":"
+
s
.
Port
)
...
...
@@ -517,7 +516,6 @@ func (s *Ethereum) Stop() {
s
.
RpcServer
.
Stop
()
}
s
.
txPool
.
Stop
()
s
.
blockManager
.
Stop
()
s
.
blockPool
.
Stop
()
loggerger
.
Infoln
(
"Server stopped"
)
...
...
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