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
Transaction input account annotations not always set properly #668
Comments
The problem is that the tx annotating process uses the |
Actually, maybe we don't even need the change flag. |
Ah okay. I'm guessing this actually does more than just cause an incorrect |
yeah, the entire account annotation is omitted |
We are targeting a fix for 1.1.x, right? But not super high priority? |
@jbowens I think we can deprioritize relative to our immediate bugfix push, but since this is an API bug it would be good to retire it as soon as we get the headroom. |
This is a short-term fix for #668 within the 1.1.x release branch. In the future, we should use `account_utxos` to annotate inputs & outputs instead.
Fixed on |
Delete spent account outputs in a separate block processor from the indexing block processor. This is a prerequisite to removing the `query` processor's dependency on the `account_control_programs` table. For #668. The new ordering of block processor dependencies: ``` account <----+ + delete expired CPs | | | tx annotator <----+ | | asset <------+ + delete spent outputs ```
Delete spent account outputs in a separate block processor from the indexing block processor. This is a prerequisite to removing the `query` processor's dependency on the `account_control_programs` table. For #668. The new ordering of block processor dependencies: ``` account <----+ + delete expired CPs | | | tx annotator <----+ | | asset <------+ + delete spent outputs ```
Delete spent account outputs in a separate block processor from the indexing block processor. This is a prerequisite to removing the `query` processor's dependency on the `account_control_programs` table. For #668. The new ordering of block processor dependencies: ``` account <----+ + delete expired CPs | | | tx annotator <----+ | | asset <------+ + delete spent outputs ```
Delete spent account outputs in a separate block processor from the indexing block processor. This is a prerequisite to removing the `query` processor's dependency on the `account_control_programs` table. For #668. The new ordering of block processor dependencies: (account, asset) <- query <- (expire ACPs, delete spent outputs) Closes #693
Correctly annotate spend inputs with account data. When annotating inputs, determine the source account by looking up the spent output in `account_utxos` instead of looking up the control program in `account_control_programs`. The control program isn't guaranteed to still exist once it's expired. In a follow up, we should change the output annotating to use `account_utxos` as well. We'll need to add the `change` flag to the `account_utxos` table. Fixes #668.
Correctly annotate spend inputs with account data. When annotating inputs, determine the source account by looking up the spent output in `account_utxos` instead of looking up the control program in `account_control_programs`. The control program isn't guaranteed to still exist once it's expired. In a follow up, we should change the output annotating to use `account_utxos` as well. We'll need to add the `change` flag to the `account_utxos` table. Fixes #668.
Correctly annotate spend inputs with account data. When annotating inputs, determine the source account by looking up the spent output in `account_utxos` instead of looking up the control program in `account_control_programs`. The control program isn't guaranteed to still exist once it's expired. In a follow up, we should change the output annotating to use `account_utxos` as well. We'll need to add the `change` flag to the `account_utxos` table. Fixes #668.
Correctly annotate spend inputs with account data. When annotating inputs, determine the source account by looking up the spent output in `account_utxos` instead of looking up the control program in `account_control_programs`. The control program isn't guaranteed to still exist once it's expired. In a follow up, we should change the output annotating to use `account_utxos` as well. We'll need to add the `change` flag to the `account_utxos` table. Fix #668. Closes #696
UPDATE: This affects the following input annotations:
@chrisgarvin originally reported an issue where the API was erroneously returning"is_local": "no"
for transaction inputs that are local to the core. #612 was an attempt to address this issue, but it appears to be ongoing. We're now trying to create a reliable repro case.The text was updated successfully, but these errors were encountered: