bbd22f06f4
This commit adds CrdsEntry trait which allows generic lookups into crds table. For example to get ContactInfo or LowestSlot associated with a Pubkey, the lookup code would be respectively: crds.get::<&ContactInfo>(pubkey) crds.get::<&LowestSlot>(pubkey) |
||
---|---|---|
.. | ||
crds.rs | ||
crds_gossip_pull.rs | ||
crds_shards.rs | ||
weighted_shuffle.rs |