Reputation: 42229
In Corda, when receiving finality, we can specify which states to record:
Relevant states...
ReceiveFinalityFlow(session, statesToRecord = StatesToRecord.ONLY_RELEVANT)
All states...
ReceiveFinalityFlow(session, statesToRecord = StatesToRecord.ALL_VISIBLE)
There's no in between. What it we wanted to store only states of a particular type?
For example...
ReceiveFinalityFlow(session) {
record { tx.outputsOfType<Foo>() }
ignore { tx.outputsOfType<Bar>() }
}
Is, or could this be possible in future?
Upvotes: 1
Views: 57
Reputation: 1043
My understanding after a bit of conversation internally that this just isn't supported in Corda. For what it's worth you're not the only one to suggest this feature.
Upvotes: 1