Skip to content

Commit

Permalink
expose libp2p host for zetaclient connectivity monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
brewmaster012 committed Oct 31, 2024
1 parent 37db84d commit 1876529
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tss/tss.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
tcrypto "github.com/cometbft/cometbft/crypto"
coskey "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1"
sdk "github.com/cosmos/cosmos-sdk/types/bech32/legacybech32"
"github.com/libp2p/go-libp2p/core/host"
"github.com/libp2p/go-libp2p/core/peer"
maddr "github.com/multiformats/go-multiaddr"
"github.com/rs/zerolog"
Expand Down Expand Up @@ -267,3 +268,8 @@ func (t *TssServer) GetKnownPeers() []peer.AddrInfo {
}
return infos
}

// GetP2PHost return the libp2p host of the Communicator inside TssServer
func (t *TssServer) GetP2PHost() host.Host {
return t.p2pCommunication.GetHost()
}

0 comments on commit 1876529

Please sign in to comment.