storageminer: fix call to ProvingPeriodEnd in beginPosting

This commit is contained in:
Łukasz Magiera 2019-09-28 01:00:00 +02:00
parent 08a1e211f5
commit a3081f1e12

View File

@ -37,7 +37,9 @@ func (m *Miner) beginPosting(ctx context.Context) {
return
}
m.schedPost, _ = actors.ProvingPeriodEnd(ppe, ts.Height())
// height needs to be +1, because otherwise we'd be trying to schedule PoSt
// at current block height
m.schedPost, _ = actors.ProvingPeriodEnd(ppe, ts.Height()+1)
m.schedLk.Unlock()