Expand media, trust, encoding, consensus, and scheduling APIs
Add buffer health, graph clearing, codec registry counts, bitfield queue helpers, causal consensus listing, cron job utilities, and oracle feed management helpers. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -399,6 +399,20 @@ class HyperP2PCausalConsensus extends EventEmitter {
|
||||
return Array.from(this.decidedOrders.values()).sort((a, b) => a.order - b.order)
|
||||
}
|
||||
|
||||
pendingProposals () {
|
||||
return [...this.proposals.values()].filter((p) => p.status === 'pending')
|
||||
}
|
||||
|
||||
proposalIds () {
|
||||
return [...this.proposals.keys()]
|
||||
}
|
||||
|
||||
clearDecided () {
|
||||
const n = this.decidedOrders.size
|
||||
this.decidedOrders.clear()
|
||||
return n
|
||||
}
|
||||
|
||||
getMetrics () {
|
||||
return { ...this._metrics, peers: this.peers.size, pendingProposals: this.proposals.size - this.decidedOrders.size }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user