File tree 2 files changed +4
-7
lines changed
2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -145,9 +145,7 @@ func (info *blockInfo) GetBlockAtHeight(
145
145
// Check if the requested block height is within the range of the current
146
146
// block height and the extra blocks in the root sealing segment.
147
147
if height + uint64 (flow .ExtraBlocksInRootSealingSegment ) < info .blockHeader .Height {
148
- // TODO replace with:
149
- // return runtime.Block{}, false, nil
150
- return runtime.Block {}, false , errors .NewBlockHeightOutOfRangeError (height )
148
+ return runtime.Block {}, false , nil
151
149
}
152
150
153
151
header , err := info .blocks .ByHeightFrom (height , info .blockHeader )
Original file line number Diff line number Diff line change @@ -47,10 +47,9 @@ func TestBlockInfo(t *testing.T) {
47
47
require .Equal (t , lowestHeader .Height , b .Height )
48
48
49
49
// verify that the block at the height before the lowest accepted height does not exist
50
- // TODO: enable the test case
51
- // _, exists, err = bi.GetBlockAtHeight(lowestAcceptedHeight - 1)
52
- // require.NoError(t, err)
53
- // require.False(t, exists)
50
+ _ , exists , err = bi .GetBlockAtHeight (lowestAcceptedHeight - 1 )
51
+ require .NoError (t , err )
52
+ require .False (t , exists )
54
53
}
55
54
56
55
type mockBlocks struct {
You can’t perform that action at this time.
0 commit comments