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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user