Note slight malleability in batch verification

This commit is contained in:
Luke Parker 2023-10-27 23:08:31 -04:00
parent da01de08c9
commit 652c878f54
No known key found for this signature in database

View file

@ -494,6 +494,9 @@ pub(crate) async fn get_expected_next_batch(serai: &Serai, network: NetworkId) -
} }
/// Verifies `Batch`s which have already been indexed from Substrate. /// Verifies `Batch`s which have already been indexed from Substrate.
///
/// This has a slight malleability in that doesn't verify *who* published a Batch is as expected.
/// This is deemed fine.
pub(crate) async fn verify_published_batches<D: Db>( pub(crate) async fn verify_published_batches<D: Db>(
txn: &mut D::Transaction<'_>, txn: &mut D::Transaction<'_>,
network: NetworkId, network: NetworkId,