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

fix: tx search only returning one tx #1533

Merged
merged 2 commits into from
Nov 18, 2024

Conversation

ninabarbakadze
Copy link
Member

Description

Fixes #1526

@ninabarbakadze ninabarbakadze requested a review from a team as a code owner November 18, 2024 16:16
@ninabarbakadze ninabarbakadze requested review from rootulp and staheri14 and removed request for a team November 18, 2024 16:16
@ninabarbakadze ninabarbakadze marked this pull request as draft November 18, 2024 16:16
require.Len(t, results, 3)

// since two txs were added at height 1 and 2, we should have two unique transactions
Copy link
Member Author

Choose a reason for hiding this comment

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

I added more tests to make sure that transaction searches return unique results and accurate number of transactions included at a specific block height. While this logic is already covered in the unit tests for this file, the existing implementation seems to work correctly in the local repository even without applying the fix.

It was manually tested by me and the NodesGuru team. #1526 (comment)

@ninabarbakadze ninabarbakadze marked this pull request as ready for review November 18, 2024 16:41
Copy link
Member

@evan-forbes evan-forbes left a comment

Choose a reason for hiding this comment

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

great debugging!

@ninabarbakadze ninabarbakadze merged commit fcfaf92 into v0.34.x-celestia Nov 18, 2024
17 checks passed
@ninabarbakadze ninabarbakadze deleted the nina/fix-tx-search branch November 18, 2024 20:06
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.

Inconsistent data between /block and /tx_search endpoints
3 participants