a bit more hacking to make the test framework bend to my will

This commit is contained in:
whyrusleeping
2019-10-05 17:18:39 -06:00
parent fca5a4765d
commit 76ceb1f25a
5 changed files with 48 additions and 112 deletions
+1 -3
View File
@@ -27,9 +27,7 @@ func (a *ChainAPI) ChainNotify(ctx context.Context) (<-chan []*store.HeadChange,
}
func (a *ChainAPI) ChainSubmitBlock(ctx context.Context, blk *types.BlockMsg) error {
if err := a.Chain.AddBlock(blk.Header); err != nil {
return xerrors.Errorf("AddBlock failed: %w", err)
}
// TODO: should we have some sort of fast path to adding a local block?
b, err := blk.Serialize()
if err != nil {