markDiscarded

abstract suspend fun markDiscarded(sender: DeviceAddress, id: LogicalMessageId, digest: ByteArray, discardedAt: Instant, reason: MessageDiscardReason)

Records id from sender as InboundFinalization.DISCARDED with the body digest (32 bytes), the discard time and reason. Throws IllegalArgumentException if it is already recorded, with either outcome: an entry is never replaced.