File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
beacon_node/beacon_chain/tests Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -3647,18 +3647,18 @@ async fn ancestor_state_root_prior_to_split() {
3647
3647
if ancestor_slot == state_slot {
3648
3648
continue ;
3649
3649
}
3650
- tracing:: debug!(
3651
- %state_slot,
3652
- %ancestor_slot,
3653
- head_slot = %head_state. slot( ) ,
3654
- "Fetching ancestor state root"
3655
- ) ;
3656
3650
let ancestor_state_root = store:: hot_cold_store:: get_ancestor_state_root (
3657
3651
& store,
3658
3652
& head_state,
3659
3653
ancestor_slot,
3660
3654
)
3661
- . unwrap ( ) ;
3655
+ . unwrap_or_else ( |e| {
3656
+ panic ! (
3657
+ "get_ancestor_state_root failed for state_slot={state_slot}, \
3658
+ ancestor_slot={ancestor_slot}, head_slot={}. error: {e:?}",
3659
+ head_state. slot( )
3660
+ )
3661
+ } ) ;
3662
3662
3663
3663
// Check state root correctness.
3664
3664
assert_eq ! (
You can’t perform that action at this time.
0 commit comments