File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -1272,14 +1272,20 @@ impl LocalStateMachine {
1272
1272
Some ( d) => d,
1273
1273
} ;
1274
1274
1275
- let Ok ( mut parent_burn_block_info) =
1276
- db. get_burn_block_by_ch ( & new_burn_block. consensus_hash )
1277
- else {
1278
- warn ! (
1279
- "Failed to get parent burn block info for {}" ,
1280
- new_burn_block. consensus_hash
1281
- ) ;
1282
- return Ok ( false ) ;
1275
+ let mut parent_burn_block_info = match db
1276
+ . get_burn_block_by_ch ( & new_burn_block. consensus_hash )
1277
+ . and_then ( |burn_block_info| {
1278
+ db. get_burn_block_by_hash ( & burn_block_info. parent_burn_block_hash )
1279
+ } ) {
1280
+ Ok ( info) => info,
1281
+ Err ( e) => {
1282
+ warn ! (
1283
+ "Failed to get parent burn block info for {}" ,
1284
+ new_burn_block. consensus_hash;
1285
+ "error" => ?e,
1286
+ ) ;
1287
+ return Ok ( false ) ;
1288
+ }
1283
1289
} ;
1284
1290
1285
1291
for _ in 0 ..height_delta {
You can’t perform that action at this time.
0 commit comments