aboutsummaryrefslogtreecommitdiffstats
path: root/eth/filters
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/filters
parentac93a6ff6cd1200ab0fb67a5bd0c02cb70646632 (diff)
downloadgo-tangerine-18c77744ff4ad0bc385a4c8b50d28c2a6fde8e00.tar
go-tangerine-18c77744ff4ad0bc385a4c8b50d28c2a6fde8e00.tar.gz
go-tangerine-18c77744ff4ad0bc385a4c8b50d28c2a6fde8e00.tar.bz2
go-tangerine-18c77744ff4ad0bc385a4c8b50d28c2a6fde8e00.tar.lz
go-tangerine-18c77744ff4ad0bc385a4c8b50d28c2a6fde8e00.tar.xz
go-tangerine-18c77744ff4ad0bc385a4c8b50d28c2a6fde8e00.tar.zst
go-tangerine-18c77744ff4ad0bc385a4c8b50d28c2a6fde8e00.zip
all: fix spelling errors
Diffstat (limited to 'eth/filters')
-rw-r--r--eth/filters/filter_system.go2
-rw-r--r--eth/filters/filter_system_test.go2
2 files changed, 2 insertions, 2 deletions
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},