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

[ADP-3198] Compute primitive block via erafun #4192

Merged
merged 10 commits into from
Nov 14, 2023

Conversation

paolino
Copy link
Collaborator

@paolino paolino commented Oct 31, 2023

  • add block to primitive block era fun
  • encode fromCardanoBlock as an era dependent application

Benchmark note:

To prove that the change is not damaging performance too much I added a benchmark covering the translation from ledger block to primitive block that compares the previous version against the new one. Because the old version is not more accessible at the end of the PR, this is the link to the commit to checkout and re-run it 4a3c328 via cabal bench -O2 cardano-wallet:benchmark:era-fun

ADP-3198 ADP-3217

@paolino paolino self-assigned this Oct 31, 2023
@paolino paolino changed the title Paolino/ADP-3198/compute-primitive-block [ADP-3198] compute primitive block via erafun Oct 31, 2023
@paolino paolino force-pushed the paolino/ADP-3198/add-erafun-for-block-read branch from 1848f8a to 93dd289 Compare October 31, 2023 11:07
@paolino paolino force-pushed the paolino/ADP-3198/compute-primitive-block branch from 4e8469c to e2a6049 Compare October 31, 2023 11:07
@paolino paolino force-pushed the paolino/ADP-3198/add-erafun-for-block-read branch from 93dd289 to d2a8001 Compare November 1, 2023 18:29
@paolino paolino force-pushed the paolino/ADP-3198/compute-primitive-block branch 3 times, most recently from e5730cd to fa2892d Compare November 2, 2023 08:42
@paolino paolino force-pushed the paolino/ADP-3198/add-erafun-for-block-read branch from d2a8001 to c3c585c Compare November 2, 2023 09:12
@paolino paolino force-pushed the paolino/ADP-3198/compute-primitive-block branch from fa2892d to a80d948 Compare November 2, 2023 09:15
@paolino paolino force-pushed the paolino/ADP-3198/add-erafun-for-block-read branch from c3c585c to 92372d5 Compare November 2, 2023 12:32
Base automatically changed from paolino/ADP-3198/add-erafun-for-block-read to master November 2, 2023 16:04
@paolino paolino force-pushed the paolino/ADP-3198/compute-primitive-block branch from a80d948 to 549ffe3 Compare November 7, 2023 12:05
@paolino paolino changed the base branch from master to paolino/ADP-3198/gen-blocks November 7, 2023 13:12
@paolino paolino force-pushed the paolino/ADP-3198/gen-blocks branch 4 times, most recently from c783671 to 6f7da8d Compare November 8, 2023 16:28
@paolino paolino force-pushed the paolino/ADP-3198/compute-primitive-block branch from 549ffe3 to d15064b Compare November 8, 2023 16:36
@paolino paolino force-pushed the paolino/ADP-3198/compute-primitive-block branch from d15064b to 6843d86 Compare November 8, 2023 16:45
@paolino paolino changed the title [ADP-3198] compute primitive block via erafun [ADP-3198] Compute primitive block via erafun Nov 8, 2023
@paolino paolino force-pushed the paolino/ADP-3198/gen-blocks branch 4 times, most recently from 51bfeb8 to 853c577 Compare November 9, 2023 15:24
@paolino paolino force-pushed the paolino/ADP-3198/compute-primitive-block branch from de10af4 to 2bef83b Compare November 13, 2023 11:56
@paolino paolino force-pushed the paolino/ADP-3198/compute-primitive-block branch from 2bef83b to 2da4ec4 Compare November 13, 2023 12:00
Base automatically changed from paolino/ADP-3198/gen-blocks to master November 13, 2023 14:22
@paolino paolino force-pushed the paolino/ADP-3198/compute-primitive-block branch from 72ae600 to cde36ec Compare November 13, 2023 14:39
@paolino paolino requested a review from Unisay November 13, 2023 14:39
@paolino paolino changed the base branch from master to paolino/ADP-3198/simplify-erafun-implementation November 13, 2023 14:40
Copy link
Contributor

@HeinrichApfelmus HeinrichApfelmus left a comment

Choose a reason for hiding this comment

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

Looks good to me, thank you! 😊 Minor style suggestions.

lib/wallet/src/Cardano/Wallet/Pools.hs Outdated Show resolved Hide resolved
lib/wallet/src/Cardano/Wallet.hs Outdated Show resolved Hide resolved
@paolino paolino force-pushed the paolino/ADP-3198/simplify-erafun-implementation branch from 7a87596 to 05d397e Compare November 13, 2023 16:27
@paolino paolino force-pushed the paolino/ADP-3198/compute-primitive-block branch from cde36ec to 23be654 Compare November 13, 2023 16:35
@paolino paolino force-pushed the paolino/ADP-3198/simplify-erafun-implementation branch 2 times, most recently from 9103a6d to 9c320e3 Compare November 13, 2023 16:45
@paolino paolino force-pushed the paolino/ADP-3198/compute-primitive-block branch from 23be654 to 12f133a Compare November 13, 2023 16:48
Base automatically changed from paolino/ADP-3198/simplify-erafun-implementation to master November 13, 2023 17:53
@paolino paolino added this pull request to the merge queue Nov 14, 2023
Merged via the queue into master with commit 48a1ebc Nov 14, 2023
3 checks passed
@paolino paolino deleted the paolino/ADP-3198/compute-primitive-block branch November 14, 2023 08:47
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.

3 participants