Commit 825a10a
committed
graph: Use expect() for required trace fields instead of silent skip
Localized traces from finalized blocks must have block_number and
block_hash. Using ? would silently skip traces missing these fields,
potentially hiding data integrity issues. Use expect() to fail fast.
Also fixes silent truncation on block_number by using try_from().unwrap().1 parent 75ae18a commit 825a10a
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
250 | | - | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
251 | 258 | | |
252 | 259 | | |
253 | 260 | | |
| |||
0 commit comments