Skip to main content

delete

Function delete 

Source
pub fn delete<S: Store>(store: &S, nth: usize) -> Result<bool>
Expand description

Fault injection (tests and the gym): remove the nth record and re-frame every record after it one seq lower, each with its own prev and a valid CRC, so every frame is intact and the seqs run on; zero what is left at the end. The chain then breaks at the record after the deleted one (I18). False if there is no such record.