MCPcopy Create free account
hub / github.com/argumentcomputer/ix / addrs

Method addrs

crates/kernel/src/shard.rs:1506–1513  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

1504 // legacy leaves after validating them against the environment.
1505 let retained: Vec<&ShardInfo> =
1506 self.shards.iter().filter(|shard| !shard.blocks.is_empty()).collect();
1507 let remap: FxHashMap<u32, u32> = retained
1508 .iter()
1509 .enumerate()
1510 .map(|(new_id, shard)| (shard.id, new_id as u32))
1511 .collect();
1512 let tree = self
1513 .tree
1514 .as_ref()
1515 .and_then(|tree| tree.filter_map_leaves(&|id| remap.get(&id).copied()));
1516 let total_cross_ingress = retained

Callers 1

from_bytesMethod · 0.80

Calls 3

pushMethod · 0.80
u32Method · 0.45
addrMethod · 0.45

Tested by

no test coverage detected