From 4cc9fcbc1c58b099a8717dff7cb0eecbda5f17f8 Mon Sep 17 00:00:00 2001 From: Jesse de Wit Date: Mon, 21 Nov 2022 14:24:53 +0100 Subject: [PATCH] return 0 shortchannelid by default --- short_channel_id.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/short_channel_id.go b/short_channel_id.go index ef87f7b..8ce0b94 100644 --- a/short_channel_id.go +++ b/short_channel_id.go @@ -12,7 +12,8 @@ type ShortChannelID uint64 func NewShortChannelIDFromString(channelID string) (*ShortChannelID, error) { if channelID == "" { - return nil, nil + c := ShortChannelID(0) + return &c, nil } fields := strings.Split(channelID, "x")