Skip to content

Commit faa69be

Browse files
committed
core, eth: fix goimports for Go 1.11
1 parent 67c332e commit faa69be

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎core/genesis.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ func DeveloperGenesisBlock(period uint64, faucet common.Address) *Genesis {
355355
common.BytesToAddress([]byte{6}): {Balance: big.NewInt(1)}, // ECAdd
356356
common.BytesToAddress([]byte{7}): {Balance: big.NewInt(1)}, // ECScalarMul
357357
common.BytesToAddress([]byte{8}): {Balance: big.NewInt(1)}, // ECPairing
358-
faucet: {Balance: new(big.Int).Sub(new(big.Int).Lsh(big.NewInt(1), 256), big.NewInt(9))},
358+
faucet: {Balance: new(big.Int).Sub(new(big.Int).Lsh(big.NewInt(1), 256), big.NewInt(9))},
359359
},
360360
}
361361
}

‎eth/downloader/api.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ type PublicDownloaderAPI struct {
4040
// installSyncSubscription channel.
4141
func NewPublicDownloaderAPI(d *Downloader, m *event.TypeMux) *PublicDownloaderAPI {
4242
api := &PublicDownloaderAPI{
43-
d: d,
44-
mux: m,
43+
d: d,
44+
mux: m,
4545
installSyncSubscription: make(chan chan interface{}),
4646
uninstallSyncSubscription: make(chan *uninstallSyncSubscriptionRequest),
4747
}

‎eth/handler_test.go‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,10 @@ func testGetBlockBodies(t *testing.T, protocol int) {
242242
available []bool // Availability of explicitly requested blocks
243243
expected int // Total number of existing blocks to expect
244244
}{
245-
{1, nil, nil, 1}, // A single random block should be retrievable
246-
{10, nil, nil, 10}, // Multiple random blocks should be retrievable
247-
{limit, nil, nil, limit}, // The maximum possible blocks should be retrievable
248-
{limit + 1, nil, nil, limit}, // No more than the possible block count should be returned
245+
{1, nil, nil, 1}, // A single random block should be retrievable
246+
{10, nil, nil, 10}, // Multiple random blocks should be retrievable
247+
{limit, nil, nil, limit}, // The maximum possible blocks should be retrievable
248+
{limit + 1, nil, nil, limit}, // No more than the possible block count should be returned
249249
{0, []common.Hash{pm.blockchain.Genesis().Hash()}, []bool{true}, 1}, // The genesis block should be retrievable
250250
{0, []common.Hash{pm.blockchain.CurrentBlock().Hash()}, []bool{true}, 1}, // The chains head block should be retrievable
251251
{0, []common.Hash{{}}, []bool{false}, 0}, // A non existent block should not be returned

0 commit comments

Comments
 (0)