Skip to content

Identify the correct ledger era for local state queries#62

Open
crocodile-dentist wants to merge 1 commit into
mainfrom
mw/fix-era-query
Open

Identify the correct ledger era for local state queries#62
crocodile-dentist wants to merge 1 commit into
mainfrom
mw/fix-era-query

Conversation

@crocodile-dentist

Copy link
Copy Markdown
Contributor

List of changes

Fixes the issue of hardcoded conway era query, which would cause a crash on an era transition.

Checklist

  • related issue
  • My changes generate no new warnings
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works

Comment thread dmq-node/src/DMQ/NodeToClient/LocalStateQueryClient.hs Outdated
Comment thread dmq-node/src/DMQ/NodeToClient/LocalStateQueryClient.hs Outdated

@coot coot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks.

Left err ->
pure $ SendMsgRelease do
traceWith tracer $ PastHorizon err
threadDelay 86400

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be smaller, maybe 10-30 minutes (we won't spam the node if we do these simple queries every 10 minutes or so). Otherwise if dmq-node was started just before the epoch boundary we wait a day before it gets the data.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that can happen. If we are 'close' to an epoch boundary then its not possible to take this branch, otherwise that would be problematic for the hfc (I think). I don't know how close is close, but it seems like a day shouldn't be extravagant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

2 participants