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

Remove recently published transactions as blocks are attached #1908

Merged
merged 1 commit into from
Nov 9, 2020

Conversation

jrick
Copy link
Member

@jrick jrick commented Nov 5, 2020

The map of recently published transactions was being incorrectly
deleted from, by using the block hashes with relevant transactions,
rather than removing the transactions themselves by the tx hash.

While here, move this logic below the database update to prevent any
modification of the in-memory recently-published transactions in case
the update fails.

The map of recently published transactions was being incorrectly
deleted from, by using the block hashes with relevant transactions,
rather than removing the transactions themselves by the tx hash.

While here, move this logic below the database update to prevent any
modification of the in-memory recently-published transactions in case
the update fails.
@jrick jrick merged commit 9d4a496 into decred:master Nov 9, 2020
@jrick jrick deleted the recentlypublished branch November 9, 2020 19: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.

2 participants