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-3443] Add roll forward and backward of TxHistory to deposit wallet #4828

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

paolino
Copy link
Collaborator

@paolino paolino commented Nov 1, 2024

  • Add roll forward append operation to TxHistory
  • Enable roll forward of TxHistory in the deposit wallet state operations
  • Enable roll backward of TxHistory in the deposit wallet state operations

ADP-3443

@paolino paolino self-assigned this Nov 1, 2024
@paolino paolino added the Deposit label Nov 1, 2024
@paolino paolino changed the base branch from master to paolino/ADP-3443/use-fingertrees-for-time-operations-on-tx-history November 1, 2024 11:43
@paolino paolino force-pushed the paolino/ADP-3443/use-fingertrees-for-time-operations-on-tx-history branch from 70a7c5b to 2dc09f2 Compare November 1, 2024 11:51
@paolino paolino force-pushed the paolino/ADP-3443/add-rollforward-to-txhistory branch from 73ace9a to 3eea066 Compare November 1, 2024 11:53
Base automatically changed from paolino/ADP-3443/use-fingertrees-for-time-operations-on-tx-history to master November 1, 2024 13:29
@paolino paolino force-pushed the paolino/ADP-3443/add-rollforward-to-txhistory branch from 2d59d5d to 77143ef Compare November 1, 2024 15:12
@paolino paolino changed the title [ADP-3443] Add roll forward for TxHistory to deposit wallet [ADP-3443] Add roll forward and backward for TxHistory to deposit wallet Nov 1, 2024
@paolino paolino changed the title [ADP-3443] Add roll forward and backward for TxHistory to deposit wallet [ADP-3443] Add roll forward and backward of TxHistory to deposit wallet Nov 1, 2024
@paolino paolino marked this pull request as draft November 1, 2024 15:34
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.

First look. 🤓

This looks good, but there are two correctness issues and one request on naming.

  • Could you rename ResolveSlot to LookupTimeFromSlot? I think that the latter name is more descriptive.
  • Could you move the computation of the ValueTransfers for the transactions to Cardano.Wallet.Deposit.Pure.Balance? The expression you wrote is not quite correct, and we need to be careful here — hence isolate it in a separate module, and just pass the data around in the other modules.
  • The rollback of the TxHistory needs to include the block to which it is rolled back. Could you use the name dropAfter instead of before?

@paolino paolino force-pushed the paolino/ADP-3443/add-rollforward-to-txhistory branch from 77143ef to 9942c25 Compare November 1, 2024 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants