Skip to content

Add support for retrieving newer txs only - #216

Draft
everoddandeven wants to merge 1 commit into
vtnerd:developfrom
everoddandeven:v2/get-address-txs
Draft

everoddandeven wants to merge 1 commit into
vtnerd:developfrom
everoddandeven:v2/get-address-txs

Conversation

@everoddandeven

Copy link
Copy Markdown
Contributor

No description provided.

@vtnerd

vtnerd commented Dec 13, 2025 •

Copy link
Copy Markdown
Owner

I realized this is a work-in-progress, but the database change isn't going to work unless there is migration code to handle it. The existing migration examples aren't going to work either, as those only work with appending values to structs, whereas this inserts data into the middle of structs.

Comment thread src/db/data.h
crypto::hash tx_hash; //!< Hash of the transaction
block_id height; //!< Block height containing transaction
crypto::hash tx_hash; //!< Hash of the transaction
crypto::hash block_hash; //!< Hash of the block

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Another quick review - this shouldn't be needed as the db already stores hashes. If the hash is before a checkpoint, and therefore not stored, then reorg protection isn't needed ...

This branch has not been deployed

No deployments
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.

2 participants