[Engine] Add string describing the type of node (#17571)

Co-authored-by: Remy <remy.haemmerle@daml.com>
This commit is contained in:
Rafael Guglielmetti 2023-10-16 17:31:53 +02:00 committed by GitHub
parent 61ba0fa6fa
commit 76f74987f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,11 @@ sealed abstract class Node extends Product with Serializable with CidContainer[N
}
def mapNodeId(f: NodeId => NodeId): Node
/** String describing the type of node
*/
// Used by Canton to report errors
def nodeType: String = productPrefix
}
object Node {