mirror of
https://github.com/aljazceru/lspd.git
synced 2025-12-20 15:24:23 +01:00
return 0 shortchannelid by default
This commit is contained in:
@@ -12,7 +12,8 @@ type ShortChannelID uint64
|
|||||||
|
|
||||||
func NewShortChannelIDFromString(channelID string) (*ShortChannelID, error) {
|
func NewShortChannelIDFromString(channelID string) (*ShortChannelID, error) {
|
||||||
if channelID == "" {
|
if channelID == "" {
|
||||||
return nil, nil
|
c := ShortChannelID(0)
|
||||||
|
return &c, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
fields := strings.Split(channelID, "x")
|
fields := strings.Split(channelID, "x")
|
||||||
|
|||||||
Reference in New Issue
Block a user