Skip to content

Commit 83733ac

Browse files
committed
gen that doc
1 parent e4d0a5c commit 83733ac

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

node/impl/full/state_v2.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,16 @@ func (s *StateModuleV2) StateGetID(ctx context.Context, addr address.Address, se
5353
return &id, nil
5454
}
5555

56-
func (a *StateModuleV2) StateCompute(ctx context.Context, msgs []*types.Message, selector types.TipSetSelector) (*api.ComputeStateOutput, error) {
57-
ts, err := a.Chain.ChainGetTipSet(ctx, selector)
56+
func (s *StateModuleV2) StateCompute(ctx context.Context, msgs []*types.Message, selector types.TipSetSelector) (*api.ComputeStateOutput, error) {
57+
ts, err := s.Chain.ChainGetTipSet(ctx, selector)
5858
if err != nil {
5959
return nil, xerrors.Errorf("selecting tipset: %w", err)
6060
}
6161

62-
return a.State.StateCompute(ctx, ts.Height(), msgs, ts.Key())
62+
return s.State.StateCompute(ctx, ts.Height(), msgs, ts.Key())
6363
}
6464

65-
func (a *StateModuleV2) StateSimulate(ctx context.Context, msgs []*types.Message, selector types.TipSetSelector, limit types.TipSetLimit) (*api.ComputeStateOutput, error) {
65+
func (s *StateModuleV2) StateSimulate(ctx context.Context, msgs []*types.Message, selector types.TipSetSelector, limit types.TipSetLimit) (*api.ComputeStateOutput, error) {
6666
if err := limit.Validate(); err != nil {
6767
return nil, xerrors.Errorf("validating tipset limit: %w", err)
6868
}
@@ -72,13 +72,13 @@ func (a *StateModuleV2) StateSimulate(ctx context.Context, msgs []*types.Message
7272
}
7373
// TODO: Add upper-bound limit to how far of simulation is acceptable?
7474

75-
ts, err := a.Chain.ChainGetTipSet(ctx, selector)
75+
ts, err := s.Chain.ChainGetTipSet(ctx, selector)
7676
if err != nil {
7777
return nil, xerrors.Errorf("selecting tipset: %w", err)
7878
}
7979
targetHeight := limit.HeightRelativeTo(ts.Height())
8080
if ts.Height() > targetHeight {
8181
return nil, xerrors.Errorf("tipset height %d is less than requested height at: %d", ts.Height(), limit)
8282
}
83-
return a.State.StateCompute(ctx, targetHeight, msgs, ts.Key())
83+
return s.State.StateCompute(ctx, targetHeight, msgs, ts.Key())
8484
}

0 commit comments

Comments
 (0)