Upgrade go-nitro and add support for remote Nitro node #258

Merged
ashwin merged 10 commits from deep-stack/ipld-eth-server:pm-external-nitro-node into payments 2023-10-18 08:15:36 +00:00
Showing only changes of commit 782548e4af - Show all commits

View File

@ -116,15 +116,15 @@ func serve() {
tlsCertFilepath := "" tlsCertFilepath := ""
tlsKeyFilepath := "" tlsKeyFilepath := ""
var cert tls.Certificate var cert *tls.Certificate
if tlsCertFilepath != "" && tlsKeyFilepath != "" { if tlsCertFilepath != "" && tlsKeyFilepath != "" {
cert, err = tls.LoadX509KeyPair(tlsCertFilepath, tlsKeyFilepath) *cert, err = tls.LoadX509KeyPair(tlsCertFilepath, tlsKeyFilepath)
if err != nil { if err != nil {
logWithCommand.Fatal(err) logWithCommand.Fatal(err)
} }
} }
nitroRpcServer, err := initNitroRpcServer(nitroNode, pm, &cert, rpcPort) nitroRpcServer, err := initNitroRpcServer(nitroNode, pm, cert, rpcPort)
if err != nil { if err != nil {
logWithCommand.Fatal(err) logWithCommand.Fatal(err)
} }