Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -614,14 +614,12 @@ final class DbMultiDomainAcsStore[TXE](
)(implicit
tc: TraceContext
): Future[DestinationHistory.InsertResult] = {
val trees = items.collect {
case UpdateHistoryResponse(TransactionTreeUpdate(tree), _)
if !tree.getWorkflowId.startsWith(IMPORT_ACS_WORKFLOW_ID_PREFIX) =>
assert(
tree.getRecordTime.isAfter(CantonTimestamp.MinValue.toInstant),
"insert() must not be called with import updates",
)
tree
val trees = items.collect { case UpdateHistoryResponse(TransactionTreeUpdate(tree), _) =>
assert(
tree.getRecordTime.isAfter(CantonTimestamp.MinValue.toInstant),
"insert() must not be called with import updates",
)
tree
}

NonEmptyList.fromFoldable(trees) match {
Expand Down
Loading