conform protocol ids to spec
Signed-off-by: lanzafame <adrianlanzafame92@gmail.com>
This commit is contained in:
parent
61fcbd1664
commit
4f2baa8953
@ -45,7 +45,7 @@ var (
|
||||
)
|
||||
|
||||
const (
|
||||
msgTopic = "/fil/messages"
|
||||
msgTopic = "/fil/msgs"
|
||||
|
||||
localMsgsDs = "/mpool/local"
|
||||
|
||||
|
@ -21,6 +21,8 @@ import (
|
||||
"github.com/filecoin-project/lotus/node/modules/helpers"
|
||||
)
|
||||
|
||||
const KadProtocolID = "/fil/kad/1.0.0"
|
||||
|
||||
type P2PHostIn struct {
|
||||
fx.In
|
||||
|
||||
@ -80,7 +82,7 @@ func DHTRouting(client bool) interface{} {
|
||||
dhtopts.Client(client),
|
||||
dhtopts.Datastore(dstore),
|
||||
dhtopts.Validator(validator),
|
||||
dhtopts.Protocols("/lotus/kad/1.0.0"),
|
||||
dhtopts.Protocols(KadProtocolID),
|
||||
)
|
||||
|
||||
if err != nil {
|
||||
|
@ -24,7 +24,7 @@ import (
|
||||
)
|
||||
|
||||
const BlocksTopic = "/fil/blocks"
|
||||
const MessagesTopic = "/fil/messages"
|
||||
const MessagesTopic = "/fil/msgs"
|
||||
|
||||
func RunHello(mctx helpers.MetricsCtx, lc fx.Lifecycle, h host.Host, svc *hello.Service) {
|
||||
h.SetStreamHandler(hello.ProtocolID, svc.HandleStream)
|
||||
|
Loading…
Reference in New Issue
Block a user