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 for txindex/addressindex #1209

Merged
merged 1 commit into from
Nov 14, 2022
Merged

Fix for txindex/addressindex #1209

merged 1 commit into from
Nov 14, 2022

Conversation

psolstice
Copy link
Contributor

PR intention

Fix wrong result of getaddressbalance RPC call

Code changes brief

During startup last three blocks are typically disconnected to test the data integrity. This is mock disconnection meaning there are no real changes made to the blockchain state. But the addressindex code was incorrectly removing information about transactions in pseudo-disconnected blocks from the database. This is fixed by this PR.

@lgtm-com
Copy link

lgtm-com bot commented Nov 12, 2022

This pull request introduces 2 alerts when merging 8d492fa into ad07bf8 - view on LGTM.com

new alerts:

  • 2 for Unused static function

@reubenyap reubenyap merged commit 70a3765 into master Nov 14, 2022
@justanwar justanwar deleted the index-fix branch November 15, 2022 13:43
levonpetrosyan93 pushed a commit that referenced this pull request May 17, 2023
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.

3 participants