From 66653d9c51a7ad1df9d73749d8e8c90ca53e6ca9 Mon Sep 17 00:00:00 2001 From: Dan Newton Date: Fri, 19 Apr 2024 12:28:42 +0100 Subject: [PATCH] CORE-20317 Performance tune persistance of filtered transactions (#1605) The persistence of filtered transactions was identified as a slow point in the happy path when using a contract verifying notary. The changes to the avro schema support the runtime changes. --- ...PersistFilteredTransactionsAndSignatures.avsc | 16 ++++++++++++++++ gradle.properties | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/data/avro-schema/src/main/resources/avro/net/corda/data/ledger/persistence/PersistFilteredTransactionsAndSignatures.avsc b/data/avro-schema/src/main/resources/avro/net/corda/data/ledger/persistence/PersistFilteredTransactionsAndSignatures.avsc index f39683271c..e2021de0a1 100644 --- a/data/avro-schema/src/main/resources/avro/net/corda/data/ledger/persistence/PersistFilteredTransactionsAndSignatures.avsc +++ b/data/avro-schema/src/main/resources/avro/net/corda/data/ledger/persistence/PersistFilteredTransactionsAndSignatures.avsc @@ -8,6 +8,22 @@ "name": "filteredTransactionsAndSignatures", "type": "bytes", "doc": "the serialized map of filtered transactions and signatures" + }, + { + "name": "inputStateRefs", + "type": { + "type" : "array", + "items" : "net.corda.data.ledger.utxo.StateRef" + }, + "doc": "The input states being stored" + }, + { + "name": "referenceStateRefs", + "type": { + "type" : "array", + "items" : "net.corda.data.ledger.utxo.StateRef" + }, + "doc": "The reference states being stored" } ] } \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 295536c739..7cecf65887 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,7 +5,7 @@ cordaProductVersion = 5.3.0 # NOTE: update this each time this module contains a breaking change ## NOTE: currently this is a top level revision, so all API versions will line up, but this could be moved to ## a per module property in which case module versions can change independently. -cordaApiRevision = 10 +cordaApiRevision = 11 # Main kotlin.stdlib.default.dependency = false