Skip to content

Conversation

@benesjan
Copy link
Contributor

@benesjan benesjan commented Dec 19, 2025

Fixes https://linear.app/aztec-labs/issue/F-229/improve-log-sync-performance

The return type of getLogsByTags did not contain block timestamp which lead to the new log sync algo being inefficient - we needed to perform a lot of calls to getBlockHeaderByHash endpoint to get the timestamp.

In this PR I include the timestamp in the return value.

This is one of 3 PRs in which I clean up the getLogsByTags endpoint:

  1. This is the first PR - including block timestamp,
  2. in the followup PR I will type the tag arg of the function to be SiloedTag,
  3. in the last PR I will drop pagination from this endpoint.

Re point 3 - pagination here doesn't really make sense because we get more logs per tag only if there are multiple devices sending logs from a given sender to a recipient.

@benesjan benesjan force-pushed the 12-15-refactor_more_robust_tagging_index_sync_as_recipient branch from 1b335df to fc54bb0 Compare December 19, 2025 16:58
@benesjan benesjan force-pushed the 12-19-feat_optimizing_aztecnode_getlogsbytags_for_new_log_sync_algo branch from bb40316 to fb60766 Compare December 19, 2025 16:58
@benesjan benesjan marked this pull request as ready for review December 19, 2025 17:03
@benesjan benesjan changed the title feat: optimizing AztecNode::getLogsByTags for new log sync algo feat!: optimizing AztecNode::getLogsByTags for new log sync algo Dec 19, 2025
@benesjan benesjan marked this pull request as draft December 19, 2025 18:16
@benesjan benesjan force-pushed the 12-15-refactor_more_robust_tagging_index_sync_as_recipient branch from fc54bb0 to 32cf7bd Compare December 19, 2025 18:17
@benesjan benesjan force-pushed the 12-19-feat_optimizing_aztecnode_getlogsbytags_for_new_log_sync_algo branch from fb60766 to 02dee1d Compare December 19, 2025 18:17
@benesjan benesjan added the ci-no-fail-fast Sets NO_FAIL_FAST in the CI so the run is not aborted on the first failure label Dec 19, 2025
@benesjan benesjan marked this pull request as ready for review December 19, 2025 18:48
@benesjan benesjan changed the title feat!: optimizing AztecNode::getLogsByTags for new log sync algo refactor!: optimizing AztecNode::getLogsByTags for new log sync algo Dec 19, 2025
@benesjan benesjan changed the base branch from 12-15-refactor_more_robust_tagging_index_sync_as_recipient to graphite-base/19157 December 22, 2025 15:12
@benesjan benesjan force-pushed the 12-19-feat_optimizing_aztecnode_getlogsbytags_for_new_log_sync_algo branch from 528b8ae to 46d83bc Compare December 22, 2025 17:39
@benesjan benesjan force-pushed the graphite-base/19157 branch from 32cf7bd to df8f815 Compare December 22, 2025 17:39
@benesjan benesjan changed the base branch from graphite-base/19157 to next December 22, 2025 17:39
@benesjan benesjan added ci-squash-and-merge and removed ci-no-fail-fast Sets NO_FAIL_FAST in the CI so the run is not aborted on the first failure labels Dec 22, 2025
@benesjan benesjan enabled auto-merge December 22, 2025 17:46
Fixes https://linear.app/aztec-labs/issue/F-229/improve-log-sync-performance

The return type of `getLogsByTags` did not contain block timestamp which lead to the new log sync algo being inefficient - we needed to perform a lot of calls to `getBlockHeaderByHash` endpoint to get the timestamp.

In this PR I include the timestamp in the return value.

This is one of 3 PRs in which I clean up the `getLogsByTags` endpoint:
1. This is the first PR - including block timestamp,
2. in the followup PR I will type the tag arg of the function to be `SiloedTag`,
3. in the last PR I will drop pagination from this endpoint.

Re point 3 - pagination here doesn't really make sense because we get more logs per tag only if there are multiple devices sending logs from a given sender to a recipient.
@AztecBot AztecBot force-pushed the 12-19-feat_optimizing_aztecnode_getlogsbytags_for_new_log_sync_algo branch from 46d83bc to 3e97c2f Compare December 22, 2025 18:02
@benesjan benesjan added this pull request to the merge queue Dec 22, 2025
@AztecBot
Copy link
Collaborator

AztecBot commented Dec 22, 2025

Flakey Tests

🤖 says: This CI run detected 1 tests that failed, but were tolerated due to a .test_patterns.yml entry.

\033FLAKED\033 (\0338;;http://ci.aztec-labs.com/d5a353e7bc335c2e�d5a353e7bc335c2e8;;�\033): yarn-project/scripts/run_test.sh p2p/src/client/test/p2p_client.integration_status_handshake.test.ts (41s) (code: 1) group:e2e-p2p-epoch-flakes (\033Jan Beneš\033: refactor!: optimizing `AztecNode::getLogsByTags` for new log sync algo (#19157))

Merged via the queue into next with commit 19b00c9 Dec 22, 2025
17 checks passed
@benesjan benesjan deleted the 12-19-feat_optimizing_aztecnode_getlogsbytags_for_new_log_sync_algo branch December 22, 2025 18:36
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