mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
firewall+firewalldb: fix typos
This commit is contained in:
parent
be2a1292e3
commit
ab47cd64f7
3 changed files with 3 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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",` +
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue