From 23e864609513bfbf49eed9038f4f52c34a472b0d Mon Sep 17 00:00:00 2001 From: Daniel N <2color@users.noreply.github.com> Date: Tue, 6 Aug 2024 13:43:31 +0200 Subject: [PATCH] chore: add the same config as vole --- daemon.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/daemon.go b/daemon.go index 46335fd..07458d0 100644 --- a/daemon.go +++ b/daemon.go @@ -89,6 +89,8 @@ func newDaemon(ctx context.Context, acceleratedDHT bool) (*daemon, error) { return &daemon{h: h, dht: d, dhtMessenger: pm, createTestHost: func() (host.Host, error) { return libp2p.New( libp2p.ConnectionGater(&privateAddrFilterConnectionGater{}), + libp2p.DefaultMuxers, + libp2p.Muxer("/mplex/6.7.0", mplex.DefaultTransport), libp2p.EnableHolePunching(), ) }}, nil @@ -191,6 +193,7 @@ func (d *daemon) runCheck(query url.Values) (*output, error) { } func checkBitswapCID(ctx context.Context, host host.Host, c cid.Cid, ma multiaddr.Multiaddr) BitswapCheckOutput { + log.Printf("Start of Bitswap check for cid %s by attempting to connect to ma: %v with the temporary peer: %s", c, ma, host.ID()) out := BitswapCheckOutput{} start := time.Now() @@ -205,6 +208,7 @@ func checkBitswapCID(ctx context.Context, host host.Host, c cid.Cid, ma multiadd } } + log.Printf("End of Bitswap check for %s by attempting to connect to ma: %v", c, ma) out.Duration = time.Since(start) return out }