aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2018-09-19 16:47:09 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-09-19 16:47:09 +0800
commitfaa69bea1cade1d0f8b00814fc0616c5a57f0709 (patch)
treeb42f467ce5f600a2151f9c81b5d71dd9b479f151
parent67c332e9b5c1afff65108abcc2b6883ace72abb9 (diff)
downloaddexon-faa69bea1cade1d0f8b00814fc0616c5a57f0709.tar
dexon-faa69bea1cade1d0f8b00814fc0616c5a57f0709.tar.gz
dexon-faa69bea1cade1d0f8b00814fc0616c5a57f0709.tar.bz2
dexon-faa69bea1cade1d0f8b00814fc0616c5a57f0709.tar.lz
dexon-faa69bea1cade1d0f8b00814fc0616c5a57f0709.tar.xz
dexon-faa69bea1cade1d0f8b00814fc0616c5a57f0709.tar.zst
dexon-faa69bea1cade1d0f8b00814fc0616c5a57f0709.zip
core, eth: fix goimports for Go 1.11
-rw-r--r--core/genesis.go2
-rw-r--r--eth/downloader/api.go4
-rw-r--r--eth/handler_test.go8
3 files changed, 7 insertions, 7 deletions
diff --git a/core/genesis.go b/core/genesis.go
index 9190e2ba2..6e71afd61 100644
--- a/core/genesis.go
+++ b/core/genesis.go
@@ -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))},
},
}
}
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