From 91f6a950cf25f97bf18358ff7964815f48a6b81c Mon Sep 17 00:00:00 2001 From: nkovacsx Date: Mon, 23 Oct 2023 14:47:05 +0100 Subject: [PATCH] CORE-17941 Add backchain verifying property to notary info --- .../1.0/corda.member.dynamic.registration.json | 9 +++++++++ .../1.0/corda.member.static.registration.json | 9 +++++++++ .../main/java/net/corda/v5/membership/NotaryInfo.java | 5 +++++ 3 files changed, 23 insertions(+) diff --git a/data/membership-schema/src/main/resources/net/corda/schema/membership/member/dynamic/registration/1.0/corda.member.dynamic.registration.json b/data/membership-schema/src/main/resources/net/corda/schema/membership/member/dynamic/registration/1.0/corda.member.dynamic.registration.json index b54178bc4c..441ab9be75 100644 --- a/data/membership-schema/src/main/resources/net/corda/schema/membership/member/dynamic/registration/1.0/corda.member.dynamic.registration.json +++ b/data/membership-schema/src/main/resources/net/corda/schema/membership/member/dynamic/registration/1.0/corda.member.dynamic.registration.json @@ -82,6 +82,15 @@ "description": "Optional. The serial on the member's latest member info.", "type": "integer", "minimum": 0 + }, + "corda.notary.service.backchain.verifying": { + "description": "Boolean flag whether the notary service is backchain verifying or not.", + "type": "string", + "enum": ["true", "false"], + "examples": [ + "true", + "false" + ] } }, "required": [], diff --git a/data/membership-schema/src/main/resources/net/corda/schema/membership/member/static/registration/1.0/corda.member.static.registration.json b/data/membership-schema/src/main/resources/net/corda/schema/membership/member/static/registration/1.0/corda.member.static.registration.json index 653613198b..f3d8def166 100644 --- a/data/membership-schema/src/main/resources/net/corda/schema/membership/member/static/registration/1.0/corda.member.static.registration.json +++ b/data/membership-schema/src/main/resources/net/corda/schema/membership/member/static/registration/1.0/corda.member.static.registration.json @@ -47,6 +47,15 @@ "examples": [ "net.corda.notary.MyNotaryService" ] + }, + "corda.notary.service.backchain.verifying": { + "description": "Boolean flag whether the notary service is backchain verifying or not.", + "type": "string", + "enum": ["true", "false"], + "examples": [ + "true", + "false" + ] } }, "required": [ diff --git a/membership/src/main/java/net/corda/v5/membership/NotaryInfo.java b/membership/src/main/java/net/corda/v5/membership/NotaryInfo.java index f627c85c7d..ed7193eba0 100644 --- a/membership/src/main/java/net/corda/v5/membership/NotaryInfo.java +++ b/membership/src/main/java/net/corda/v5/membership/NotaryInfo.java @@ -48,4 +48,9 @@ public interface NotaryInfo { * @return The public key of the notary service, which will be a composite key of all notary virtual nodes keys. */ @NotNull PublicKey getPublicKey(); + + /** + * TODO KDocs + */ + boolean isBackchainVerifying(); }