Skip to content

Commit

Permalink
cln: rpcport is now an int in CLN 23.08
Browse files Browse the repository at this point in the history
  • Loading branch information
grubles committed Aug 24, 2023
1 parent 19eeea4 commit 5814e46
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions clightning/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"net/url"
"os"
"path/filepath"
"strconv"
"strings"

"github.com/elementsproject/glightning/glightning"
Expand Down Expand Up @@ -271,11 +270,7 @@ func BitcoinFallbackFromClnConfig(client *ClightningClient) Processor {
}
if v, ok := plugin.Options["bitcoin-rpcport"]; ok {
if v != nil {
port, err := strconv.Atoi(v.(string))
if err != nil {
return nil, err
}
c.Bitcoin.RpcPort = uint(port)
c.Bitcoin.RpcPort = uint(v.(float64))
}
}
}
Expand Down

0 comments on commit 5814e46

Please sign in to comment.