extend the republish interval to something more reasonable

pubsub timecache duration + 5 blocks + propagation delay
This commit is contained in:
vyzo 2020-08-10 19:53:56 +03:00
parent 7396212c89
commit cf34fe5cc3

View File

@ -18,6 +18,7 @@ import (
"github.com/ipfs/go-datastore/namespace"
"github.com/ipfs/go-datastore/query"
logging "github.com/ipfs/go-log/v2"
pubsub "github.com/libp2p/go-libp2p-pubsub"
lps "github.com/whyrusleeping/pubsub"
"golang.org/x/xerrors"
@ -39,7 +40,7 @@ const futureDebug = false
const RbfDenom = 256
var RepublishInterval = time.Duration(build.BlockDelaySecs+build.PropagationDelaySecs) * time.Second
var RepublishInterval = pubsub.TimeCacheDuration + time.Duration(5*build.BlockDelaySecs+build.PropagationDelaySecs)*time.Second
var (
ErrMessageTooBig = errors.New("message too big")