mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-23 22:46:40 +01:00
lndc: use hex encoding method .String() method
This commit is contained in:
parent
32b8c5b848
commit
7801c940df
1 changed files with 2 additions and 1 deletions
|
@ -14,6 +14,7 @@ import (
|
|||
)
|
||||
|
||||
// lnAddr...
|
||||
// TODO(roasbeef): revamp
|
||||
type LNAdr struct {
|
||||
LnID [16]byte // redundant because adr contains it
|
||||
PubKey *btcec.PublicKey
|
||||
|
@ -35,7 +36,7 @@ func (l *LNAdr) String() string {
|
|||
encodedId = l.PubKey.SerializeCompressed()
|
||||
}
|
||||
|
||||
return fmt.Sprintf("%v@%v", encodedId, l.NetAddr)
|
||||
return fmt.Sprintf("%v@%v", hex.EncodeToString(encodedId), l.NetAddr)
|
||||
}
|
||||
|
||||
// newLnAddr...
|
||||
|
|
Loading…
Add table
Reference in a new issue