Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Replace StreamID with an opaque bigint

オープン
#31 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
go

調査の方向性

ファイルやテストパスは指定されていません。まず basicnet 内の StreamID 参照を追跡し、特にブロードキャスターの NodeID を決定するロジックを確認して、コンテキストとして issue #21 を調べてください。識別子が不透明な bigint になり、basicnet がその内部構造や逆引きに依存しなくなれば完了です。

索引モデルが issue の本文から書いたものです。

説明

For a Livepeer node, this corresponds to the JobID, from which the StreamID can be looked up easily on-chain. Other off-chain applications can use the bigint as a lookup key.

Currently, the only time StreamID is used concretely within basicnet is to determine the broadcaster's NodeID. We should be able to work around this. Treat the ID as an opaque identifier that's used only by the API consumer, not basicnet.

Benefits:

  • The StreamID right now is not a canonical identifier; we need to maintain a reverse lookup table for the JobID to find any transcoder information. This is additional bookkeping that we should avoid.
  • Concretely, solves this issue https://github.com/livepeer/go-livepeer-basicnet/issues/21#issuecomment-369310870
  • Doesn't make assumptions about the structure of the StreamID within basicnet. This reduces coupling with Livepeer -- other systems might not want to make the same assumptions about their bookkeeping.
  • Further decouples basicnet from Livepeer; keeping this identifier opaque means any changes to the ID in Livepeer doesn't necessitate changes in basicnet.
主要言語
Go
スター
18
フォーク
6
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

livepeer/go-livepeer-basicnet のほかの issue

livepeer/go-livepeer-basicnet の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。