good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
cfb2b51b
Commit
cfb2b51b
authored
May 15, 2015
by
Jeffrey Wilcke
Browse files
Options
Downloads
Patches
Plain Diff
eth/downloader: fixed test
parent
f6669db0
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/chain_manager_test.go
+1
-1
1 addition, 1 deletion
core/chain_manager_test.go
eth/downloader/downloader_test.go
+3
-1
3 additions, 1 deletion
eth/downloader/downloader_test.go
with
4 additions
and
2 deletions
core/chain_manager_test.go
+
1
−
1
View file @
cfb2b51b
...
@@ -81,7 +81,7 @@ func testChain(chainB types.Blocks, bman *BlockProcessor) (*big.Int, error) {
...
@@ -81,7 +81,7 @@ func testChain(chainB types.Blocks, bman *BlockProcessor) (*big.Int, error) {
return
nil
,
err
return
nil
,
err
}
}
parent
:=
bman
.
bc
.
GetBlock
(
block
.
ParentHash
())
parent
:=
bman
.
bc
.
GetBlock
(
block
.
ParentHash
())
block
.
Td
=
Calc
ulate
TD
(
block
,
parent
)
block
.
Td
=
CalcTD
(
block
,
parent
)
td
=
block
.
Td
td
=
block
.
Td
bman
.
bc
.
mu
.
Lock
()
bman
.
bc
.
mu
.
Lock
()
...
...
This diff is collapsed.
Click to expand it.
eth/downloader/downloader_test.go
+
3
−
1
View file @
cfb2b51b
...
@@ -8,6 +8,7 @@ import (
...
@@ -8,6 +8,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/event"
)
)
var
(
var
(
...
@@ -67,7 +68,8 @@ func newTester(t *testing.T, hashes []common.Hash, blocks map[common.Hash]*types
...
@@ -67,7 +68,8 @@ func newTester(t *testing.T, hashes []common.Hash, blocks map[common.Hash]*types
done
:
make
(
chan
bool
),
done
:
make
(
chan
bool
),
}
}
downloader
:=
New
(
tester
.
hasBlock
,
tester
.
getBlock
)
var
mux
event
.
TypeMux
downloader
:=
New
(
&
mux
,
tester
.
hasBlock
,
tester
.
getBlock
)
tester
.
downloader
=
downloader
tester
.
downloader
=
downloader
return
tester
return
tester
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment