Skip to content

Commit

Permalink
Slash filter shouldn't be trigerred if the same block is submitted mu…
Browse files Browse the repository at this point in the history
…ltiple times
  • Loading branch information
arajasek committed Oct 1, 2020
1 parent 1ebad94 commit 60d442e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chain/gen/slashfilter/slashfilter.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ func checkFault(t ds.Datastore, key ds.Key, bh *types.BlockHeader, faultType str
return err
}

if other == bh.Cid() {
return nil
}

return xerrors.Errorf("produced block would trigger '%s' consensus fault; miner: %s; bh: %s, other: %s", faultType, bh.Miner, bh.Cid(), other)
}

Expand Down

0 comments on commit 60d442e

Please sign in to comment.