Skip to content
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

Translate bad Ptrs to valid Ptrs during translation to Conway. #3360

Merged
merged 1 commit into from
Mar 28, 2023

Conversation

lehins
Copy link
Collaborator

@lehins lehins commented Mar 27, 2023

Bad pointers and ugly addresses are not allowed in transactions starting with Babbage era. However, Ptr's that did land on chain in prior eras are still present in the LedgerState. Thanks to deprecation of Ptrs we can simplify the Ptr decoding logic, but only after the bad ones have been translated.

Description

Add your description here, if it fixes a particular issue please provide a
link
to the issue.

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated
  • Any changes are noted in the CHANGELOG.md for affected package
  • Code is formatted with fourmolu (use scripts/fourmolize.sh)
  • Cabal files are formatted (use scripts/cabal-format.sh)
  • hie.yaml has been updated (use scripts/gen-hie.sh)
  • Self-reviewed the diff

@lehins lehins force-pushed the lehins/truncate-ptrs-upon-translation branch from ca54936 to 22905ce Compare March 27, 2023 22:40
@lehins lehins requested a review from JaredCorduan March 27, 2023 22:51
Copy link
Contributor

@JaredCorduan JaredCorduan left a comment

Choose a reason for hiding this comment

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

thanks for fixing this and cleaning it up too!

@lehins lehins force-pushed the lehins/truncate-ptrs-upon-translation branch 2 times, most recently from 2c23f6b to af69281 Compare March 28, 2023 00:50
Bad pointers and ugly addresses are not allowed in transactions starting
with Babbage era. However, Ptr's that did land on chain in prior eras are
still present in the LedgerState. Thanks to deprecation of `Ptr`s we can
simplify the Ptr decoding logic, but only after the bad ones have been
translated.
@lehins lehins force-pushed the lehins/truncate-ptrs-upon-translation branch from af69281 to 5fe9e9e Compare March 28, 2023 00:54
@lehins lehins enabled auto-merge March 28, 2023 01:09
@lehins lehins merged commit 919ef57 into master Mar 28, 2023
@iohk-bors iohk-bors bot deleted the lehins/truncate-ptrs-upon-translation branch March 28, 2023 02:18
@lehins lehins mentioned this pull request Jul 18, 2023
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants