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
e20b1130
Commit
e20b1130
authored
Sep 26, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Logging messages
parent
0acdeca3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
block_pool.go
block_pool.go
+3
-1
state_manager.go
ethchain/state_manager.go
+1
-1
No files found.
block_pool.go
View file @
e20b1130
...
...
@@ -14,7 +14,7 @@ import (
"github.com/ethereum/eth-go/ethwire"
)
var
poollogger
=
ethlog
.
NewLogger
(
"
[BPOOL]
"
)
var
poollogger
=
ethlog
.
NewLogger
(
"
BPOOL
"
)
type
block
struct
{
from
*
Peer
...
...
@@ -71,6 +71,8 @@ func (self *BlockPool) SetBlock(b *ethchain.Block, peer *Peer) {
hash
:=
string
(
b
.
Hash
())
if
self
.
pool
[
hash
]
==
nil
&&
!
self
.
eth
.
BlockChain
()
.
HasBlock
(
b
.
Hash
())
{
poollogger
.
Infof
(
"Got unrequested block (%x...)
\n
"
,
hash
[
0
:
4
])
self
.
hashPool
=
append
(
self
.
hashPool
,
b
.
Hash
())
self
.
pool
[
hash
]
=
&
block
{
peer
,
peer
,
b
,
time
.
Now
(),
0
}
...
...
ethchain/state_manager.go
View file @
e20b1130
...
...
@@ -251,7 +251,7 @@ func (sm *StateManager) Process(block *Block, dontReact bool) (err error) {
fk
:=
append
([]
byte
(
"bloom"
),
block
.
Hash
()
...
)
sm
.
Ethereum
.
Db
()
.
Put
(
fk
,
filter
.
Bin
())
statelogger
.
Debugf
(
"Added block #%d (%x)
\n
"
,
block
.
Number
,
block
.
Hash
()
)
statelogger
.
Infof
(
"Imported block #%d (%x...)
\n
"
,
block
.
Number
,
block
.
Hash
()[
0
:
4
]
)
if
dontReact
==
false
{
sm
.
Ethereum
.
Reactor
()
.
Post
(
"newBlock"
,
block
)
...
...
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