-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for measures to LocalTxMonitor #1191
Open
fraser-iohk
wants to merge
4
commits into
main
Choose a base branch
from
fraser-iohk/localtxmonitor-measures
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 tasks
f15f603
to
a7bd1c5
Compare
16e7267
to
159d33f
Compare
6ad371d
to
9c022f3
Compare
2cc7f85
to
b1a95e9
Compare
add `fromByteSize :: Num a => ByteSize -> a`, with a WARNING that it will likely explode due to overflow add TxMeasureMetrics {Semigroup, Monoid} instances for {AlonzoMeasure, ConwayMeasure} add TxMeasureMetrics class and instances ByteSize -> TxMeasure blk in LocalTxMonitor.Server respond with TxMeasureMetrics info inside a map of measures stylish merge changes from nick's branch add patterns for MeasureName constructors that are no longer provided in network
df3eac7
to
06161c5
Compare
jasagredo
reviewed
Feb 13, 2025
...ros-consensus-diffusion/changelog.d/20250213_115925_fraser.murray_localtxmonitor_measures.md
Outdated
Show resolved
Hide resolved
@@ -24,3 +24,4 @@ nodeToClientVersionToQueryVersion x = case x of | |||
NodeToClientV_17 -> QueryVersion2 | |||
NodeToClientV_18 -> QueryVersion2 | |||
NodeToClientV_19 -> QueryVersion2 | |||
NodeToClientV_20 -> QueryVersion2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I introduced a new query in #1373 that should make use of NodeToClientV_20
too. Just FYI.
06161c5
to
b05cacf
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR fixes #1178 and builds on #1175 by adding support for arbitrary measures to the
LocalTxMonitor
server inouroboros-consensus
. Relevant changes toouroboros-network
are required to build these changes, since theLocalTxMonitor
protocol has been changed to add a newGetMeasures
message.Remaining work required before this can be merged:
ouroboros-network
PR needs to be mergeddeal withfromByteSize
being very likely to silently overflow the new numeric type