Ordinary ledger peer discovery misses smaller pools by sampling the big ledger peer snapshot
還沒有人認領這個 Issue。
評估
- 難度
- 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 內容生成。
描述
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
- Use the example topology’s
useLedgerAfterSlotvalue of128908821and a snapshot at slot128908822. - 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.
- Run
getLedgerPeerswith DMQ’s consensus interface. Pass its result and the big ledger peer snapshot tostakeMapWithSlotOverSourceand 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 小時
- 30 天內合併 PR
- 4
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
IntersectMBO/dmq-node 的其他 Issue
-
tracing
難度 4/5 3-5 天 新手友好度 35/100
IntersectMBO/dmq-node#91 ·
-
enhancement peer-selection
難度 4/5 3-5 天 新手友好度 48/100
IntersectMBO/dmq-node#90 ·
-
難度 4/5 3-5 天 新手友好度 46/100
IntersectMBO/dmq-node#87 ·
-
Add tracers可能重新可做 @coot 於 151 天前認領,目前沒有進行中的 PR。 未關閉
IntersectMBO/dmq-node#59 · 已指派 1 人 ·
-
documentation
難度 3/5 1-2 天 新手友好度 25/100
IntersectMBO/dmq-node#26 · 1 則留言 ·
查看 IntersectMBO/dmq-node 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 74/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
haskell/bytestring#730 · 1 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 84/100
seal-harness/seal-harness#399 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 65/100
fmidue/codeworld-tasks#124 ·
-
難度 2/5 1-3 小時 新手友好度 62/100
reflex-frp/reflex#563 ·