From 80615e834e78cd276ae1a9df64cbf9dac0fbfc8d Mon Sep 17 00:00:00 2001 From: Oliver Bundalo Date: Fri, 1 Nov 2024 14:40:27 +0100 Subject: [PATCH] Fix for txpool ps --- network/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/network/server.go b/network/server.go index 9a1c6196d4..d93253161c 100644 --- a/network/server.go +++ b/network/server.go @@ -170,7 +170,7 @@ func NewServer(logger hclog.Logger, config *Config) (*Server, error) { srv.ps = ps - ps, err = pubsub.NewGossipSub( + psTxPool, err := pubsub.NewGossipSub( context.Background(), host, pubsub.WithPeerOutboundQueueSize(peerOutboundBufferSize*256), pubsub.WithValidateQueueSize(validateBufferSize*256), @@ -180,7 +180,7 @@ func NewServer(logger hclog.Logger, config *Config) (*Server, error) { return nil, err } - srv.psTxPool = ps + srv.psTxPool = psTxPool return srv, nil }