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

[bug][storage] Fix FindTransaction Regression #280

Merged
merged 2 commits into from
Dec 14, 2020

Conversation

patrick-ogrady
Copy link
Contributor

@patrick-ogrady patrick-ogrady commented Dec 14, 2020

This PR fixes a regression introduced by #269 where FindTransaction returns a pruning-related error when querying for a transaction added in the same DatabaseTransaction. Turns out we never testing FindTransaction in the same way it is called in BroadcastStorage.

Changes

  • reproduce issue with test (ensure we run FindTransaction at least once during AddBlock transaction)
  • fix issue (GetHeadBlock -> GetHeadBlockTransactional)

@patrick-ogrady patrick-ogrady changed the title [bug][storage] FindTransaction regression [bug][storage] Fix FindTransaction Regression Dec 14, 2020
@patrick-ogrady patrick-ogrady merged commit 23200e5 into master Dec 14, 2020
@patrick-ogrady patrick-ogrady deleted the patrick/find-transaction-regression branch December 14, 2020 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants