feat(modules): manual deepen gossip, bloom, trust, storage, economy

Gossip mesh drop rate, bloom batch filter, blind relay best pick,
key rotation helpers, OR-map values, writer lease releaseAll,
view sync catchUp, channel prune, credit closeAccount, argv bridge.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-21 02:33:33 -04:00
co-authored by Cursor
parent 84bc18bc6e
commit d51bfea987
14 changed files with 132 additions and 4 deletions
@@ -72,6 +72,11 @@ class HyperP2PAttestationChain extends EventEmitter {
return this._chain.map((l) => l.payload)
}
headPayload () {
const h = this.head()
return h ? h.payload : null
}
toJSON () {
return { chain: this.slice() }
}
@@ -66,6 +66,14 @@ class HyperP2PKeyRotation extends EventEmitter {
return this._active.size
}
hasActive (keyId) {
return this._active.has(String(keyId))
}
rotationCount (keyId) {
return (this._pending.get(keyId) || []).length
}
_maybeActivate (keyId, now = Date.now()) {
const list = this._pending.get(keyId) || []
for (const e of list) {