diff --git a/core/src/crds.rs b/core/src/crds.rs
index d4bdbb9f8b..0f22fc2553 100644
--- a/core/src/crds.rs
+++ b/core/src/crds.rs
@@ -56,6 +56,8 @@ pub struct Crds {
epoch_slots: BTreeMap,
// Indices of all crds values associated with a node.
records: HashMap>,
+ // Indices of all entries keyed by insert order.
+ entries: BTreeMap,
}
#[derive(PartialEq, Debug)]
@@ -117,6 +119,7 @@ impl Default for Crds {
votes: IndexSet::default(),
epoch_slots: BTreeMap::default(),
records: HashMap::default(),
+ entries: BTreeMap::default(),
}
}
}
@@ -155,6 +158,7 @@ impl Crds {
local_timestamp: u64,
) -> Result