File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -153,11 +153,13 @@ where
153
153
log:: debug!( "Verifying block: {:?}" , number) ;
154
154
if is_babe_digest ( block. header . digest ( ) ) {
155
155
self . check_babe_block ( block) . await ?;
156
- log:: debug!(
157
- "Detected Babe block! Verifier cannot continue, upgrade must be triggered elsewhere..."
158
- ) ;
156
+ // It is critical to pause the verifier when we detect a Babe block while we wait for
157
+ // the node to switch to the Babe service. Otherwise if the node rejects the valid babe
158
+ // block, it is possible it will repeatedly request the block over and over and get
159
+ // blacklisted by other nodes.
160
+ log:: debug!( "Detected valid Babe block, deliberately stalling verifier." ) ;
159
161
pending :: < ( ) > ( ) . await ;
160
- unreachable ! ( "Should not reach here, pending forever." ) ;
162
+ unreachable ! ( "Cannot reach here, pending forever." ) ;
161
163
} else {
162
164
self . inner . verify ( block) . await
163
165
}
You can’t perform that action at this time.
0 commit comments