Ordinary ledger peer discovery misses smaller pools by sampling the big ledger peer snapshot

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
haskell
領域
networking

調査の方向性

The issue identifies peer selection in ouroboros-network-2.1.0.0, especially getLedgerPeers and stakeMapWithSlotOverSource, and links the DMQ consensus interface and snapshot-selection code. Start by reproducing the supplied small-pool and big-pool cases, then inspect how the snapshot slot and threshold affect the ordinary and big peer maps. Done when a regression test confirms the expected maps at and below the configured threshold.

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

説明

big-ledger-peers bug peer-selection

Context & versions

With LedgerPeers enabled and a positive useLedgerAfterSlot, a DMQ node can discover zero ledger peers even when a smaller stake pool advertises a DMQ relay. This can prevent a node without a local root from bootstrapping. Reproduced with the peer-selection functions in ouroboros-network-2.1.0.0. Related to #6.

Steps to reproduce

  1. Use the example topology’s useLedgerAfterSlot value of 128908821 and a snapshot at slot 128908822.
  2. Give one pool 99% of the stake and a plain host/port relay. Give the other pool 1% of the stake and an SRV relay domain. DMQ’s full snapshot then has one eligible pool and its big ledger peer snapshot is empty.
  3. Run getLedgerPeers with DMQ’s consensus interface. Pass its result and the big ledger peer snapshot to stakeMapWithSlotOverSource and inspect the ordinary and big peer maps.

Actual behavior

Both maps are empty. DMQ reports Origin as its latest slot, so getLedgerPeers returns BeforeSlot. The eligible big ledger peer snapshot then supplies both maps. The snapshot also takes precedence when its slot equals the reported latest slot. DMQ consensus interface · Snapshot selection

Replaying a mainnet snapshot at slot 204217240 through the same functions produced 25 candidate pools in each map. The full filtered snapshot contained 55 pools. One of the 30 omitted pools advertised a DMQ SRV record that resolved from the node.

The governor counts a big-pool address admitted as an ordinary root in the ordinary peer set. A subsequent big-peer request discards addresses already present among the roots. Big ledger peer request handling

Expected behavior

Once the snapshot reaches the configured slot, the ordinary peer map should contain the smaller pool’s SRV relay. The big peer map should be empty for this example. A regression test should also check that both maps are empty for a snapshot below the threshold.

主要言語
Haskell
スター
2
フォーク
6
平均マージ
9日 10時間
マージ済み PR(30日)
4

環境構築

はじめの一歩

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

IntersectMBO/dmq-node のほかの issue

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

似ている issue

Haskell の issue をもっと見る

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

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