This commit is contained in:
Raven Scott
2026-05-20 21:19:52 -04:00
parent 14d0980b4f
commit 31e9728ef8
759 changed files with 54218 additions and 392 deletions
@@ -0,0 +1,25 @@
require('bare-process/global')
const EventEmitter = require('bare-events')
const PROTOCOL = 'bloom-gossip/v1'
class HyperP2PBloomGossip extends EventEmitter {
constructor (opts = {}) {
super()
this.topic = opts.topic || null
this._stats = { created: 0, errors: 0 }
}
getStats () {
return { ...this._stats, protocol: PROTOCOL, tier: 'scaffold' }
}
async ready () { return true }
_notImplemented (method) {
this._stats.errors++
throw new Error(`not implemented: scaffold (${method})`)
}
}
module.exports = { HyperP2PBloomGossip, PROTOCOL }