Slash filter shouldn't be trigerred if the same block is submitted multiple times

This commit is contained in:
Aayush Rajasekaran 2020-09-30 22:05:16 -04:00
parent 1ebad94da9
commit 60d442e36a

View File

@ -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)
}