replayEventsFromFile

Replays events from a file in a single pass.

The file contains concatenated tagged-SCALE hex events (same format as replayEvents hex parameter). Rust reads the file in native memory, avoiding JVM heap pressure for large event sets (PREPROD: 250k+ events).

Single-pass replay ensures generation collapses and Merkle tree rehash happen exactly once, producing roots that match the node's root history.

Return

New DustLocalState, or null on error

Parameters

seed

32-byte dust seed

filePath

Absolute path to the hex events file