diff --git a/api/test/window_post.go b/api/test/window_post.go index e8b12e231..84d668c76 100644 --- a/api/test/window_post.go +++ b/api/test/window_post.go @@ -518,7 +518,7 @@ func TestTerminate(t *testing.T, b APIBuilder, blocktime time.Duration) { toTerminate := abi.SectorNumber(3) - err = miner.SectorTerminate(ctx, 3) + err = miner.SectorTerminate(ctx, toTerminate) require.NoError(t, err) msgTriggerred := false @@ -532,13 +532,24 @@ loop: switch sealing.SectorState(si.State) { case sealing.Terminating: if !msgTriggerred { - c, err := miner.SectorTerminateFlush(ctx) - if err != nil { - return + { + p, err := miner.SectorTerminatePending(ctx) + require.NoError(t, err) + require.Len(t, p, 1) + require.Equal(t, abi.SectorNumber(3), p[0].Number) } + + c, err := miner.SectorTerminateFlush(ctx) + require.NoError(t, err) if c != nil { msgTriggerred = true fmt.Println("terminate message:", c) + + { + p, err := miner.SectorTerminatePending(ctx) + require.NoError(t, err) + require.Len(t, p, 0) + } } } case sealing.TerminateWait, sealing.TerminateFinality, sealing.Removed: diff --git a/build/version.go b/build/version.go index 140456581..fd13100a5 100644 --- a/build/version.go +++ b/build/version.go @@ -84,7 +84,7 @@ func VersionForType(nodeType NodeType) (Version, error) { // semver versions of the rpc api exposed var ( FullAPIVersion = newVer(1, 0, 0) - MinerAPIVersion = newVer(1, 0, 0) + MinerAPIVersion = newVer(1, 0, 1) WorkerAPIVersion = newVer(1, 0, 0) )