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

mempool: Store transaction descs in pools. #3015

Merged
merged 1 commit into from Nov 14, 2022

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Nov 11, 2022

Currently, several places that interact with the maps that house the raw transactions and staged transactions need access to the additional description data for the transaction in addition to the transaction itself. This involves an additional lookup and the need to pass around the map that houses that associated description data to perform the lookup.

In order to avoid that additional lookup, passing around the associated map, and to simplify the code, this modifies those maps to store the overall transaction descriptions directly instead of the raw transactions and updates the various consumers accordingly.

@davecgh davecgh added this to the 1.8.0 milestone Nov 11, 2022
Currently, several places that interact with the maps that house the raw
transactions and staged transactions need access to the additional
description data for the transaction in addition to the transaction
itself.  This involves an additional lookup and the need to pass around
the map that houses that associated description data to perform the
lookup.

In order to avoid that additional lookup, passing around the associated
map, and to simplify the code, this modifies those maps to store the
overall transaction descriptions directly instead of the raw
transactions and updates the various consumers accordingly.
@davecgh davecgh merged commit ab226e0 into decred:master Nov 14, 2022
@davecgh davecgh deleted the mempool_store_txdesc branch November 14, 2022 15:05
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.

None yet

3 participants