File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -936,13 +936,15 @@ impl<'a> ClarityDatabase<'a> {
936
936
return Ok ( None ) ;
937
937
}
938
938
let current_height = self . get_current_block_height ( ) ;
939
+ if current_height <= tenure_height {
940
+ return Ok ( None ) ;
941
+ }
939
942
// check if we're querying a 2.x block
940
943
let id_bhh = self . get_index_block_header_hash ( tenure_height) ?;
941
944
let epoch = self . get_stacks_epoch_for_block ( & id_bhh) ?;
942
945
if !epoch. uses_nakamoto_blocks ( ) {
943
946
return Ok ( Some ( tenure_height) ) ;
944
947
}
945
-
946
948
// query from the parent
947
949
let query_tip = self . get_index_block_header_hash ( current_height. saturating_sub ( 1 ) ) ?;
948
950
Ok ( self
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ fn test_get_block_info_eval(
139
139
. unwrap ( ) ;
140
140
141
141
let mut env = owned_env. get_exec_environment ( None , None , & mut placeholder_context) ;
142
-
142
+ eprintln ! ( "{}" , contracts [ i ] ) ;
143
143
let eval_result = env. eval_read_only ( & contract_identifier, "(test-func)" ) ;
144
144
match expected[ i] {
145
145
// any (some UINT) is okay for checking get-block-info? time
You can’t perform that action at this time.
0 commit comments