Skip to main content

sort_updates

Function sort_updates 

Source
fn sort_updates(updates: Vec<StateUpdate>) -> Vec<StateUpdate>
Expand description

Sort StateUpdates in dependency order.

ยงPanics

This function assumes that all provided updates have the same timestamp and will panic otherwise. It also requires that the provided updates are consolidated, i.e. all contained StateUpdateKinds are unique.