storageminer: fix call to ProvingPeriodEnd in beginPosting
This commit is contained in:
parent
08a1e211f5
commit
a3081f1e12
@ -37,7 +37,9 @@ func (m *Miner) beginPosting(ctx context.Context) {
|
|||||||
return
|
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()
|
m.schedLk.Unlock()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user