|
5 | 5 |
|
6 | 6 | "github.com/filecoin-project/go-address" |
7 | 7 |
|
8 | | - "github.com/filecoin-project/lotus/api" |
9 | 8 | "github.com/filecoin-project/lotus/chain/types" |
10 | 9 | ) |
11 | 10 |
|
@@ -99,61 +98,4 @@ type FullNode interface { |
99 | 98 | // |
100 | 99 | // Experimental: This API is experimental and may change without notice. |
101 | 100 | StateGetID(context.Context, address.Address, types.TipSetSelector) (*address.Address, error) //perm:read |
102 | | - |
103 | | - // StateCompute computes the state at the specified tipset and applies the provided messages. |
104 | | - // |
105 | | - // This function: |
106 | | - // - Loads the tipset identified by the TipSetSelector |
107 | | - // - Calculates the complete state by applying all chain messages within that tipset |
108 | | - // - Applies the user-provided messages on top of that state |
109 | | - // - Uses the network version of the selected tipset for message execution |
110 | | - // |
111 | | - // The function applies messages with the correct network parameters corresponding |
112 | | - // to the tipset's epoch, making it suitable for testing messages against the |
113 | | - // current network version. |
114 | | - // |
115 | | - // Messages must have the correct nonces and gas values set. |
116 | | - // |
117 | | - // The TipSetSelector parameter provides flexible options for selecting the base tipset: |
118 | | - // - TipSetSelectors.Latest: the most recent tipset with the heaviest weight |
119 | | - // - TipSetSelectors.Finalized: the most recent finalized tipset |
120 | | - // - TipSetSelectors.Height(epoch, previous, anchor): tipset at the specified height |
121 | | - // - TipSetSelectors.Key(key): tipset with the specified key |
122 | | - // |
123 | | - // See types.TipSetSelector documentation for additional details. |
124 | | - // |
125 | | - // Experimental: This API is experimental and may change without notice. |
126 | | - StateCompute(context.Context, []*types.Message, types.TipSetSelector) (*api.ComputeStateOutput, error) //perm:read |
127 | | - |
128 | | - // StateSimulate computes the state at the specified tipset and applies the provided messages |
129 | | - // using the network version determined by a TipSetLimit. |
130 | | - // |
131 | | - // This function: |
132 | | - // - Loads the tipset identified by the TipSetSelector |
133 | | - // - Calculates the complete state by applying all chain messages within that tipset |
134 | | - // - Applies any pending state upgrades up to the epoch determined by TipSetLimit |
135 | | - // - Applies the user-provided messages on top of that state using the network version |
136 | | - // corresponding to the target epoch |
137 | | - // |
138 | | - // This function is particularly useful for testing how messages would behave in |
139 | | - // future network versions or for simulating execution at specific protocol versions. |
140 | | - // |
141 | | - // The TipSetLimit parameter controls the simulation target and must specify exactly |
142 | | - // one of the following: |
143 | | - // - Height: an absolute chain epoch at which to simulate execution |
144 | | - // - Distance: a relative number of epochs ahead of the selected tipset |
145 | | - // |
146 | | - // For example, to simulate at exactly epoch 1000, use Height=1000. To simulate |
147 | | - // 120 epochs ahead of the selected tipset, use Distance=120. |
148 | | - // |
149 | | - // If the target epoch determined by TipSetLimit is lower than the tipset's epoch, |
150 | | - // an error will be returned as backward simulation is not supported. |
151 | | - // |
152 | | - // Messages must have the correct nonces and gas values set. |
153 | | - // |
154 | | - // The TipSetSelector parameter provides flexible options for selecting the base tipset. |
155 | | - // See StateCompute and TipSetSelector documentation for details on selection options. |
156 | | - // |
157 | | - // Experimental: This API is experimental and may change without notice. |
158 | | - StateSimulate(context.Context, []*types.Message, types.TipSetSelector, types.TipSetLimit) (*api.ComputeStateOutput, error) //perm:read |
159 | 101 | } |
0 commit comments