@@ -709,20 +709,33 @@ impl Worker {
709
709
let parent_block_hash = self . prev_block_hash ( ) ;
710
710
if let Some ( priority_info) = self . signer_priority_info ( parent_block_hash) {
711
711
if let TwoThirdsMajority :: Lock ( lock_view, locked_block_hash) = self . last_two_thirds_majority {
712
- cinfo ! ( ENGINE , "I am eligible to be a proposer, I'll re-propose a locked block" ) ;
712
+ cinfo ! ( ENGINE , "I am eligible to be a proposer, round-info {}-{} and {}. I'll re-propose a locked block with priority" ,
713
+ self . height,
714
+ self . view,
715
+ priority_info,
716
+ ) ;
713
717
match self . locked_proposal_block ( lock_view, locked_block_hash) {
714
718
Ok ( block) => self . repropose_block ( priority_info, block) ,
715
719
Err ( error_msg) => cwarn ! ( ENGINE , "{}" , error_msg) ,
716
720
}
717
721
} else {
718
- cinfo ! ( ENGINE , "I am eligible to be a proposer, I'll create a block" ) ;
722
+ cinfo ! ( ENGINE , "I am eligible to be a proposer, round-info {}-{} and {}. I'll create a block with priority" ,
723
+ self . height,
724
+ self . view,
725
+ priority_info,
726
+ ) ;
719
727
self . update_sealing ( parent_block_hash) ;
720
728
self . step . wait_block_generation ( priority_info, parent_block_hash) ;
721
729
}
722
730
} else {
723
731
let sortition_round = vote_step. into ( ) ;
724
732
let round_highest_priority = self . votes . get_highest_priority ( sortition_round) ;
725
- cinfo ! ( ENGINE , "I am not eligible to be a proposer, I'll request a proposal" ) ;
733
+ cinfo ! (
734
+ ENGINE ,
735
+ "I am not eligible to be a proposer, round-info {}-{}. I'll request a proposal" ,
736
+ self . height,
737
+ self . view,
738
+ ) ;
726
739
self . request_proposal_to_superiors ( sortition_round, round_highest_priority) ;
727
740
}
728
741
}
@@ -1736,7 +1749,14 @@ impl Worker {
1736
1749
let block_view = BlockView :: new ( & bytes) ;
1737
1750
let header_view = block_view. header ( ) ;
1738
1751
let number = header_view. number ( ) ;
1739
- cinfo ! ( ENGINE , "Proposal received for {}-{:?}" , number, header_view. hash( ) ) ;
1752
+ cinfo ! (
1753
+ ENGINE ,
1754
+ "Proposal received for ({},{})-{:?}. The priority info is {}" ,
1755
+ number,
1756
+ proposed_view,
1757
+ header_view. hash( ) ,
1758
+ priority_info,
1759
+ ) ;
1740
1760
1741
1761
let parent_hash = header_view. parent_hash ( ) ;
1742
1762
{
0 commit comments