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

dcrpg: add "tree" to apitypes.Tx type #1946

Merged
merged 2 commits into from Dec 27, 2022
Merged

Conversation

ukane-philemon
Copy link
Contributor

This returns a tx's tree as part of the apitypes.Tx type which is used as the return value for the api/tx/{txid} endpoint. Closes #1797

api/types/apitypes.go Outdated Show resolved Hide resolved
db/dcrpg/pgblockchain.go Show resolved Hide resolved
db/dcrpg/pgblockchain.go Outdated Show resolved Hide resolved
return nil
}

treasuryActive := true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the future, the intent should be documented. // default for mempool transactions

@chappjc chappjc merged commit 6d2bea9 into decred:master Dec 27, 2022
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.

return tree with /api/tx endpoint
2 participants