0.3.15-pre.012
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-app-raw-transaction-ingest-desk/src/route_start.rs
|
||||
// version: 4
|
||||
// version: 5
|
||||
|
||||
//! Start-time Config revalidation and exact Transport/Store resource reconstruction for route validation and runtime launch.
|
||||
|
||||
@@ -27,6 +27,10 @@ pub(crate) fn prepare_route_start(
|
||||
current_generation: u32,
|
||||
request: &crate::RawIngestRouteStartRequestDto,
|
||||
) -> ksp_core_lib::Result<crate::PreparedRouteStart> {
|
||||
let identity = request.validate_logical_identity();
|
||||
if let std::result::Result::Err(error) = identity {
|
||||
return std::result::Result::Err(error);
|
||||
}
|
||||
if current_generation == 0 || request.inventory_generation != current_generation {
|
||||
return std::result::Result::Err(ksp_core_lib::Error::new(
|
||||
crate::ERROR_CODE_ROUTE_START_STALE_INVENTORY,
|
||||
|
||||
Reference in New Issue
Block a user