Ordinary ledger peer discovery misses smaller pools by sampling the big ledger peer snapshot
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 48/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- haskell
- Bereich
- networking
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Haskell
- Sterne
- 2
- Forks
- 6
- Ø Merge
- 9 T. 10 Std.
- Gemergte PRs (30 T.)
- 4
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus IntersectMBO/dmq-node
-
tracing
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
IntersectMBO/dmq-node#91 ·
-
enhancement peer-selection
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
IntersectMBO/dmq-node#90 ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 46/100
IntersectMBO/dmq-node#87 ·
-
Add tracersEvtl. wieder frei @coot hat das vor 151 Tagen übernommen, und es ist kein Pull Request offen. Offen
IntersectMBO/dmq-node#59 · 1 zugewiesene Person ·
-
documentation
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 25/100
IntersectMBO/dmq-node#26 · 1 Kommentar ·
Alle Issues in IntersectMBO/dmq-node
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
haskell/bytestring#730 · 1 Kommentar ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
seal-harness/seal-harness#399 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
fmidue/codeworld-tasks#124 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
reflex-frp/reflex#563 ·