Verify that activeEpochNo field in PoolUpdate table match the actual behavior of the ledger rules

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

メンテナーはふだん 1 日以内に返信

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

評価

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

調査の方向性

まず、PoolUpdate テーブルの activeEpochNo の挙動と issue に記載されている ledger のケースから始め、関連する db-sync issue 610 を参照して背景を確認します。PState で見つかるプール、現在のブロックに別の PoolReg があるプール、その他すべてのケースについて値を検証します。記録された値が指定された epoch オフセットと一致すれば完了です。

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

説明

db-sync

Previously (before db-sync 10.0), the value inserted in the activeEpochNo did not match the actual behavior of the ledger rules.

If the pool is found in _pParams of PState before the current block it's epoch + 3 (retirements in the current block are irrelevant) if it's not found, but there is already another PoolReg in the current block it's epoch + 3 again (we can check this from the db). Any other case is epoch + 2.

Related db-sync issue: https://github.com/input-output-hk/cardano-db-sync/issues/610

主要言語
Python
スター
59
フォーク
28
平均マージ
8時間 27分
マージ済み PR(30日)
88

環境構築

はじめの一歩

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

IntersectMBO/cardano-node-tests のほかの issue

IntersectMBO/cardano-node-tests の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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