Expand module APIs across pear, network, experimental, and ops categories.
Add batch helpers, counts, and management utilities so modules expose consistent peer, lease, queue, and telemetry surfaces. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -93,6 +93,11 @@ class HyperP2PAttestationChain extends EventEmitter {
|
||||
return n
|
||||
}
|
||||
|
||||
appendBatch (payloads, opts = {}) {
|
||||
if (!Array.isArray(payloads)) throw new Error('payloads array required')
|
||||
return payloads.map((p) => this.append(p, opts))
|
||||
}
|
||||
|
||||
async ready () {
|
||||
if (this.swarm || !this.topic) return this
|
||||
await initModuleSwarm(this, {
|
||||
|
||||
Reference in New Issue
Block a user