Skip to main content

Module backfill

Module backfill 

Source
Expand description

Retrieves older room history from federation and inserts validated events.

Candidate servers are selected from trusted and room-related origins, while remote timestamp claims are checked against the ingested event. Backfilled events receive negative stream counts so they sort before normal history.

Structsยง

TimestampHit ๐Ÿ”’
The event_id and timestamp parsed back out of an Op::TimestampToEvent fetch outcome.

Constantsยง

BACKFILL_ATTEMPT_LIMIT ๐Ÿ”’
BACKFILL_BATCH_ATTEMPTS ๐Ÿ”’
BACKFILL_LIMIT ๐Ÿ”’
Events requested per backfill batch.

Functionsยง

nearer ๐Ÿ”’