From 18c77744ff4ad0bc385a4c8b50d28c2a6fde8e00 Mon Sep 17 00:00:00 2001 From: Péter Szilágyi Date: Fri, 6 Jan 2017 19:44:35 +0200 Subject: all: fix spelling errors --- eth/api.go | 2 +- eth/downloader/downloader.go | 2 +- eth/filters/filter_system.go | 2 +- eth/filters/filter_system_test.go | 2 +- eth/handler_test.go | 2 +- eth/protocol_test.go | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) (limited to 'eth') diff --git a/eth/api.go b/eth/api.go index f077e348c..d798c196e 100644 --- a/eth/api.go +++ b/eth/api.go @@ -435,7 +435,7 @@ func (api *PrivateDebugAPI) traceBlock(block *types.Block, logConfig *vm.LogConf return true, structLogger.StructLogs(), nil } -// callmsg is the message type used for call transations. +// callmsg is the message type used for call transitions. type callmsg struct { addr common.Address to *common.Address diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go index b1f4b8169..9be4bd87d 100644 --- a/eth/downloader/downloader.go +++ b/eth/downloader/downloader.go @@ -1005,7 +1005,7 @@ func (d *Downloader) fetchNodeData() error { // - fetchHook: tester callback to notify of new tasks being initiated (allows testing the scheduling logic) // - fetch: network callback to actually send a particular download request to a physical remote peer // - cancel: task callback to abort an in-flight download request and allow rescheduling it (in case of lost peer) -// - capacity: network callback to retreive the estimated type-specific bandwidth capacity of a peer (traffic shaping) +// - capacity: network callback to retrieve the estimated type-specific bandwidth capacity of a peer (traffic shaping) // - idle: network callback to retrieve the currently (type specific) idle peers that can be assigned tasks // - setIdle: network callback to set a peer back to idle and update its estimated capacity (traffic shaping) // - kind: textual label of the type being downloaded to display in log mesages diff --git a/eth/filters/filter_system.go b/eth/filters/filter_system.go index 7493dd231..e0ee2ff51 100644 --- a/eth/filters/filter_system.go +++ b/eth/filters/filter_system.go @@ -37,7 +37,7 @@ import ( type Type byte const ( - // UnknownSubscription indicates an unkown subscription type + // UnknownSubscription indicates an unknown subscription type UnknownSubscription Type = iota // LogsSubscription queries for new or removed (chain reorg) logs LogsSubscription diff --git a/eth/filters/filter_system_test.go b/eth/filters/filter_system_test.go index cd0745ec1..1cfced7e4 100644 --- a/eth/filters/filter_system_test.go +++ b/eth/filters/filter_system_test.go @@ -411,7 +411,7 @@ func TestPendingLogsSubscription(t *testing.T) { {FilterCriteria{Addresses: []common.Address{thirdAddress}, Topics: [][]common.Hash{{firstTopic, secondTopic}}}, append(convertLogs(allLogs[3:5]), allLogs[5].Logs[0]), nil, nil}, // match logs based on multiple addresses and "or" topics {FilterCriteria{Addresses: []common.Address{secondAddr, thirdAddress}, Topics: [][]common.Hash{{firstTopic, secondTopic}}}, append(convertLogs(allLogs[2:5]), allLogs[5].Logs[0]), nil, nil}, - // block numbers are ignored for filters created with New***Filter, these return all logs that match the given criterias when the state changes + // block numbers are ignored for filters created with New***Filter, these return all logs that match the given criteria when the state changes {FilterCriteria{Addresses: []common.Address{firstAddr}, FromBlock: big.NewInt(2), ToBlock: big.NewInt(3)}, append(convertLogs(allLogs[:2]), allLogs[5].Logs[3]), nil, nil}, // multiple pending logs, should match only 2 topics from the logs in block 5 {FilterCriteria{Addresses: []common.Address{thirdAddress}, Topics: [][]common.Hash{{firstTopic, forthTopic}}}, []*types.Log{allLogs[5].Logs[0], allLogs[5].Logs[2]}, nil, nil}, diff --git a/eth/handler_test.go b/eth/handler_test.go index 4695b3f60..22a4ddf50 100644 --- a/eth/handler_test.go +++ b/eth/handler_test.go @@ -491,7 +491,7 @@ func testDAOChallenge(t *testing.T, localForked, remoteForked bool, timeout bool if err := p2p.ExpectMsg(peer.app, GetBlockHeadersMsg, challenge); err != nil { t.Fatalf("challenge mismatch: %v", err) } - // Create a block to reply to the challenge if no timeout is simualted + // Create a block to reply to the challenge if no timeout is simulated if !timeout { blocks, _ := core.GenerateChain(¶ms.ChainConfig{}, genesis, db, 1, func(i int, block *core.BlockGen) { if remoteForked { diff --git a/eth/protocol_test.go b/eth/protocol_test.go index 43149d0c0..3b8056433 100644 --- a/eth/protocol_test.go +++ b/eth/protocol_test.go @@ -82,7 +82,7 @@ func testStatusMsgErrors(t *testing.T, protocol int) { t.Errorf("test %d: wrong error: got %q, want %q", i, err, test.wantError) } case <-time.After(2 * time.Second): - t.Errorf("protocol did not shut down withing 2 seconds") + t.Errorf("protocol did not shut down within 2 seconds") } p.close() } -- cgit