@@ -5997,29 +5997,26 @@ impl StacksChainState {
5997
5997
/// the given block.
5998
5998
pub fn extract_connecting_microblocks (
5999
5999
parent_block_header_info : & StacksHeaderInfo ,
6000
- next_staging_block : & StagingBlock ,
6000
+ next_block_consensus_hash : & ConsensusHash ,
6001
+ next_block_hash : & BlockHeaderHash ,
6001
6002
block : & StacksBlock ,
6002
6003
mut next_microblocks : Vec < StacksMicroblock > ,
6003
6004
) -> Result < Vec < StacksMicroblock > , Error > {
6004
6005
// NOTE: since we got the microblocks from staging, where their signatures were already
6005
6006
// validated, we don't need to validate them again.
6006
- let microblock_terminus = match StacksChainState :: validate_parent_microblock_stream (
6007
+ let Some ( ( microblock_terminus, _ ) ) = StacksChainState :: validate_parent_microblock_stream (
6007
6008
parent_block_header_info
6008
6009
. anchored_header
6009
6010
. as_stacks_epoch2 ( )
6010
6011
. ok_or_else ( || Error :: InvalidChildOfNakomotoBlock ) ?,
6011
6012
& block. header ,
6012
6013
& next_microblocks,
6013
6014
false ,
6014
- ) {
6015
- Some ( ( terminus, _) ) => terminus,
6016
- None => {
6017
- debug ! (
6018
- "Stopping at block {}/{} -- discontiguous header stream" ,
6019
- next_staging_block. consensus_hash, next_staging_block. anchored_block_hash,
6020
- ) ;
6021
- return Ok ( vec ! [ ] ) ;
6022
- }
6015
+ ) else {
6016
+ debug ! (
6017
+ "Stopping at block {next_block_consensus_hash}/{next_block_hash} -- discontiguous header stream"
6018
+ ) ;
6019
+ return Ok ( vec ! [ ] ) ;
6023
6020
} ;
6024
6021
6025
6022
// do not consider trailing microblocks that this anchored block does _not_ confirm
@@ -6214,7 +6211,8 @@ impl StacksChainState {
6214
6211
// block's parent to this block.
6215
6212
let next_microblocks = StacksChainState :: extract_connecting_microblocks (
6216
6213
& parent_header_info,
6217
- & next_staging_block,
6214
+ & parent_header_info. consensus_hash ,
6215
+ & next_staging_block. anchored_block_hash ,
6218
6216
& block,
6219
6217
next_microblocks,
6220
6218
) ?;
0 commit comments