diff --git a/chain/actors/actor_storagepower_test.go b/chain/actors/actor_storagepower_test.go index c29da56cb..b5330be5a 100644 --- a/chain/actors/actor_storagepower_test.go +++ b/chain/actors/actor_storagepower_test.go @@ -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) } } diff --git a/chain/sync.go b/chain/sync.go index a096b0a5c..89823c7f0 100644 --- a/chain/sync.go +++ b/chain/sync.go @@ -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