fixup to match spec, move constants to common location
This commit is contained in:
@@ -21,8 +21,6 @@ import (
|
||||
"github.com/filecoin-project/lotus/node/modules/helpers"
|
||||
)
|
||||
|
||||
const KadProtocolID = "/fil/kad/1.0.0"
|
||||
|
||||
type P2PHostIn struct {
|
||||
fx.In
|
||||
|
||||
@@ -82,7 +80,7 @@ func DHTRouting(client bool) interface{} {
|
||||
dhtopts.Client(client),
|
||||
dhtopts.Datastore(dstore),
|
||||
dhtopts.Validator(validator),
|
||||
dhtopts.Protocols(KadProtocolID),
|
||||
dhtopts.Protocols(build.DhtProtocolName),
|
||||
)
|
||||
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user