Draft
Conversation
869f3d6 to
772bf9a
Compare
54b602e to
94ac216
Compare
1035f88 to
6ec73ef
Compare
6ec73ef to
17f6fce
Compare
Hardcode a default `DateTime` for all network, 1st June of 2025 for now.
* `getBlockForHash`: needed to retrieve the timestamp of a block * `getBlockHashForHeight`: retrieve the block hash from its height * `getBlockFromTimestamp`: used to get the height of the closest block from a timestamp
Add `toSeconds()` method to `DateTime` and a `toDate()` method to `int`
Birthday becomes a DateTime (stored as unix timestamp) instead of a block height integer. Includes migration logic for existing wallets that still have a block height stored.
* add a ticker box on Seed Phrase Recovery screen * if ticked open birthday picker * if user does'nt provice a birthday set network default
17f6fce to
766b6b5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The goal of this PR is to use the sqlite database that we added for Contacts to store UTXOs we have in the wallet and transaction history. Both are stored in Storage now, which is cumbersome and will become a problem when users have a lot of transactions and utxos in their wallet.
SpendStatuswithSpendInfoowned_outputsthat mostly copy the rust objectTODO:
TxHistoryto be able to handle upgrade from previous version of Dana that saved data in Storage. Maybe that could be removed at some point in the future.