fixup to match spec, move constants to common location

This commit is contained in:
whyrusleeping
2020-03-03 15:48:25 -08:00
parent 4f2baa8953
commit d6723935b9
5 changed files with 16 additions and 16 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ import (
"context"
"github.com/filecoin-project/lotus/api"
"github.com/filecoin-project/lotus/build"
"github.com/filecoin-project/lotus/chain"
"github.com/filecoin-project/lotus/chain/types"
cid "github.com/ipfs/go-cid"
@@ -76,7 +77,7 @@ func (a *SyncAPI) SyncSubmitBlock(ctx context.Context, blk *types.BlockMsg) erro
}
// TODO: anything else to do here?
return a.PubSub.Publish("/fil/blocks", b)
return a.PubSub.Publish(build.MessagesTopic, b)
}
func (a *SyncAPI) SyncIncomingBlocks(ctx context.Context) (<-chan *types.BlockHeader, error) {