Skip to content

Commit 12f139f

Browse files
expose libp2p host for zetaclient connectivity monitoring (#36)
1 parent 37db84d commit 12f139f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tss/tss.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
tcrypto "github.com/cometbft/cometbft/crypto"
1212
coskey "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1"
1313
sdk "github.com/cosmos/cosmos-sdk/types/bech32/legacybech32"
14+
"github.com/libp2p/go-libp2p/core/host"
1415
"github.com/libp2p/go-libp2p/core/peer"
1516
maddr "github.com/multiformats/go-multiaddr"
1617
"github.com/rs/zerolog"
@@ -267,3 +268,8 @@ func (t *TssServer) GetKnownPeers() []peer.AddrInfo {
267268
}
268269
return infos
269270
}
271+
272+
// GetP2PHost return the libp2p host of the Communicator inside TssServer
273+
func (t *TssServer) GetP2PHost() host.Host {
274+
return t.p2pCommunication.GetHost()
275+
}

0 commit comments

Comments
 (0)