One transaction with two identical cash outputs cannot be save in Vault

Description

When a cash output is identical only the fist output is saved.
Example: issuance of 2 coins of £1 issued by the same notary.
The is very artificial example created manually.

Refer for https://github.com/corda/corda/pull/3244
with example test to fail and potential fix.

Status

Assignee

Szymon Sztuka

Reporter

Szymon Sztuka

Labels

Priority

High

Fix versions

Ported to...

None

Feature Team

Corda Core

Severity

Medium

Affects versions

Corda 3.1
Configure