mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 01:05:47 +00:00
Implement "Add missed exit checks to consolidation processing"
This commit is contained in:
@@ -764,6 +764,18 @@ pub fn process_consolidation_request<E: EthSpec>(
|
|||||||
{
|
{
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
// Verify the source has been active long enough
|
||||||
|
if current_epoch
|
||||||
|
< source_validator
|
||||||
|
.activation_epoch
|
||||||
|
.safe_add(spec.shard_committee_period)?
|
||||||
|
{
|
||||||
|
return Ok(());
|
||||||
|
}
|
||||||
|
// Verify the source has no pending withdrawals in the queue
|
||||||
|
if state.get_pending_balance_to_withdraw(source_index)? > 0 {
|
||||||
|
return Ok(());
|
||||||
|
}
|
||||||
|
|
||||||
// Initiate source validator exit and append pending consolidation
|
// Initiate source validator exit and append pending consolidation
|
||||||
let source_exit_epoch = state
|
let source_exit_epoch = state
|
||||||
|
|||||||
Reference in New Issue
Block a user