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

feat_: disable prior tx history fetching for all accounts #5786

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

dlipicar
Copy link
Contributor

@dlipicar dlipicar commented Aug 29, 2024

This PR disables fetching of past transactions (prior to the addition of the account to Status) for all accounts. This used to be done only for newly-generated accounts, now it includes imported ones as well.
A related setting is removed as well.

This doesn't affect fetching transactions triggered from Status, since those are handled by the TransactionWatcher.

Also, external transactions are still fetched for blocks post account addition. This is just a quick win to reduce RPC calls by not adding the block range 0-CurrentBlock when we add the account.
image

@status-im-auto
Copy link
Member

status-im-auto commented Aug 29, 2024

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ b43bacc #1 2024-08-29 19:05:31 ~2 min tests-rpc 📄log
✔️ b43bacc #1 2024-08-29 19:07:00 ~4 min linux 📦zip
✔️ b43bacc #1 2024-08-29 19:08:03 ~5 min ios 📦zip
✔️ b43bacc #1 2024-08-29 19:08:14 ~5 min android 📦aar
✔️ 8ae4322 #2 2024-08-29 19:43:52 ~2 min android 📦aar
✔️ 8ae4322 #2 2024-08-29 19:44:00 ~2 min linux 📦zip
✔️ 8ae4322 #2 2024-08-29 19:44:06 ~2 min tests-rpc 📄log
✔️ 8ae4322 #2 2024-08-29 19:45:01 ~3 min ios 📦zip
✔️ 8ae4322 #2 2024-08-29 20:14:05 ~32 min tests 📄log

@status-im-auto
Copy link
Member

✔️ status-go/prs/tests/PR-5786#1 🔹 ~34 min 🔹 b43bacc 🔹 📦 tests package

@dlipicar dlipicar force-pushed the feat/disable-tx-history-fetch-for-all-accounts branch from b43bacc to 8ae4322 Compare August 29, 2024 19:41
@dlipicar dlipicar requested review from alaibe and saledjenic August 29, 2024 19:46
@dlipicar dlipicar changed the title feat_: disable tx history fetching for all accounts feat_: disable prior tx history fetching for all accounts Aug 29, 2024
}
}

const omitHistory = true
Copy link
Contributor Author

Choose a reason for hiding this comment

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

mainly relevant part

Copy link
Contributor Author

Choose a reason for hiding this comment

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

also, constant kept for meaning, this will go away with future cleanups

@dlipicar dlipicar requested a review from friofry August 29, 2024 19:50
@dlipicar dlipicar marked this pull request as ready for review August 29, 2024 19:55
@dlipicar dlipicar requested a review from a team August 30, 2024 17:32
@dlipicar dlipicar merged commit 970119a into develop Sep 2, 2024
11 checks passed
@dlipicar dlipicar deleted the feat/disable-tx-history-fetch-for-all-accounts branch September 2, 2024 12:25
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.

5 participants