We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d5a3af commit f892849Copy full SHA for f892849
consensus/state_processing/src/per_block_processing/process_operations.rs
@@ -764,6 +764,18 @@ pub fn process_consolidation_request<E: EthSpec>(
764
{
765
return Ok(());
766
}
767
+ // Verify the source has been active long enough
768
+ if current_epoch
769
+ < source_validator
770
+ .activation_epoch
771
+ .safe_add(spec.shard_committee_period)?
772
+ {
773
+ return Ok(());
774
+ }
775
+ // Verify the source has no pending withdrawals in the queue
776
+ if state.get_pending_balance_to_withdraw(source_index)? > 0 {
777
778
779
780
// Initiate source validator exit and append pending consolidation
781
let source_exit_epoch = state
0 commit comments