feat(supercomputer,experimental): deepen share, steal, beacon, whisper
Bandwidth revoke/best offer, work-stealer batch/flush, entropy snapshot, whisper clearSeen, and phase-shift setPhase/maxPeerDelta. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -71,6 +71,17 @@ class HyperP2PWhisperMesh extends EventEmitter {
|
||||
|
||||
seenCount () { return this._seen.size }
|
||||
|
||||
setMaxHops (n) {
|
||||
this.maxHops = Math.max(0, n | 0)
|
||||
return this.maxHops
|
||||
}
|
||||
|
||||
clearSeen () {
|
||||
const n = this._seen.size
|
||||
this._seen.clear()
|
||||
return n
|
||||
}
|
||||
|
||||
async ready () {
|
||||
if (this.swarm || !this.topic) return this
|
||||
await initModuleSwarm(this, {
|
||||
|
||||
Reference in New Issue
Block a user