From a75c4c4c58d2481f5feedd98afbd465dae368f64 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Sun, 3 Mar 2024 15:09:33 +0300 Subject: [PATCH] Add P2PNotary node role for native RoleManagement contract (#978) * Keep native RoleManagement roles in sync with Neo core Add missing NeoFSAlphabetNode role. We should keep this list in sync with Core so that users are able to use these roles. Signed-off-by: Anna Shaleva * Add documentation to native RoleManagement roles It's nice when user-facing things are well-documented. Signed-off-by: Anna Shaleva * Add P2PNotary node role for native RoleManagement contract Port https://github.com/neo-project/neo/pull/3172. Signed-off-by: Anna Shaleva --------- Signed-off-by: Anna Shaleva Co-authored-by: Shargon --- src/Neo.SmartContract.Framework/Native/Role.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Neo.SmartContract.Framework/Native/Role.cs b/src/Neo.SmartContract.Framework/Native/Role.cs index 7db361724..d7915236f 100644 --- a/src/Neo.SmartContract.Framework/Native/Role.cs +++ b/src/Neo.SmartContract.Framework/Native/Role.cs @@ -28,6 +28,11 @@ public enum Role : byte /// /// NeoFS Alphabet nodes. /// - NeoFSAlphabetNode = 16 + NeoFSAlphabetNode = 16, + + /// + /// P2P Notary nodes used to process P2P notary requests. + /// + P2PNotary = 32 } }