mmm: fixes to rescan logic.

This commit is contained in:
fiatjaf
2025-10-15 23:02:32 +00:00
parent 5d2675f356
commit 0dcaf0fa95
4 changed files with 26 additions and 41 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ func FuzzBorkedRescan(f *testing.F) {
borkedEvents = append(borkedEvents, evt)
// manually corrupt the mmapped file at these positions
copy(mmmm.mmapf[pos.start:], []byte("CORRUPTED_DATA_XXXX"))
copy(mmmm.mmapf[pos.start:], []byte("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"))
} else if chance(inconsistencyProbability) {
// inconsistently delete from some layers
var evt nostr.Event