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
2855a93e
Commit
2855a93e
authored
Mar 16, 2016
by
Péter Szilágyi
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2341 from leijurv/patch-2
core: fixed various typos
parents
b5cee973
c7727191
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
blockchain.go
core/blockchain.go
+3
-3
No files found.
core/blockchain.go
View file @
2855a93e
...
...
@@ -99,7 +99,7 @@ type BlockChain struct {
futureBlocks
*
lru
.
Cache
// future blocks are blocks added for later processing
quit
chan
struct
{}
// blockchain quit channel
running
int32
// running must be called a
u
tomically
running
int32
// running must be called atomically
// procInterrupt must be atomically called
procInterrupt
int32
// interrupt signaler for block processing
wg
sync
.
WaitGroup
// chain processing wait group for shutting down
...
...
@@ -792,7 +792,7 @@ func (self *BlockChain) WriteBlock(block *types.Block) (status WriteStatus, err
glog
.
Fatalf
(
"failed to write block total difficulty: %v"
,
err
)
}
if
err
:=
WriteBlock
(
self
.
chainDb
,
block
);
err
!=
nil
{
glog
.
Fatalf
(
"filed to write block contents: %v"
,
err
)
glog
.
Fatalf
(
"f
a
iled to write block contents: %v"
,
err
)
}
self
.
futureBlocks
.
Remove
(
block
.
Hash
())
...
...
@@ -1134,7 +1134,7 @@ func reportBlock(block *types.Block, err error) {
//
// The verify parameter can be used to fine tune whether nonce verification
// should be done or not. The reason behind the optional check is because some
// of the header retrieval mechanisms already need to verfy nonces, as well as
// of the header retrieval mechanisms already need to ver
i
fy nonces, as well as
// because nonces can be verified sparsely, not needing to check each.
func
(
self
*
BlockChain
)
InsertHeaderChain
(
chain
[]
*
types
.
Header
,
checkFreq
int
)
(
int
,
error
)
{
// Make sure only one thread manipulates the chain at once
...
...
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