Skip to content

feat(api): deduplicate transaction while aggregating partition results#16

Merged
biryukovmaxim merged 8 commits into
mainfrom
feat/api-dedupe-tx
Aug 29, 2025
Merged

feat(api): deduplicate transaction while aggregating partition results#16
biryukovmaxim merged 8 commits into
mainfrom
feat/api-dedupe-tx

Conversation

@IzioDev

@IzioDev IzioDev commented Aug 27, 2025

Copy link
Copy Markdown
Contributor

No description provided.

@IzioDev
IzioDev requested a review from biryukovmaxim August 27, 2025 03:39
IzioDev and others added 3 commits August 27, 2025 10:05
- Initialize `seen_tx_ids` with a predefined capacity for better performance.
- Simplify error propagation and result collection in `iter_by_owner_and_scope`.
Comment thread indexer/src/api/v1/handshakes.rs Outdated
Comment on lines +145 to +153
// @QUESTION: is there a better way to differenciate Ok(None) and Err(_) with context?
.with_context(|| {
format!(
"receiver address conversion failed (receiver={:?})",
handshake.receiver
)
})?
.context("Database consistency error: receiver address has EMPTY_VERSION")?
.to_string();

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

need guidance

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

image

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed in fe2957c

Comment thread indexer/src/api/v1/payments.rs
@biryukovmaxim
biryukovmaxim changed the base branch from rework+self-stash to main August 28, 2025 17:11
@biryukovmaxim
biryukovmaxim merged commit 6fd079e into main Aug 29, 2025
1 check passed
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