Skip to content

Commit

Permalink
Fix StateComputeDataCommitment
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k committed Jun 1, 2021
1 parent c8cef1c commit b6b5632
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions storage/adapter_storage_miner.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,15 +147,7 @@ func (s SealingAPIAdapter) StateComputeDataCommitment(ctx context.Context, maddr
return cid.Undef, xerrors.Errorf("failed to unmarshal TipSetToken to TipSetKey: %w", err)
}

ts, err := s.delegate.ChainGetTipSet(ctx, tsk)
if err != nil {
return cid.Cid{}, err
}

// using parent ts because the migration won't be run on the first nv13
// tipset we apply StateCall to (because we don't run migrations in StateCall
// and just apply to parent state)
nv, err := s.delegate.StateNetworkVersion(ctx, ts.Parents())
nv, err := s.delegate.StateNetworkVersion(ctx, tsk)
if err != nil {
return cid.Cid{}, err
}
Expand Down

0 comments on commit b6b5632

Please sign in to comment.