Add snapshot-epoch cursor so 3+-node gossip converges in order and across compaction
All checks were successful
CI / check (push) Successful in 5m24s
All checks were successful
CI / check (push) Successful in 5m24s
This commit is contained in:
parent
6a22bee2e1
commit
83851c794d
6 changed files with 239 additions and 70 deletions
|
|
@ -639,11 +639,11 @@ impl Engine {
|
|||
}
|
||||
|
||||
// Gossip pass-throughs to the account store, used by the replication layer.
|
||||
pub fn gossip_digest(&self) -> HashMap<String, u64> {
|
||||
pub fn gossip_digest(&self) -> HashMap<String, (u64, u64)> {
|
||||
self.db.version_vector()
|
||||
}
|
||||
|
||||
pub fn gossip_missing(&self, peer: &HashMap<String, u64>) -> Vec<LogEntry> {
|
||||
pub fn gossip_missing(&self, peer: &HashMap<String, (u64, u64)>) -> Vec<LogEntry> {
|
||||
self.db.missing_for(peer)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue