iotaledger / inx-chronicle

IOTA permanode implemented using the IOTA Node Extension (INX) interface.
Apache License 2.0
14 stars 12 forks source link

fix: race condition for finalized blocks #1389

Closed Alex6323 closed 1 month ago

Alex6323 commented 2 months ago

The problem is that we currently call get_accepted_blocks too early when blocks were "just" confirmed in the node software. I confirmed this by waiting for 2s before making that call, and then Chronicle was able to fetch them as finalized.

Instead of an arbitrary waiting time, this PR relaxes the block-state requirement for Chronicle to "confirmed or finalized".

Alex6323 commented 1 month ago

we found a good solution with #1395