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
faa69bea
Unverified
Commit
faa69bea
authored
6 years ago
by
Péter Szilágyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core, eth: fix goimports for Go 1.11
parent
67c332e9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
genesis.go
core/genesis.go
+1
-1
api.go
eth/downloader/api.go
+2
-2
handler_test.go
eth/handler_test.go
+4
-4
No files found.
core/genesis.go
View file @
faa69bea
...
...
@@ -355,7 +355,7 @@ func DeveloperGenesisBlock(period uint64, faucet common.Address) *Genesis {
common
.
BytesToAddress
([]
byte
{
6
})
:
{
Balance
:
big
.
NewInt
(
1
)},
// ECAdd
common
.
BytesToAddress
([]
byte
{
7
})
:
{
Balance
:
big
.
NewInt
(
1
)},
// ECScalarMul
common
.
BytesToAddress
([]
byte
{
8
})
:
{
Balance
:
big
.
NewInt
(
1
)},
// ECPairing
faucet
:
{
Balance
:
new
(
big
.
Int
)
.
Sub
(
new
(
big
.
Int
)
.
Lsh
(
big
.
NewInt
(
1
),
256
),
big
.
NewInt
(
9
))},
faucet
:
{
Balance
:
new
(
big
.
Int
)
.
Sub
(
new
(
big
.
Int
)
.
Lsh
(
big
.
NewInt
(
1
),
256
),
big
.
NewInt
(
9
))},
},
}
}
...
...
This diff is collapsed.
Click to expand it.
eth/downloader/api.go
View file @
faa69bea
...
...
@@ -40,8 +40,8 @@ type PublicDownloaderAPI struct {
// installSyncSubscription channel.
func
NewPublicDownloaderAPI
(
d
*
Downloader
,
m
*
event
.
TypeMux
)
*
PublicDownloaderAPI
{
api
:=
&
PublicDownloaderAPI
{
d
:
d
,
mux
:
m
,
d
:
d
,
mux
:
m
,
installSyncSubscription
:
make
(
chan
chan
interface
{}),
uninstallSyncSubscription
:
make
(
chan
*
uninstallSyncSubscriptionRequest
),
}
...
...
This diff is collapsed.
Click to expand it.
eth/handler_test.go
View file @
faa69bea
...
...
@@ -242,10 +242,10 @@ func testGetBlockBodies(t *testing.T, protocol int) {
available
[]
bool
// Availability of explicitly requested blocks
expected
int
// Total number of existing blocks to expect
}{
{
1
,
nil
,
nil
,
1
},
// A single random block should be retrievable
{
10
,
nil
,
nil
,
10
},
// Multiple random blocks should be retrievable
{
limit
,
nil
,
nil
,
limit
},
// The maximum possible blocks should be retrievable
{
limit
+
1
,
nil
,
nil
,
limit
},
// No more than the possible block count should be returned
{
1
,
nil
,
nil
,
1
},
// A single random block should be retrievable
{
10
,
nil
,
nil
,
10
},
// Multiple random blocks should be retrievable
{
limit
,
nil
,
nil
,
limit
},
// The maximum possible blocks should be retrievable
{
limit
+
1
,
nil
,
nil
,
limit
},
// No more than the possible block count should be returned
{
0
,
[]
common
.
Hash
{
pm
.
blockchain
.
Genesis
()
.
Hash
()},
[]
bool
{
true
},
1
},
// The genesis block should be retrievable
{
0
,
[]
common
.
Hash
{
pm
.
blockchain
.
CurrentBlock
()
.
Hash
()},
[]
bool
{
true
},
1
},
// The chains head block should be retrievable
{
0
,
[]
common
.
Hash
{{}},
[]
bool
{
false
},
0
},
// A non existent block should not be returned
...
...
This diff is collapsed.
Click to expand it.
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