Lauri Ojansivu
7459c5bde6
The History integrity audit streams each board instead of loading it whole.
...
Production log (v13.13): "JavaScript heap out of memory" twice, 42 and
74 seconds after the hourly History integrity audit started (its
changeHistory distinct is in the MongoDB log at 03:00:00 and 05:00:00),
both in the first hourly run of a freshly started process. The audit
fetched each board's whole History - every row with its full previous
and new content - and verified the array.
historyVerifier checks one row at a time and keeps only hashes, the first
child of each predecessor, root counts and small summaries; the audit
streams each board through a cursor with a bounded batch, pausing while
the CPU is busy. verifyHistoryRows runs on it and returns exactly what
it did. tests/historyIntegrityStreaming.test.cjs compares both on chains
with forks, a second root, a tampered and an orphan row, and fails if
the audit fetches a board whole.
Thanks to xet7 !
2026-11-18 22:25:34 +02:00
..
2026-10-14 13:39:18 +03:00
2026-10-14 14:00:21 +03:00
2026-11-18 22:25:34 +02:00
2026-11-18 22:25:34 +02:00
2026-11-15 14:11:10 +03:00
2026-11-18 22:25:34 +02:00
2026-10-25 03:18:15 +03:00
2026-11-16 13:54:08 +02:00
2026-11-16 16:46:06 +02:00
2026-11-11 20:58:01 +02:00
2026-09-28 17:48:00 +03:00
2026-09-28 21:46:56 +03:00
2026-10-11 14:19:00 +03:00
2026-07-28 17:59:17 +03:00
2026-10-17 01:14:16 +03:00
2026-07-28 12:13:03 +03:00
2026-07-22 09:21:21 +03:00
2026-10-20 13:50:10 +03:00
2026-10-23 19:34:34 +03:00
2026-10-14 14:25:19 +03:00
2026-10-16 13:03:34 +03:00
2026-10-14 16:46:15 +03:00
2026-10-31 14:13:40 +02:00
2026-10-08 12:05:59 +03:00
2026-10-14 15:25:36 +03:00
2026-10-31 00:07:58 +02:00
2026-10-14 22:57:15 +03:00
2026-10-14 09:49:42 +03:00
2026-11-11 20:58:01 +02:00
2026-10-27 16:28:12 +02:00
2026-10-02 11:43:37 +03:00
2026-06-06 02:53:58 +03:00
2026-10-20 13:28:17 +03:00
2026-09-11 21:17:33 +03:00
2026-10-16 13:03:34 +03:00
2026-11-18 22:25:34 +02:00
2026-07-13 09:16:32 +03:00
2026-09-11 21:17:33 +03:00
2026-11-02 17:17:58 +02:00
2026-10-16 23:45:35 +03:00
2026-10-14 16:46:29 +03:00
2020-02-13 14:58:19 +02:00
2026-09-10 22:11:01 +03:00
2026-10-07 03:08:48 +03:00
2026-11-16 16:46:06 +02:00
2026-09-10 20:20:35 +03:00
2026-11-04 19:11:32 +02:00
2026-03-22 17:17:48 +02:00
2026-10-16 13:03:34 +03:00
2026-10-30 23:52:09 +02:00
2026-10-14 08:20:49 +03:00
2026-10-08 11:55:42 +03:00
2026-10-19 17:35:51 +03:00
2026-10-12 01:30:07 +03:00
2026-10-16 23:45:35 +03:00
2026-11-18 22:25:34 +02:00
2026-11-18 22:25:34 +02:00
2026-08-16 14:57:18 +03:00
2026-09-29 16:28:44 +03:00
2026-10-16 23:45:35 +03:00
2026-10-14 15:52:07 +03:00
2026-10-14 21:45:34 +03:00
2026-10-14 08:25:25 +03:00
2026-10-31 00:08:20 +02:00
2026-03-21 11:32:56 +02:00
2026-10-14 08:20:49 +03:00
2026-10-08 12:44:46 +03:00
2026-11-08 00:38:40 +02:00
2026-10-13 21:08:09 +03:00
2026-11-02 14:37:12 +02:00
2026-10-14 17:07:35 +03:00
2026-09-10 19:59:02 +03:00
2026-10-23 19:34:34 +03:00
2026-10-08 11:43:32 +03:00
2026-10-15 22:42:14 +03:00
2026-10-14 09:28:45 +03:00
2026-11-02 11:28:44 +02:00
2026-08-16 16:17:13 +03:00
2026-08-04 12:09:37 +03:00
2026-10-08 11:03:50 +03:00
2026-10-23 19:34:34 +03:00
2019-07-18 04:27:03 +03:00
2026-10-05 19:48:48 +03:00
2026-07-30 15:57:58 +03:00
2026-11-18 22:25:34 +02:00
2026-10-11 22:46:45 +03:00
2026-10-14 14:59:25 +03:00
2026-10-31 14:54:22 +02:00
2026-10-27 20:57:38 +02:00
2026-08-29 06:01:39 +03:00
2026-10-14 08:20:49 +03:00
2026-09-05 23:51:02 +03:00
2026-10-31 14:13:40 +02:00
2026-11-18 22:25:34 +02:00
2026-11-18 22:25:34 +02:00
2026-09-29 13:57:51 +03:00
2026-10-11 23:30:56 -04:00
2026-10-15 00:33:30 +03:00
2026-10-13 18:27:25 +03:00
2026-11-18 22:25:34 +02:00
2026-10-16 13:03:34 +03:00
2026-10-03 01:47:19 +03:00
2026-10-30 23:50:02 +02:00
2026-10-14 16:49:21 +03:00
2026-10-14 09:28:45 +03:00
2026-06-19 11:37:44 +03:00
2026-10-14 14:55:04 +03:00
2026-10-27 21:26:30 +02:00
2021-06-14 15:11:21 +02:00
2026-10-14 21:45:34 +03:00
2026-07-17 03:07:59 +03:00
2026-09-07 17:03:59 +03:00
2026-10-14 15:13:09 +03:00
2026-10-13 14:20:56 +03:00
2026-10-13 14:20:56 +03:00
2026-10-14 12:43:36 +03:00
2026-11-18 22:25:34 +02:00
2026-10-14 13:59:19 +03:00
2026-10-14 15:44:01 +03:00
2026-10-16 23:45:35 +03:00