Skip to main content

decide_creation

Function decide_creation 

Source
pub async fn decide_creation(
    database: &StoreDatabase,
    creation: Creation<'_>,
) -> Result<(), SyncError>
Expand description

Seal slot 1, journal its exact bytes as this device’s attempt at it with the operation that sends it, and apply it, all in database. The store is not published yet, so no other device can claim slot 1 first; setup later sends these bytes (§10.3). The creator’s copy of each key slot 1 introduces rides in its clear prefix, as an admission’s copies do (§12.1). Applying slot 1 runs the app’s joining write for the creator’s device, as an admission’s application does for a joiner’s (§13.2).