We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37db84d commit 12f139fCopy full SHA for 12f139f
tss/tss.go
@@ -11,6 +11,7 @@ import (
11
tcrypto "github.com/cometbft/cometbft/crypto"
12
coskey "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1"
13
sdk "github.com/cosmos/cosmos-sdk/types/bech32/legacybech32"
14
+ "github.com/libp2p/go-libp2p/core/host"
15
"github.com/libp2p/go-libp2p/core/peer"
16
maddr "github.com/multiformats/go-multiaddr"
17
"github.com/rs/zerolog"
@@ -267,3 +268,8 @@ func (t *TssServer) GetKnownPeers() []peer.AddrInfo {
267
268
}
269
return infos
270
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