Closed ra0x3 closed 1 year ago
@ra0x3, I'll add the option.
Meanwhile, this might be useful to you: the sequential blocks requirement does not mean that blocks must start at 1—the indexer's start block is configurable, after all. If you're starting QA tests in some block range, let's say 1-10,000, then you can restart the indexer at a different range, say 100,000-110,000, provided that you remove the prior data and there's no gap. If you remove the indexer and its data between the runs, the trigger should not fire.
I hope this helps!
@lostman
--replace-indexer
bit no?
--replace-indexer
bit on a live service with previously indexed data@ra0x3, replacing the indexer is not an issue because the new indexer resumes where the replaced indexer left off. So there is no gap. However, a user could change the start block in the manifest to be farther than the currently indexed blocks and then attempt to replace the indexer, which would fail. In such a case the user would need to remove the old indexer and then deploy the new one (and I think that's correct since it would be odd for an indexer with some start block X to have indexed blocks before X).
In any case, I'm working on adding this feature.
--nonsequential-blocks
to the service (which is by default set tofalse
) which will not enforce the sequential blocks error