feat: show bytes paid for by pools whose owner is not a registered operator
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 42/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
Start with worker/src/stats.ts to trace pool owner and operator tracking, PoolRedeemed handling, and the totals and hourly/daily point shapes; then inspect wrangler.jsonc for internal owner configuration. Check website/lib/stats.ts to see whether its validator accepts additive fields, and locate the stats page’s headline tiles, settlements table, and emptyLabel handling. Done means external bytes and USDC are reported in all-time and rolling-24h totals and hourly series, the page labels the measure as an upper bound, and both worker and website accept the shared schema.
索引モデルが issue の本文から書いたものです。
説明
Problem
The page shows bytes served and USDC settled. It does not say who paid. On the live file today (stats-421614.json, 2026-10-24):
| registered operators | 9 |
| pools opened | 18 |
| distinct pool owners | 13 |
| pools whose owner is not a registered operator | 8 (5 owners) |
| median of the last 50 settlements | 10.5 GB |
Most pools belong to the operators themselves, and the uniform ~10.5 GB settlements look like node-to-node fills and the smoke-test load generator, not customers. The network is mostly paying itself. The one line an investor or a customer will read is bytes paid for by pools whose owner is not a registered operator, and the page cannot show it.
Proposal
Add an external demand figure next to bytes served: all-time and rolling-24h bytes (and USDC) paid from pools whose owner is not in the registered set, with the same hourly series the other headline metrics have.
Worker side (worker/src/stats.ts already keeps poolOwners and the operator set, and PoolRedeemed lanes carry bytesPaid per pool):
- On
poolRedeemed, classify the pool by its owner at that moment: internal when the owner is a registered operator (or on aINTERNAL_OWNERSlist inwrangler.jsoncfor Labs wallets that are not operators, such as the smoke-test buyer), else external. - Accumulate
totals.externalBytesPaid/totals.externalValuePaid, and addexternalBytesPaidtoDailyPointandHourlyPoint. - Keep
bytesPulledper region as is; this is a different cut of the same events.
Page side: a headline tile "external demand" with the 24h delta, and a line under the settlements table saying what counts as external. Empty states follow the existing emptyLabel switch per block.
Caveats
- An operator may fund pools from a buyer wallet that differs from its registered operator address; the classification is then wrong in the generous direction (it over-counts external). The
INTERNAL_OWNERSlist is the fix for known cases; the caption says the figure is an upper bound. USDCfromPoolRedeemedis what nodes redeemed, not what pools deposited; label it "paid", not "spent".- Schema change is cross-repo.
website/lib/stats.ts(decdn/website) fetches and shape-checks the same file. New fields are additive, but check that its validator tolerates them before the worker ships, or ship both in the same window.
Related
- The demand-side work this number measures: https://github.com/decdn/decdn/issues/2591, https://github.com/decdn/decdn/issues/2593, https://github.com/decdn/decdn/issues/2594
- Docs "Deliver" tab that will quote it: https://github.com/decdn/website/issues/335
- 主要言語
- TypeScript
- スター
- 2
- フォーク
- 0
- 平均マージ
- 10時間 46分
- マージ済み PR(30日)
- 37
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
decdn/stats のほかの issue
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
feature frontend indexer
難易度 5/5 1週間以上 初心者へのやさしさ 39/100
メンテナーはふだん 1 日以内に返信
-
feature frontend indexer
難易度 3/5 1〜2日 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
feat: mark Labs nodes and pools, and show external nodes and external bytes as their own countersオープンenhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
-
feat: add a world map of nodes by region対応中かも @yigitdot が 29 日前に担当しました。 オープンenhancement
難易度 4/5 3〜5日 初心者へのやさしさ 22/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
awslabs/visual-asset-management-system#937 ·
メンテナーはふだん 1 日以内に返信
-
t0ggles
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
nolimits4web/swiper#8255 · コメント 1 件 ·
メンテナーはふだん 15 日以内に返信
-
render: --variables-file (and --variables <path>) fails with "io.readFile is not a function" since 0.8.212対応中かも @miguel-heygen が今日担当しました。 オープンbug triage/needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
heygen-com/hyperframes#6830 ·
メンテナーはふだん 1 日以内に返信
-
bug launch local use
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
account: profile bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 5 日以内に返信