-
Notifications
You must be signed in to change notification settings - Fork 1
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
[WIP] Tree Transaction Backfiller #114
Conversation
// TODO: assuming tree update available on all transactions but need to confirm. | ||
if let Some(tree_update) = &parsing_result.tree_update { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think decompress will not have tree_update
as that decompress
doesn't change the Merkle tree. It just creates a token and Token Metadata accounts based on a voucher PDA of a leaf that was previously removed from a tree (via redeem
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok what information changes in the index in this case? Its an instruction only change correct? Nothing in account updates causes the same phase shift.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah maybe decompress doesn't truly need to be backfilled, or perhaps even indexed at all. It looks like everything set in decompress
indexing is also set by token-metadata account-based indexing.
…fetch all trees, fetch associated transactions
… record for fast forwarding tree transaction crawling
…le messenger. mark tree transactons as processed_at so know it completed the index loop.
448479e
to
c311b11
Compare
…t include changes needed by the backfiller.
…pool and sea_orm adapter.
* refactor(backfiller): tree backfilling using getSignaturesForAdress. fetch all trees, fetch associated transactions * feat(backfiller): generate table and model for query last transaction record for fast forwarding tree transaction crawling * feat(backfiller): push transaction payloads to redis through the perkle messenger. mark tree transactons as processed_at so know it completed the index loop. * fix(backfiller): git history changes made from running formatter. just include changes needed by the backfiller. * fix(backfiller): support mock feature for sea-orm by switching to pg pool and sea_orm adapter.
* refactor(backfiller): tree backfilling using getSignaturesForAdress. fetch all trees, fetch associated transactions * feat(backfiller): generate table and model for query last transaction record for fast forwarding tree transaction crawling * feat(backfiller): push transaction payloads to redis through the perkle messenger. mark tree transactons as processed_at so know it completed the index loop. * fix(backfiller): git history changes made from running formatter. just include changes needed by the backfiller. * fix(backfiller): support mock feature for sea-orm by switching to pg pool and sea_orm adapter.
resolves metaplex-foundation#150
Tasks
tree_transaction
records to db