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

Proper fix for optimized version of isBootstrapRedeemer function. #2632

Merged
merged 1 commit into from Jan 26, 2022

Conversation

lehins
Copy link
Contributor

@lehins lehins commented Jan 25, 2022

I ran into a test failure on CI, which can be reproduced with this command prior to this PR:

cabal test cardano-ledger-shelley-test --test-options='--quickcheck-replay=97935 -p "isBootstrapRedeemer is equivalent for CompactAddr and Addr"'

Original attempt to fix this was in #2284 which was invalid and resulted in the optimized version of the function not been used, however the test remained.

This is indeed a good optimization, since returnRedeemAddrsToReserves iterates over the whole UTxO and current unoptimized version of isBootstrapRedeemer will cause redundant address uncompacting of all Shelley addresses

@lehins lehins force-pushed the lehins/fix-is-bootstrap-redeemer branch from 9882747 to cb1e021 Compare January 25, 2022 23:55
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.

thank you @lehins , I'm glad to see that TODO be resolved!

@lehins lehins merged commit 75377d5 into master Jan 26, 2022
@iohk-bors iohk-bors bot deleted the lehins/fix-is-bootstrap-redeemer branch January 26, 2022 01:49
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.

None yet

3 participants