From f2b238f50ab3e5ff320ec13b576594caab8809fa Mon Sep 17 00:00:00 2001 From: frrist Date: Wed, 9 Sep 2020 15:30:30 -0700 Subject: [PATCH] fix(chainwatch): compare prev miner with cur miner - bug was comparing cur miner with cur miner --- cmd/lotus-chainwatch/processor/miner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/lotus-chainwatch/processor/miner.go b/cmd/lotus-chainwatch/processor/miner.go index 1442a84bc9a..e063db19f3c 100644 --- a/cmd/lotus-chainwatch/processor/miner.go +++ b/cmd/lotus-chainwatch/processor/miner.go @@ -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 }