Fix sync_test

This commit is contained in:
Łukasz Magiera 2019-10-15 13:50:30 +02:00
parent 4acdb10bf6
commit 10dbf6e9d4

View File

@ -220,7 +220,7 @@ func (tu *syncTestUtil) addSourceNode(gen int) {
for _, lastB := range lastTs {
cs := out.(*impl.FullNodeAPI).ChainAPI.Chain
require.NoError(tu.t, cs.AddToTipSetTracker(lastB.Header))
err = cs.AddBlock(lastB.Header)
err = cs.AddBlock(tu.ctx, lastB.Header)
require.NoError(tu.t, err)
}