Skip to content

Commit f790b09

Browse files
Add doc comment for VerifyExecutionResultsForSpork
Co-authored-by: Jordan Schalm <jordan.schalm@flowfoundation.org>
1 parent 37e57dd commit f790b09

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

state/convert_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ func TestVerifyExecutionResultHash(t *testing.T) {
9191
})
9292
}
9393

94+
// VerifyExecutionResultsForSpork verifies that execution result IDs in block seals match those computed
95+
// from the execution result included in the block payload.
96+
// This test works by traversing a block height range and comparing all execution results where both the
97+
// result and its seal appear within the range. In other words, we test the sub-section of the specified block
98+
// range which is sealed as of `endHeight`. If the range is too short, no results will be checked and the test will error.
9499
func VerifyExecutionResultsForSpork(t *testing.T, ctx context.Context, spork *config.Spork, startHeight uint64, endHeight uint64) {
95100
client := spork.AccessNodes.Client()
96101
sealedResults := make(map[flow.Identifier]flow.Identifier)

0 commit comments

Comments
 (0)