FuelLabs / fuel-indexer

*Archived* 🗃 The Fuel indexer is a standalone service that can be used to index various components of the Fuel blockchain.
140 stars 67 forks source link

fix: move `client.chain_info()` call outside of loop #1289

Closed deekerno closed 1 year ago

deekerno commented 1 year ago

Description

client.chain_info() is used to get the necessary chain information to identify a transaction. When doing the beta-4 upgrade, I didn't realize that I could have placed the method call outside of the loop. This ensures that the call only happens once instead of every transaction.

Testing steps

CI should pass.

Manual testing

There should be a significant speed up in block retrieval and processing in comparison to develop.