MCPcopy Create free account
hub / github.com/SeismicSystems/summit / is_empty

Method is_empty

types/src/withdrawal.rs:299–301  ·  view source on GitHub ↗

Whether there are any pending withdrawals.

(&self)

Source from the content-addressed store, hash-verified

297 fn pop_kind(&mut self, epoch: u64, kind: WithdrawalKind) -> Option<PendingWithdrawal> {
298 let pubkey = {
299 let schedule = self.schedule_mut(kind);
300 let queue = schedule.get_mut(&epoch)?;
301 let pubkey = queue.pop_front()?;
302 if queue.is_empty() {
303 schedule.remove(&epoch);
304 }

Callers 15

merkleizeFunction · 0.80
popMethod · 0.80
reschedule_epochMethod · 0.80
try_from_eth_bytesMethod · 0.80
try_from_eth_entryMethod · 0.80
remove_all_one_by_oneFunction · 0.80
verify_checkpoint_chainFunction · 0.80
compute_digestMethod · 0.80
new_with_verifyMethod · 0.80

Calls

no outgoing calls

Tested by 2

remove_all_one_by_oneFunction · 0.64