Cannot complete transaction that has unknown states in the transaction history

Description

Clone http://github.com/corda/samples
Checkout release-V4 branch
md samples/obligation-cordapp
Run ./gradlew :kotlin-source:deployNodes
Delete kotlin-source/build/nodes/PartyC/cordapps/kotlin-source-0.1.jar
Run kotlin-source/build/nodes/runnodes
Navigate to https://localhost:10007 (PartyA webapp)
Create an obligation for 100 GBP between PartyA and PartyB
Self issue 100 GBP Cash
Settle the obligation

Party B should now have 100 GBP Cash in it's vault.

From the PartyB shell, run:
flow start CashPaymentFlow amount: "100 GBP", recipient: PartyC, anonymous: false

The flow completes successfully.

On PartyC shell, run: run vaultQuery contractStateType: net.corda.finance.contracts.asset.Cash$State

There should be no cash there.
Check the logs for PartyC, it should show an error:

Following the instructions on the given page, on the PartyC shell run:
run openAttachment id: 9499E591C686CC35E5ADDD074EF50E5A5ED377F31DBCE095F230C5CF3A7210CB
And save to a local file.
Then run:
run uploadAttachment jar: path/to/the/trusted-file.jar

Close PartyC and restart Corda

On PartyC shell, run: run vaultQuery contractStateType: net.corda.finance.contracts.asset.Cash$State

There is still no cash there. Check the logs for PartyC:

(full logs attached)

Status

Assignee

Tudor Malene

Reporter

Anthony Keenan

Labels

None

Priority

High

Fix versions

Ported to...

None

Feature Team

Versioning and Modules

CVSS Vector

None

Severity

High

Affects versions

Configure