hyperledger-firefly / hyperledger-firefly/cli

Make `FirstEvent` configurable to better support public chain with multi-party

オープン
#331 コメント 0 件 リアクション 2 件 担当者 0 名 GitHub で見る
good first issue
主要言語
Go
スター
66
フォーク
64
PR マージ指標
30日以内にマージされた PR はありません

説明

As per the discussion here: https://discord.com/channels/905194001349627914/1306104244486668369/1306929797296816200, Firefly-cli currently hard code the starting block of the Firefly batch pin contract event to `0` to ensure no events could be missed. But this is impractical when using multi-party mode with a public chain: https://github.com/hyperledger/firefly-cli/blob/14e7721bf8cca1fc6b2b217d00a5d79926a17af2/internal/stacks/stack_manager.go#L988

## Workaround

The currently workaround is to update the firefly_core yaml generated manually to start indexing the events from a desired block number. (hint: `newest` can be used if you don't care about missing events which breaks integrity of indexed data)

An enhancement would be making the FirstEvent configurable

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

internal/stacks/stack_manager.go の988行目付近から開始し、FireFly バッチピンコントラクトイベントがブロック 0 で開始する箇所を確認して、生成された firefly_core YAML がどのようにインデックス設定を受け取るかを追跡してください。FirstEvent を設定としてどのように公開すべきかを判断し、手動で YAML を編集せずに、指定されたブロックからインデックス作成が開始されることを検証してください。

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

評価

技術スタック
go
領域
blockchain, cli
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

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

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