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

fix(wallet): select only basic utxos when building a transaction #4178

Merged
merged 11 commits into from
Jun 9, 2022

Conversation

mrnaveira
Copy link
Contributor

@mrnaveira mrnaveira commented Jun 9, 2022

Description

  • Added a new filter when selecting unspent outputs on the wallet db level, to filter by the desired output tags
  • Updated the integration test for the contract constitution, to first publish a contract definition

Motivation and Context

When selecting UTXOs as inputs for a new transaction, we want to only pick those "basic" UTXOs (only coinbase or no tags) to avoid spending "special" (i.e. DAN layer) outputs.

How Has This Been Tested?

The integration tests for contract definition + contract constitution do pass when publishing both transactions in the same test

@aviator-app aviator-app bot merged commit 42269ae into tari-project:development Jun 9, 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.

2 participants