fix(chainwatch): compare prev miner with cur miner

- bug was comparing cur miner with cur miner
This commit is contained in:
frrist 2020-09-09 15:30:30 -07:00
parent be9d8f7ce3
commit f2b238f50a

View File

@ -694,7 +694,7 @@ func (p *Processor) getMinerSectorChanges(ctx context.Context, m minerActorInfo)
}
func (p *Processor) diffMinerPartitions(ctx context.Context, m minerActorInfo, events chan<- *MinerSectorsEvent) error {
prevMiner, err := p.getMinerStateAt(ctx, m.common.addr, m.common.tsKey)
prevMiner, err := p.getMinerStateAt(ctx, m.common.addr, m.common.parentTsKey)
if err != nil {
return err
}