Commit f8ae20c
authored
fix: pindexer: don't index candles with NaN (#5251)
## Describe your changes
This skips indexing candles with a price of NaN, at the source where we
ingest point candles, representing a single trace input and output
value. For some reason, the dex sometimes produces candles with 0 input
and 0 output volume, resulting in a NaN, which then pollutes and
corrupts other data. This fix addresses the source of the pollution in
indexing.
We should investigate why these traces are being emitted.
To test, run pindexer again, observe that NaNs are out of the candles.
## Checklist before requesting a review
- [x] I have added guiding text to explain how a reviewer should test
these changes.
- [x] If this code contains consensus-breaking changes, I have added the
"consensus-breaking" label. Otherwise, I declare my belief that there
are not consensus-breaking changes, for the following reason:
> Indexing only.1 parent 0562170 commit f8ae20c
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
747 | 747 | | |
748 | 748 | | |
749 | 749 | | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
750 | 754 | | |
751 | 755 | | |
752 | 756 | | |
| |||
1492 | 1496 | | |
1493 | 1497 | | |
1494 | 1498 | | |
1495 | | - | |
| 1499 | + | |
1496 | 1500 | | |
1497 | 1501 | | |
1498 | 1502 | | |
| |||
0 commit comments