Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion firewall/privacy_mapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ func ObfuscateConfig(db firewalldb.PrivacyMapReader, configB []byte) ([]byte,
_, err = strconv.ParseInt(value, 10, 64)
length := len(value)

// Channel ids can have different lenghts depending on
// Channel ids can have different lengths depending on
// the blockheight, 20 is equivalent to 10E9 blocks.
if err == nil && minChanIDLen <= length &&
length <= maxChanIDLen {
Expand Down
2 changes: 1 addition & 1 deletion firewall/privacy_mapper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ func TestObfuscateConfig(t *testing.T) {
name: "empty",
},
{
// We substitue pubkeys of different forms.
// We substitute pubkeys of different forms.
name: "several pubkeys",
config: []byte(`{"version":1,"list":` +
`["d23da57575cdcb878ac191e1e0c8a5c4f061b11cfdc7a8ec5c9d495270de66fdbf",` +
Expand Down
2 changes: 1 addition & 1 deletion firewalldb/privacy_mapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ type PrivacyMapReader interface {

// PrivacyMapPairs is an in memory implementation of the PrivacyMapReader.
type PrivacyMapPairs struct {
// pairs is a map from real to psuedo strings.
// pairs is a map from real to pseudo strings.
pairs map[string]string

mu sync.Mutex
Expand Down