feat(modules): manual deepen pear, trust, crdt, storage, gossip, network
Trust gate and detached registry helpers, blind handoff cancel, LWW snapshot/compare, fork forceChoose, dedup restore, DHT prune, indexer bus subscribers, inverted hasDoc, similarity listIds. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -71,6 +71,16 @@ class HyperP2PCrdtVersionVector extends EventEmitter {
|
||||
return this.snapshot()
|
||||
}
|
||||
|
||||
get (peer) {
|
||||
return this._clock.get(assertPeer(peer)) || 0
|
||||
}
|
||||
|
||||
maxClock () {
|
||||
let m = 0
|
||||
for (const v of this._clock.values()) if (v > m) m = v
|
||||
return m
|
||||
}
|
||||
|
||||
_onGossip (d) {
|
||||
if (!d || d.type !== 'crdt-version-vector-sync' || !d.peer) return
|
||||
this._stats.gossipIn++
|
||||
|
||||
Reference in New Issue
Block a user