aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2018-09-19 20:08:42 +0800
committerGitHub <noreply@github.com>2018-09-19 20:08:42 +0800
commit736b45a87606e6cdfd5aecf38d259517b10e7f7e (patch)
tree81db01d624e5abd6a4e7ff41a9abb92d203a31d3 /eth
parentbd9d79adba2c78e4c0fc136db741d45878765790 (diff)
parentfaa69bea1cade1d0f8b00814fc0616c5a57f0709 (diff)
downloadgo-tangerine-736b45a87606e6cdfd5aecf38d259517b10e7f7e.tar.gz
go-tangerine-736b45a87606e6cdfd5aecf38d259517b10e7f7e.tar.zst
go-tangerine-736b45a87606e6cdfd5aecf38d259517b10e7f7e.zip
Merge pull request #17701 from karalabe/go-1.11
travis, Dockerfile, appveyor, build: bump to Go 1.11
Diffstat (limited to 'eth')
-rw-r--r--eth/downloader/api.go4
-rw-r--r--eth/handler_test.go8
2 files changed, 6 insertions, 6 deletions
diff --git a/eth/downloader/api.go b/eth/downloader/api.go
index 91c6322d4..57ff3d71a 100644
--- a/eth/downloader/api.go
+++ b/eth/downloader/api.go
@@ -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),
}
diff --git a/eth/handler_test.go b/eth/handler_test.go
index fee4114eb..dfaee2a15 100644
--- a/eth/handler_test.go
+++ b/eth/handler_test.go
@@ -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