aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-01-07 01:44:35 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-01-07 01:44:35 +0800
commit18c77744ff4ad0bc385a4c8b50d28c2a6fde8e00 (patch)
treef346aa2c1de4c873ba7d7bf847225b2c319c5694 /eth
parentac93a6ff6cd1200ab0fb67a5bd0c02cb70646632 (diff)
downloadgo-tangerine-18c77744ff4ad0bc385a4c8b50d28c2a6fde8e00.tar.gz
go-tangerine-18c77744ff4ad0bc385a4c8b50d28c2a6fde8e00.tar.zst
go-tangerine-18c77744ff4ad0bc385a4c8b50d28c2a6fde8e00.zip
all: fix spelling errors
Diffstat (limited to 'eth')
-rw-r--r--eth/api.go2
-rw-r--r--eth/downloader/downloader.go2
-rw-r--r--eth/filters/filter_system.go2
-rw-r--r--eth/filters/filter_system_test.go2
-rw-r--r--eth/handler_test.go2
-rw-r--r--eth/protocol_test.go2
6 files changed, 6 insertions, 6 deletions
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(&params.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()
}