Unable to index starting from block 4000000 #1497
-
IssueThanks for opening an issue on the Fuel Indexer project. *If you're an internal FuelLabs contributor, please feel free to remove this template when creating issues, as this template is meant for external users and contributors. Prerequisites
Description
Steps to ReproducePlease list the steps required to reproduce your issue in detail.
Expected behavior: Able to index from any block Actual behavior: Can only index from blocks less than 4000000 VersionsPlease list what version of indexer components you're using. Latest is currently .
The staging branch should have everything you will need |
Beta Was this translation helpful? Give feedback.
Replies: 27 comments
-
@Walter-Phillips What network are you on? And just to be sure, you can't start indexing at blocks greater than 4,000,000, but you're still able to index blocks greater than that, right? |
Beta Was this translation helpful? Give feedback.
-
Hey @deekerno we're on beta-4. I haven't let the indexer run long enough to get to blocks past 4,000,000 from block 1, so I'm not sure. |
Beta Was this translation helpful? Give feedback.
-
Can you start indexing from a number lower than 4,000,000 but still close to it (e.g. 3.9M, 3.5M, etc.) and see if it indexes past that point? |
Beta Was this translation helpful? Give feedback.
-
@deekerno, doing that now and will let you know how it goes.🫡 |
Beta Was this translation helpful? Give feedback.
-
@deekerno This is what ended up happening, didn't make it very far. Tried form 3.9 and 3.99. |
Beta Was this translation helpful? Give feedback.
-
I'll take a look at your repo and see if I can replicate the issue. |
Beta Was this translation helpful? Give feedback.
-
Thank you, appreciate it🙏🏾 |
Beta Was this translation helpful? Give feedback.
-
@Walter-Phillips: Oddly enough, I was able to replicate your issue with the
But I do not see the same errors when running a more complex indexer (in this case, that would be our block explorer). That leads me to believe that the indexer module on the |
Beta Was this translation helpful? Give feedback.
-
@deekerno Cool, thank you. I'll remake the indexer that we have from scratch and see what happens |
Beta Was this translation helpful? Give feedback.
-
@deekerno I remade an indexer from the quickstart guide. I incrementally made changes and it failed whenever I added an abi. I've tried two abis but they are both ones from projects I've built. Going to try it with something from Sway applications. Could it be an incompatibility with the version of sway the abi gets made from and the indexer? |
Beta Was this translation helpful? Give feedback.
-
@Walter-Phillips I'll look into the ABI idea today. 👌🏽 |
Beta Was this translation helpful? Give feedback.
-
@Walter-Phillips Can you invite @lostman to your repository as well? That way, you can have the entire indexer team looking into the problem (I'm also up to my neck in revamping our GraphQL functionality 😭). |
Beta Was this translation helpful? Give feedback.
-
@deekerno no problem. Just sent the invite to @lostman. Good luck with the revamp :)). |
Beta Was this translation helpful? Give feedback.
-
@Walter-Phillips How are
It seems that there may be some issue around your strings? |
Beta Was this translation helpful? Give feedback.
-
@deekerno This is the sway struct. Right now in the client, we use the predicate address and convert it to a string. We're calling the uid helper on it in the handler which we no longer need, which could be the problem. I'll drop the uid helper and try indexing again from 4,000,000. I am a bit confused about it trying to decode Market Orders and Post Onlys, we haven't created any on testnet |
Beta Was this translation helpful? Give feedback.
-
Also, how were you able to edit the codegen? |
Beta Was this translation helpful? Give feedback.
-
That's certainly interesting. 🤔 and I'm fairly sure that dropping the UID helper (I'd recommend to use something like the
So it's definitely within code that we wrote; I'm just wondering if there's something special that you guys have done that we should try to replicate. re: editing the codegen -- I just adjusted the above part of the code in the |
Beta Was this translation helpful? Give feedback.
-
@deekerno Tried doing it like that and got the same error, without using the id from our client. There isn't anything special we're doing as far as I know. I also attached examples of us creating the limit order struct in rust and ts, in our tests. |
Beta Was this translation helpful? Give feedback.
-
Yeah, I think it's definitely something on our side. We'll put our proverbial heads together and see what we can find in the next day or so. 👍🏽 |
Beta Was this translation helpful? Give feedback.
-
Thank you. I know you guys are busy so I really appreciate it. Let me know if you need anything from me. |
Beta Was this translation helpful? Give feedback.
-
@Walter-Phillips Could you share the link to your repo btw? (I know you invited us to the repo, but I don't remember the link) |
Beta Was this translation helpful? Give feedback.
-
@ra0x3 https://github.com/Sail-Exchange/Sail-Core |
Beta Was this translation helpful? Give feedback.
-
@Walter-Phillips I noticed that your contracts are using |
Beta Was this translation helpful? Give feedback.
-
@deekerno I'll look into that and see if it helps, would explain why it's an issue even for types we haven't logged to testnet yet |
Beta Was this translation helpful? Give feedback.
-
@deekerno updated to 0.46 and had the same error. I am still using string arrays for the IDs, should I be using string slices? |
Beta Was this translation helpful? Give feedback.
-
@deekerno Where are we on this? @Walter-Phillips Did you ever get this figured out? |
Beta Was this translation helpful? Give feedback.
-
@ra0x3 I was able to fix this by changing how we were handling logs in our contracts and updating everything to newer versions. @deekerno Thanks for the help. |
Beta Was this translation helpful? Give feedback.
@ra0x3 I was able to fix this by changing how we were handling logs in our contracts and updating everything to newer versions. @deekerno Thanks for the help.