Skip to content

Conversation

@ValuedMammal
Copy link
Collaborator

Before, reading the tx_graph::ChangeSet might have failed or returned incorrect data by attempting to decode a column having a NULL value. This is fixed by introducing a TxRow struct with optional fields and deriving FromRow for it. Note that txid field is currently the only non-nullable column of TxRow. Now we only parse a value and update the tx_graph::ChangeSet if the column actually contains a value.

Before, reading the tx_graph ChangeSet might have failed
or returned incorrect data by attempting to decode a column
having a NULL value. This is fixed by introducing a `TxRow`
struct with optional fields and deriving `FromRow` for it.
The `txid` field is currently the only non-nullable column.
Now we only parse a value and update the tx_graph ChangeSet
if the column actually contains a value.
@ValuedMammal ValuedMammal merged commit 4a393b5 into bitcoindevkit:master Jan 1, 2026
3 checks passed
@ValuedMammal ValuedMammal deleted the fix/tx_from_row branch January 1, 2026 17:43
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.

1 participant