cardano-diffusion: label ledger peer usage#5378
Conversation
|
Thanks. Note that this only adds statistics for big ledger peers. For ledger peers you'd need to use
We're getting 63% of time |
… generic actions before TradeDebugState
|
Thank you for the review and remarks. I updated this to split the output into two labels:
For generic peer actions such as Before the first debug-state snapshot, generic actions are left unclassified rather than counted as selecting zero ledger peers. This is done in last commit - without this it looked like so:
Do you want the investigation of this to be part of this PR? |
Description
Fixes #4683
Issue reference comment for
ledgerPeersingenNodeArgs:ouroboros-network/cardano-diffusion/tests/lib/Test/Cardano/Network/Diffusion/Testnet/Simulation.hs
Lines 450 to 451 in d842a23
genNodeArgsis used in generator forDiffusionScript:ouroboros-network/cardano-diffusion/tests/lib/Test/Cardano/Network/Diffusion/Testnet/Simulation.hs
Line 677 in d842a23
It is used in many properties, but most likely target seems
prop_peer_selection_trace_coveragethat already tabulateTracePeerSelectionevents. I added another tabulate - over events withSet peeraddr(and not on singlepeeraddr):now shows:
Checklist
Quality
Maintenance
ouroboros-networkproject.