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 tables if needed when pushing diffs in V2 #1360

Merged
merged 16 commits into from
Jan 28, 2025

Conversation

jasagredo
Copy link
Contributor

The new function upgradeTables (local to the V2 implementation) will be used when pushing diffs, giving it the current tip and the new tip with diffs (as returned by the ledger rules). If can then choose to eject all txouts to the new tip index (performing translations) then reinjecting them. This should only be called when we are crossing an era boundary.

@jasagredo jasagredo force-pushed the utxo-hd-txout-fwd-3 branch from 5f97360 to 88b224f Compare January 17, 2025 12:01
Copy link
Contributor

@jorisdral jorisdral left a comment

Choose a reason for hiding this comment

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

Looks okay!

@jasagredo jasagredo force-pushed the utxo-hd-txout-fwd-3 branch 3 times, most recently from 979cb35 to 2c05cff Compare January 20, 2025 11:42
@jasagredo jasagredo force-pushed the utxo-hd-txout-fwd-3 branch 2 times, most recently from a2a612a to 688cedb Compare January 21, 2025 08:36
@jasagredo jasagredo self-assigned this Jan 21, 2025
@jasagredo jasagredo force-pushed the utxo-hd-txout-fwd-3 branch from 688cedb to 01ae39f Compare January 21, 2025 13:49
@jasagredo jasagredo force-pushed the utxo-hd-txout-fwd-3 branch from 01ae39f to cf9b5e4 Compare January 21, 2025 13:58
@jasagredo jasagredo force-pushed the utxo-hd-txout-fwd-3 branch from cf9b5e4 to bf50989 Compare January 22, 2025 08:33
jasagredo and others added 6 commits January 23, 2025 11:26
* Keep the `BackingStore` unaware of ledger tables, so use `keys values diffs`
  but not `l` as a type parameter. Introduced a new type family `ExtraState`
  instead (which should be given a better name).
* Pass in `lastFlushedLedgerState` into `bsWrite` instead of storing the `l
  EmptyMK` in the backing store
@jasagredo jasagredo force-pushed the utxo-hd-txout-fwd-3 branch from 445d7ee to ba1fb1f Compare January 27, 2025 09:16
@jasagredo jasagredo merged commit f7359ad into utxo-hd-main Jan 28, 2025
4 of 5 checks passed
@jasagredo jasagredo deleted the utxo-hd-txout-fwd-3 branch January 28, 2025 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

2 participants