In some cases backend could generate multiple requests to the ledger with the same transaction data resulting in a duplicate entry. One way to prevent this could be setting transaction id to HASH(order.id) - posting this more than once should result in failure.
Is this possible? Or there is a better approach to this?
In some cases backend could generate multiple requests to the ledger with the same transaction data resulting in a duplicate entry. One way to prevent this could be setting transaction id to
HASH(order.id)
- posting this more than once should result in failure.Is this possible? Or there is a better approach to this?