archethic-foundation / archethic-foundation/archethic-node

Remove old TransactionInputs view

Open
#1,637 0 comments 0 reactions 0 assignees View on GitHub
API DB enhancements to-analyze
Dominant language
Elixir
Stars
82
Forks
24
PR merge metrics
No merged PRs in 30d

Description

### Is your feature request related to a problem?

Since AEIP21 the transaction inputs stored for each transaction makes no sens as they are now not received by the transaction but by the genesis address.
They are still existing for retro compatibility in graphql queries and are used by explorer to display the available inputs for a transaction.

### Describe the solution you'd like

We should deprecate the transaction inputs query since application should adapt to the new AEIP21 way off getting inputs history.
And explorer may be presented differently to show related transaction details.

### Additional context

This would free a lot of DB space on storage nodes and will reduce self repair / validation network traffic

For old transactions, to not lose traceability we could move the transaction inputs in the consumed inputs list even if it was not created in the validation stamp at this time

### Epic

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by tracing the TransactionInputs GraphQL query through node storage and its explorer usage, then inspect how consumed inputs and validation stamps represent old transactions. Done requires an agreed migration and deprecation plan that removes the legacy view without losing traceability, with the explorer adapted to the AEIP21 input-history model.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir, graphql
Domain
api, blockchain, databases
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.