Commit 4ed40a7
committed
fix: log slash amounts as strings
Fixes [A-478](https://linear.app/aztec-labs/issue/A-478/investigate-wrong-slashing-amounts)
GKE was clamping the numbers when logging to 64-bit, hence the number `9223372036854776000` being logged (which is approximately `2^63`).
Converting those number to strings but maybe should look into a utility in `pino-logger.ts`
Added follow-up: https://linear.app/aztec-labs/issue/A-495/handle-bigints-in-pino-logger1 parent 1a0fb2f commit 4ed40a7
File tree
2 files changed
+15
-3
lines changed- yarn-project/slasher/src
2 files changed
+15
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
89 | 93 | | |
90 | 94 | | |
91 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
284 | 288 | | |
285 | | - | |
| 289 | + | |
286 | 290 | | |
287 | 291 | | |
288 | 292 | | |
| |||
348 | 352 | | |
349 | 353 | | |
350 | 354 | | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
351 | 359 | | |
352 | 360 | | |
353 | 361 | | |
354 | 362 | | |
355 | | - | |
| 363 | + | |
356 | 364 | | |
357 | 365 | | |
358 | 366 | | |
| |||
0 commit comments