We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df1a18b commit 62885c9Copy full SHA for 62885c9
cmd/gouroboros/chainsync.go
@@ -247,6 +247,11 @@ func testChainSync(f *globalFlags) {
247
fmt.Printf("ERROR: failed to get available block range: %s\n", err)
248
os.Exit(1)
249
}
250
+ // Stop the chain-sync client to prevent the connection getting closed due to chain-sync idle timeout
251
+ if err := oConn.ChainSync().Client.Stop(); err != nil {
252
+ fmt.Printf("ERROR: failed to shutdown chain-sync: %s\n", err)
253
+ os.Exit(1)
254
+ }
255
if err := oConn.BlockFetch().Client.GetBlockRange(start, end); err != nil {
256
fmt.Printf("ERROR: failed to request block range: %s\n", err)
257
0 commit comments