conform protocol ids to spec

Signed-off-by: lanzafame <adrianlanzafame92@gmail.com>
This commit is contained in:
lanzafame 2020-02-19 10:15:45 -08:00
parent 61fcbd1664
commit 4f2baa8953
3 changed files with 5 additions and 3 deletions

View File

@ -45,7 +45,7 @@ var (
)
const (
msgTopic = "/fil/messages"
msgTopic = "/fil/msgs"
localMsgsDs = "/mpool/local"

View File

@ -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 {

View File

@ -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)