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
6c6e8b0f
Commit
6c6e8b0f
authored
Mar 05, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed block manager to state manager
parent
79320e28
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
69 additions
and
69 deletions
+69
-69
state_manager.go
ethchain/state_manager.go
+63
-63
ethereum.go
ethereum.go
+6
-6
No files found.
ethchain/
block
_manager.go
→
ethchain/
state
_manager.go
View file @
6c6e8b0f
This diff is collapsed.
Click to expand it.
ethereum.go
View file @
6c6e8b0f
...
@@ -36,8 +36,8 @@ type Ethereum struct {
...
@@ -36,8 +36,8 @@ type Ethereum struct {
// DB interface
// DB interface
//db *ethdb.LDBDatabase
//db *ethdb.LDBDatabase
db
ethutil
.
Database
db
ethutil
.
Database
//
Block manager for processing new blocks and managing the block chain
//
State manager for processing new blocks and managing the over all states
blockManager
*
ethchain
.
Block
Manager
stateManager
*
ethchain
.
State
Manager
// The transaction pool. Transaction can be pushed on this pool
// The transaction pool. Transaction can be pushed on this pool
// for later including in the blocks
// for later including in the blocks
txPool
*
ethchain
.
TxPool
txPool
*
ethchain
.
TxPool
...
@@ -91,7 +91,7 @@ func New(caps Caps, usePnp bool) (*Ethereum, error) {
...
@@ -91,7 +91,7 @@ func New(caps Caps, usePnp bool) (*Ethereum, error) {
}
}
ethereum
.
txPool
=
ethchain
.
NewTxPool
(
ethereum
)
ethereum
.
txPool
=
ethchain
.
NewTxPool
(
ethereum
)
ethereum
.
blockChain
=
ethchain
.
NewBlockChain
(
ethereum
)
ethereum
.
blockChain
=
ethchain
.
NewBlockChain
(
ethereum
)
ethereum
.
blockManager
=
ethchain
.
NewBlock
Manager
(
ethereum
)
ethereum
.
stateManager
=
ethchain
.
NewState
Manager
(
ethereum
)
// Start the tx pool
// Start the tx pool
ethereum
.
txPool
.
Start
()
ethereum
.
txPool
.
Start
()
...
@@ -103,8 +103,8 @@ func (s *Ethereum) BlockChain() *ethchain.BlockChain {
...
@@ -103,8 +103,8 @@ func (s *Ethereum) BlockChain() *ethchain.BlockChain {
return
s
.
blockChain
return
s
.
blockChain
}
}
func
(
s
*
Ethereum
)
StateManager
()
*
ethchain
.
Block
Manager
{
func
(
s
*
Ethereum
)
StateManager
()
*
ethchain
.
State
Manager
{
return
s
.
block
Manager
return
s
.
state
Manager
}
}
func
(
s
*
Ethereum
)
TxPool
()
*
ethchain
.
TxPool
{
func
(
s
*
Ethereum
)
TxPool
()
*
ethchain
.
TxPool
{
...
@@ -304,7 +304,7 @@ func (s *Ethereum) Stop() {
...
@@ -304,7 +304,7 @@ func (s *Ethereum) Stop() {
close
(
s
.
quit
)
close
(
s
.
quit
)
s
.
txPool
.
Stop
()
s
.
txPool
.
Stop
()
s
.
block
Manager
.
Stop
()
s
.
state
Manager
.
Stop
()
close
(
s
.
shutdownChan
)
close
(
s
.
shutdownChan
)
}
}
...
...
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