-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Currently, during light node synchronization, each transaction input requires a fetch_transaction operation. If a transaction contains a large number of inputs, this can significantly slow down synchronization.
The purpose of fetch_transaction is to retrieve input details when get_transaction is called. However, it now seems unnecessary because:
- We already filter out inputs not belonging to the wallet, so only wallet-related inputs are stored in the database.
- If an input belongs to the wallet, the transaction that created its output cell should have been synchronized earlier.
Thus,fetch_transactionwould only fetch transactions irrelevant to the wallet.
While this reasoning holds in theory, actual code review and testing are still needed to verify whether other issues exist.
Reactions are currently unavailable
Metadata
Metadata
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
🏗 In Progress