You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which doesn't raise any warning or error for the wildcard pattern-match. This is unfortunate since the EraIndex already is a well-typed sum-of-product 😬 ... so instead of converting to an open type (here, Int), we should instead pattern match on the era index.
The text was updated successfully, but these errors were encountered:
What Git revision are you using?
v5.5.0
What operating system are you using, and which version?
Describe what the problem is?
Current era is still Alonzo in ogmios after Vasil HF.
What should be the expected behavior?
Reported era should be Babbage in this case, because the testnet has forked.
Solution
Culprit is:
ogmios/server/src/Ogmios/App/Health.hs
Lines 358 to 364 in 237b4ea
which doesn't raise any warning or error for the wildcard pattern-match. This is unfortunate since the
EraIndex
already is a well-typed sum-of-product 😬 ... so instead of converting to an open type (here,Int
), we should instead pattern match on the era index.The text was updated successfully, but these errors were encountered: