fix blocks topic

This commit is contained in:
whyrusleeping
2020-03-03 21:03:35 -08:00
parent dcf5fb36f3
commit 37d5baf0b2
3 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ func (a *SyncAPI) SyncSubmitBlock(ctx context.Context, blk *types.BlockMsg) erro
}
// TODO: anything else to do here?
return a.PubSub.Publish(build.MessagesTopic, b)
return a.PubSub.Publish(build.BlocksTopic, b)
}
func (a *SyncAPI) SyncIncomingBlocks(ctx context.Context) (<-chan *types.BlockHeader, error) {
+1 -1
View File
@@ -71,7 +71,7 @@ func HandleIncomingBlocks(mctx helpers.MetricsCtx, lc fx.Lifecycle, ps *pubsub.P
func HandleIncomingMessages(mctx helpers.MetricsCtx, lc fx.Lifecycle, ps *pubsub.PubSub, mpool *messagepool.MessagePool) {
ctx := helpers.LifecycleCtx(mctx, lc)
msgsub, err := ps.Subscribe(build.MessagesTopic)
msgsub, err := ps.Subscribe(build.BlocksTopic)
if err != nil {
panic(err)
}