Conflict Detection
Conflict Detection is the analytical process within a database or ledger system that identifies when two or more transactions attempt to modify the same state variable simultaneously. In an optimistic system, this detection occurs during the validation phase, where the system compares the state read at the start of the transaction with the state at the time of commit.
If a discrepancy exists, the system flags a conflict. This is critical in derivative trading, where margin balances and collateral values must be updated precisely.
If conflict detection fails, the system could allow an account to become over-leveraged or allow double-spending of collateral. Modern protocols use sophisticated hashing and versioning to perform this detection with minimal computational overhead.