-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dev mode for indexer as well #99
Comments
Ran into issues related to this today as well. +1 for this feature. |
+1 |
More context here. The Reach Algorand dev container has some patches they apply to get this kind of experience and on an automated test I wrote it went from The only problem is the reach sandbox doesn't expose Kmd so I can't automate getting the default wallet (although I can hardcode the address they encoded so there is a workaround for that) and is on an old version of Algorand sandbox so I can't use it since it doesn't have the latest features and my smart contract doesn't work :( |
@robdmoore Do you mind linking to this Reach Algorand dev container patches. I am wondering if it would not be too difficult to port over these patches to the Python/TEAL indexer. I too am having this behavior with |
I can do you one better. We've published images to docker hub with the patch applied, but the latest version of Algorand and exposing Kmd (unlike the Reach container): https://github.com/MakerXStudio/algorand-sandbox-dev |
This should be working in the next release. The off by one error causing this trouble is fixed here: algorand/indexer#920 |
Problem
The
dev
mode for the sandbox is a nice feature that allows for rapid transactions to be made during development and testing. However, the indexer does not keep up with algod in this mode. In fact, it takes longer for the indexer to recognize new transactions and add them to the index, than it does in "normal" mode for the transaction to confirm and then be added to the index. Because of this we cannot use the dev mode because we need to get data from the indexer as part of our process.Steps to reproduce:
with dev mode:
consecutive calls of
await timeIndexer()
show that the indexer only checks for new transactions every minute, and therefore cause delays in tests by up to one minute, making dev mode unusable with indexer based thingswith standard sandbox:
Solution
Have dev mode algod ping the indexer somehow to try to get new transactions whenever a block is created.
Or at minimum reduce the dev mode indexer to check for transactions more often (every few seconds or so)
Dependencies
Urgency
The dev mode is unusable for us (and I'm sure many other groups as well) without rapid indexing.
The text was updated successfully, but these errors were encountered: