mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-27 22:21:18 +02:00
lnwire: update node alias type to respect utf8, use full 32 bytes
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
package lnwire
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestValidateAlias(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
aliasStr := "012345678901234567890"
|
||||
alias := NewAlias(aliasStr)
|
||||
if err := alias.Validate(); err != nil {
|
||||
t.Fatalf("alias was invalid: %v", err)
|
||||
}
|
||||
if aliasStr != alias.String() {
|
||||
t.Fatalf("aliases don't match")
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user