File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import (
2323 "github.com/blinklabs-io/dingo/mempool"
2424 ouroboros "github.com/blinklabs-io/gouroboros"
2525 "github.com/blinklabs-io/gouroboros/ledger"
26+ "github.com/blinklabs-io/gouroboros/protocol"
2627 "github.com/blinklabs-io/gouroboros/protocol/txsubmission"
2728)
2829
@@ -67,9 +68,14 @@ func (n *Node) txsubmissionServerInit(ctx txsubmission.CallbackContext) error {
6768 txsubmissionRequestTxIdsCount ,
6869 )
6970 if err != nil {
71+ // Peer requested shutdown
7072 if errors .Is (err , txsubmission .ErrStopServerProcess ) {
7173 return
7274 }
75+ // Don't log on connection close
76+ if errors .Is (err , protocol .ErrProtocolShuttingDown ) {
77+ return
78+ }
7379 n .config .logger .Error (
7480 fmt .Sprintf (
7581 "failed to get TxIds: %s" ,
You can’t perform that action at this time.
0 commit comments