Skip to content

refactor(spdk): replace spend_status with spend_info#292

Closed
cygnet3 wants to merge 1 commit intodevfrom
replace_spend_status_info
Closed

refactor(spdk): replace spend_status with spend_info#292
cygnet3 wants to merge 1 commit intodevfrom
replace_spend_status_info

Conversation

@cygnet3
Copy link
Owner

@cygnet3 cygnet3 commented Feb 12, 2026

Replace spend_status with spend_info on the spdk side. This old approach dropped the spend_txid when the spend_status switched from 'spent' to 'mined'.

Note: this PR does not solve the above issue, it only adds support for a new struct type spend_info which technically allow for more data.

@cygnet3
Copy link
Owner Author

cygnet3 commented Feb 12, 2026

note: not yet tested

@cygnet3 cygnet3 force-pushed the replace_spend_status_info branch 3 times, most recently from 9f43f7e to d0d2c53 Compare February 12, 2026 19:56
@cygnet3
Copy link
Owner Author

cygnet3 commented Feb 12, 2026

While testing this I noticed that we are inconsistent with how we currently store data for the Spent and Mined types. The SpendStatus is using consensus-encoding rather than the encoding we use in other places (which uses to more common encoding). This PR makes the encoding consistent with the other encodings, but maybe we don't want to do this now, and instead switch the encoding once we move the data from flutter storage to sqlite.

@Sosthene00
Copy link
Collaborator

Just for the record, this is a subset of the changes in the #272 branch

@cygnet3 cygnet3 force-pushed the replace_spend_status_info branch from d0d2c53 to d8ef30f Compare February 18, 2026 00:04
@Sosthene00 Sosthene00 changed the base branch from dev to master February 18, 2026 10:39
@Sosthene00 Sosthene00 changed the base branch from master to dev February 18, 2026 11:07
@Sosthene00 Sosthene00 force-pushed the replace_spend_status_info branch 2 times, most recently from 71d67d9 to 18a922b Compare February 23, 2026 10:33
Replace spend_status with spend_info on the spdk side. This old approach
dropped the spend_txid when the spend_status switched from 'spent' to
'mined'.

Note: this PR does not solve the above issue, it only adds support for a
new struct type spend_info which technically allow for more data.
@Sosthene00 Sosthene00 force-pushed the replace_spend_status_info branch from 18a922b to 5bfbf07 Compare February 23, 2026 15:45
@Sosthene00
Copy link
Collaborator

This has been superseded by #310

@Sosthene00 Sosthene00 closed this Feb 27, 2026
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