Merge pull request #3715 from filecoin-project/fix/chainwatch/partition-diff

fix(chainwatch): compare prev miner with cur miner
This commit is contained in:
Łukasz Magiera 2020-09-10 01:19:58 +02:00 committed by GitHub
commit 73bb9d5afb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}