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

multi: Add FetchUtxoEntry to mining Config. #2709

Merged
merged 1 commit into from Aug 26, 2021

Conversation

rstaudt2
Copy link
Member

This adds a FetchUtxoEntry method to the mining Config. This allows the template generation logic to fetch unspent transaction outputs from the point of view of the main chain tip. This has not been necessary in the past since typically, the mining code uses FetchUtxoView to construct a viewpoint for transactions that it includes in a block template. However, with the automatic ticket revocations agenda, the template generation code will need to create new revocation transactions, which will require fetching utxos for the input tickets.

internal/mining/mining.go Outdated Show resolved Hide resolved
This adds a FetchUtxoEntry method to the mining Config.  This allows the
template generation logic to fetch unspent transaction outputs from the
point of view of the main chain tip.  This has not been necessary in the
past since typically, the mining code uses FetchUtxoView to construct a
viewpoint for transactions that it includes in a block template.
However, with the automatic ticket revocations agenda, the template
generation code will need to create new revocation transactions, which
will require fetching utxos for the input tickets.
@davecgh davecgh merged commit 00830fa into decred:master Aug 26, 2021
@rstaudt2 rstaudt2 deleted the mining-add-fetch-utxo-entry branch October 28, 2021 21:57
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

4 participants