Skip to main content

MAX_HISTORY_RECORDS

Constant MAX_HISTORY_RECORDS 

Source
pub const MAX_HISTORY_RECORDS: usize = 4096;
Expand description

The most records fetch_history walks back from a head: a chain longer than this is refused (HistoryError::TooLong) rather than held in memory without bound. Every record of a chain is one lifecycle write of one asset, so a real chain is far shorter.