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

feat(wallet): adds contract_id to outputs db #4222

Merged

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Jun 22, 2022

Description

  • adds contract_id to outputs table in wallet db
  • renames flags to output_type in wallet db

Motivation and Context

There are various use cases that will require to select outputs by contract_id.
The outputs table now exceeds 32 columns, so the 64-column-table diesel feature needed to be added.

How Has This Been Tested?

Manually, contract id is populated

@sdbondi sdbondi force-pushed the wallet-add-contract-id-column branch from 39a0b1c to cff32e1 Compare June 22, 2022 15:51
@@ -37,7 +37,7 @@ chrono = { version = "0.4.19", default-features = false, features = ["serde"] }
clear_on_drop = "=0.2.4"
crossbeam-channel = "0.5.4"
derivative = "2.2.0"
diesel = { version = "1.4.8", features = ["sqlite", "serde_json", "chrono"] }
diesel = { version = "1.4.8", features = ["sqlite", "serde_json", "chrono", "64-column-tables"] }
Copy link
Collaborator

Choose a reason for hiding this comment

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

This usually increases compile time by a large amount. Can we drop a column maybe to fit into 32?

Copy link
Collaborator

Choose a reason for hiding this comment

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

The CI didn't seem to take too long, so maybe not so bad

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah we can drop parent_pk and/or unique_id later and remove this feature.

@aviator-app aviator-app bot merged commit 6f331f8 into tari-project:development Jun 23, 2022
@sdbondi sdbondi deleted the wallet-add-contract-id-column branch June 23, 2022 09:10
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