Function serai_coordinator::substrate::verify_published_batches
source · pub(crate) async fn verify_published_batches<D: Db>(
txn: &mut D::Transaction<'_>,
network: ExternalNetworkId,
optimistic_up_to: u32,
) -> Option<u32>
Expand description
Verifies Batch
s which have already been indexed from Substrate.
Spins if a distinct Batch
is detected on-chain.
This has a slight malleability in that doesn’t verify who published a Batch
is as expected.
This is deemed fine.