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

Simplify api commits #3423

Merged
merged 2 commits into from
Aug 17, 2020

Conversation

antiochp
Copy link
Member

@antiochp antiochp commented Aug 10, 2020

Related to recent refactoring around support for "commit only" inputs.

This PR simplifies some internal api code, passing a commitment around to specify an unspent output rather than an output identifier.

Wallet passes a commitment only when calling get_unspent so we no longer need to "reverse engineer" output identifiers (both plain and coinbase) internally.

There is no change to the api itself with this PR, the changes are limited to internal implementation.

Copy link
Member

@quentinlesceller quentinlesceller left a comment

Choose a reason for hiding this comment

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

Looking good LGTM.

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