Unhack TestStorageMarketCreateAndSlashMiner

This commit is contained in:
Łukasz Magiera 2019-11-14 18:19:05 +01:00
parent e9631601e3
commit b9bd3e2030
2 changed files with 2 additions and 3 deletions

View File

@ -62,8 +62,8 @@ func TestStorageMarketCreateAndSlashMiner(t *testing.T) {
t.Fatalf("error decoding: %+v", err)
}
if output { // TODO: some state hacking to make this true again
t.Fatalf("%s is miner but IsValidMiner call returned true", minerAddr)
if !output {
t.Fatalf("%s is miner but IsValidMiner call returned false", minerAddr)
}
}

View File

@ -519,7 +519,6 @@ func (syncer *Syncer) ValidateBlock(ctx context.Context, b *types.FullBlock) err
minerCheck := async.Err(func() error {
if err := syncer.minerIsValid(ctx, h.Miner, baseTs); err != nil {
log.Errorf("minerIsValid: %+v", err)
return xerrors.Errorf("minerIsValid failed: %w", err)
}
return nil