Closed pravin-d closed 1 year ago
The reason for the crash is that the storage that we get while fetching a transaction is different from storage that we get when fetching origination. Please check the following links Transaction Link Origination Link
Hey, @pravin-d, and sorry for the late reply. I was not sure what we should do with this one, keeping in mind current limitations.
Initial warmup taking so long is DipDup fetching originated contracts' addresses when using the source
field. This filter implies being used within index factories to call ctx.add_index
inside the origination callback. Child indexes then match their originations by the originated_contract
filter. So, until indexing for contract families is not implemented, the only way to do what you're trying to achieve is to use index factories.
Codegen should fail early on such configurations; leaving this open.
Similar to transactions, DipDup should also allow untyped originations in patterns if none of the originated_contract
or similar_to
fields are present.
source
has not to be used to codegen origination storage, as it is incorrect.
Steps to reproduce: Run
dipdup init
with the attached dipdup.yml filecomment out the origination related content in the file. Reason being is that origination operation takes a lot of time.
Run
dipdup run
What did you expect to happen: Should run without any error What actually happened: Results in a crashLog
dipdup.yml
Environment
master
? Yes