Unhack TestStorageMarketCreateAndSlashMiner
This commit is contained in:
parent
e9631601e3
commit
b9bd3e2030
@ -62,8 +62,8 @@ func TestStorageMarketCreateAndSlashMiner(t *testing.T) {
|
|||||||
t.Fatalf("error decoding: %+v", err)
|
t.Fatalf("error decoding: %+v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if output { // TODO: some state hacking to make this true again
|
if !output {
|
||||||
t.Fatalf("%s is miner but IsValidMiner call returned true", minerAddr)
|
t.Fatalf("%s is miner but IsValidMiner call returned false", minerAddr)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -519,7 +519,6 @@ func (syncer *Syncer) ValidateBlock(ctx context.Context, b *types.FullBlock) err
|
|||||||
|
|
||||||
minerCheck := async.Err(func() error {
|
minerCheck := async.Err(func() error {
|
||||||
if err := syncer.minerIsValid(ctx, h.Miner, baseTs); err != nil {
|
if err := syncer.minerIsValid(ctx, h.Miner, baseTs); err != nil {
|
||||||
log.Errorf("minerIsValid: %+v", err)
|
|
||||||
return xerrors.Errorf("minerIsValid failed: %w", err)
|
return xerrors.Errorf("minerIsValid failed: %w", err)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user