File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
testnet/stacks-node/src/tests Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -1902,6 +1902,12 @@ fn simple_neon_integration_with_flash_blocks_on_epoch_3() {
1902
1902
// Check that we have the expected burn blocks
1903
1903
// We expect to have around the blocks 220-230 and 234 onwards, with a gap of 3 blocks for the flash blocks
1904
1904
let bhh = u64:: from ( tip. burn_header_height ) ;
1905
+
1906
+ // Get the Epoch 3.0 activation height (in terms of Bitcoin block height)
1907
+ let epochs = naka_conf. burnchain . epochs . clone ( ) . unwrap ( ) ;
1908
+ let epoch_3 = & epochs[ StacksEpoch :: find_epoch_by_id ( & epochs, StacksEpochId :: Epoch30 ) . unwrap ( ) ] ;
1909
+ let epoch_3_start_height = epoch_3. start_height ;
1910
+
1905
1911
// Find the gap in burn blocks
1906
1912
let mut gap_start = 0 ;
1907
1913
let mut gap_end = 0 ;
@@ -1925,11 +1931,21 @@ fn simple_neon_integration_with_flash_blocks_on_epoch_3() {
1925
1931
gap_end
1926
1932
) ;
1927
1933
1934
+ // Verify that the gap includes the Epoch 3.0 activation height
1935
+ assert ! (
1936
+ gap_start <= epoch_3_start_height && epoch_3_start_height <= gap_end,
1937
+ "Expected the gap ({}..={}) to include the Epoch 3.0 activation height ({})" ,
1938
+ gap_start,
1939
+ gap_end,
1940
+ epoch_3_start_height
1941
+ ) ;
1942
+
1928
1943
// Verify blocks before and after the gap
1929
1944
test_observer:: contains_burn_block_range ( 220 ..=( gap_start - 1 ) ) . unwrap ( ) ;
1930
1945
test_observer:: contains_burn_block_range ( ( gap_end + 1 ) ..=bhh) . unwrap ( ) ;
1931
1946
1932
1947
info ! ( "Verified burn block ranges, including expected gap for flash blocks" ) ;
1948
+ info ! ( "Confirmed that the gap includes the Epoch 3.0 activation height (Bitcoin block height): {}" , epoch_3_start_height) ;
1933
1949
1934
1950
coord_channel
1935
1951
. lock ( )
You can’t perform that action at this time.
0 commit comments