Skip to main content

read_pending

Function read_pending 

Source
pub fn read_pending() -> Result<Option<PendingUpgrade>>
Expand description

Read pending.json if present. Absent file → Ok(None). Corrupt JSON returns an error so callers can delete it and retry; apply_pending_upgrade does exactly that.