@@ -153,7 +153,7 @@ func NewGenesisBlock(root ids.ID) *StatelessBlock {
153
153
}
154
154
}
155
155
156
- // Stateless is defined separately from "Block "
156
+ // StatefulBlock is defined separately from "StatelessBlock "
157
157
// in case external packages need to use the stateless block
158
158
// without mocking VM or parent block
159
159
type StatefulBlock struct {
@@ -200,7 +200,7 @@ func ParseBlock(
200
200
return nil , err
201
201
}
202
202
// Not guaranteed that a parsed block is verified
203
- return ParseStatelessBlock (ctx , blk , source , accepted , vm )
203
+ return ParseStatefulBlock (ctx , blk , source , accepted , vm )
204
204
}
205
205
206
206
// populateTxs is only called on blocks we did not build
@@ -246,14 +246,14 @@ func (b *StatefulBlock) populateTxs(ctx context.Context) error {
246
246
return nil
247
247
}
248
248
249
- func ParseStatelessBlock (
249
+ func ParseStatefulBlock (
250
250
ctx context.Context ,
251
251
blk * StatelessBlock ,
252
252
source []byte ,
253
253
accepted bool ,
254
254
vm VM ,
255
255
) (* StatefulBlock , error ) {
256
- ctx , span := vm .Tracer ().Start (ctx , "chain.ParseStatelessBlock " )
256
+ ctx , span := vm .Tracer ().Start (ctx , "chain.ParseStatefulBlock " )
257
257
defer span .End ()
258
258
259
259
// Perform basic correctness checks before doing any expensive work
0 commit comments