MCPcopy Create free account
hub / github.com/dfinity/orbit / insert_backup_snapshot

Function insert_backup_snapshot

core/upgrader/impl/src/lib.rs:113–117  ·  view source on GitHub ↗
(snapshot_id: Vec<u8>)

Source from the content-addressed store, hash-verified

111}
112
113fn insert_backup_snapshot(snapshot_id: Vec<u8>) {
114 let mut state = get_state();
115 state.backup_snapshots.insert_snapshot(snapshot_id);
116 set_state(state);
117}
118
119pub fn get_disaster_recovery() -> DisasterRecovery {
120 get_state().disaster_recovery

Callers 1

upgradeMethod · 0.85

Calls 3

get_stateFunction · 0.85
set_stateFunction · 0.85
insert_snapshotMethod · 0.80

Tested by

no test coverage detected