File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed
Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,8 @@ Cardano node configuration:
8282- ` CARDANO_NETWORK ` - Use a named Cardano network (default: mainnet)
8383- ` CARDANO_NODE_NETWORK_MAGIC ` - Cardano network magic (default: automatically
8484 determined from named network)
85+ - ` CARDANO_NODE_SKIP_CHECK ` - Skip the connection test to Cardano Node on start
86+ (default: false)
8587- ` CARDANO_NODE_SOCKET_PATH ` - Socket path to Cardano node NtC via UNIX socket
8688 (default: /node-ipc/node.socket)
8789- ` CARDANO_NODE_SOCKET_TCP_HOST ` - Address to Cardano node NtC via TCP
Original file line number Diff line number Diff line change @@ -64,10 +64,14 @@ func main() {
6464 }()
6565
6666 // Test node connection
67- if oConn , err := node . GetConnection ( nil ); err != nil {
68- logger .Fatalf ( "failed to connect to node: %s" , err )
67+ if c . Node . SkipCheck {
68+ logger .Debugf ( "skipping node check" )
6969 } else {
70- oConn .Close ()
70+ if oConn , err := node .GetConnection (nil ); err != nil {
71+ logger .Fatalf ("failed to connect to node: %s" , err )
72+ } else {
73+ oConn .Close ()
74+ }
7175 }
7276
7377 logger .Infof (
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ type NodeConfig struct {
5959 Address string `yaml:"address" envconfig:"CARDANO_NODE_SOCKET_TCP_HOST"`
6060 Port uint `yaml:"port" envconfig:"CARDANO_NODE_SOCKET_TCP_PORT"`
6161 QueryTimeout uint `yaml:"queryTimeout" envconfig:"CARDANO_NODE_SOCKET_QUERY_TIMEOUT"`
62+ SkipCheck bool `yaml:"skipCheck" envconfig:"CARDANO_NODE_SKIP_CHECK"`
6263 SocketPath string `yaml:"socketPath" envconfig:"CARDANO_NODE_SOCKET_PATH"`
6364 Timeout uint `yaml:"timeout" envconfig:"CARDANO_NODE_SOCKET_TIMEOUT"`
6465}
You can’t perform that action at this time.
0 commit comments