mirror of
https://gitee.com/BTAJL/repchain.git
synced 2024-12-02 03:38:08 +08:00
repchain2.0-update62:修改问题。
This commit is contained in:
parent
13509e13ad
commit
503995527b
@ -69,7 +69,7 @@ system {
|
||||
#chain_cert_name_jks = "951002007l78123233.super_admin"
|
||||
|
||||
genesis_node_name = "121000005l35120456.node1"
|
||||
chain_cert_name = "#951002007l78123233.super_admin"
|
||||
chain_cert_name = "identity-net:951002007l78123233.super_admin"
|
||||
chain_network_id = "identity-net" #组网id,组网id的命名不能包含"_"这样的字符
|
||||
basic_chain_id = "identity-net"
|
||||
#api是否开启
|
||||
|
@ -174,11 +174,11 @@ class PermissionVerify(ctx: RepChainSystemContext) {
|
||||
}*/
|
||||
try {
|
||||
if (!CheckPermissionOfCertId(doTrans.t.signature.get.certId.get, opName = s"${ctx.getConfig.getChainNetworkId}${IdTool.DIDPrefixSeparator}*${IdTool.NameSpaceSeparator}deploy", dbInstance)) {
|
||||
r = CheckPermissionOfCertId(doTrans.t.signature.get.certId.get, ctx.getConfig.getChainNetworkId+IdTool.DIDPrefixSeparator+cid.chaincodeName + "${IdTool.NameSpaceSeparator}deploy", dbInstance)
|
||||
r = CheckPermissionOfCertId(doTrans.t.signature.get.certId.get, ctx.getConfig.getChainNetworkId+IdTool.DIDPrefixSeparator+cid.chaincodeName + s"${IdTool.NameSpaceSeparator}deploy", dbInstance)
|
||||
}
|
||||
} catch {
|
||||
case e: SandboxException =>
|
||||
r = CheckPermissionOfCertId(doTrans.t.signature.get.certId.get, ctx.getConfig.getChainNetworkId+IdTool.DIDPrefixSeparator+cid.chaincodeName + "${IdTool.NameSpaceSeparator}deploy", dbInstance)
|
||||
r = CheckPermissionOfCertId(doTrans.t.signature.get.certId.get, ctx.getConfig.getChainNetworkId+IdTool.DIDPrefixSeparator+cid.chaincodeName + s"${IdTool.NameSpaceSeparator}deploy", dbInstance)
|
||||
}
|
||||
|
||||
r
|
||||
@ -190,11 +190,11 @@ class PermissionVerify(ctx: RepChainSystemContext) {
|
||||
val dbInstance = ctx.getBlockPreload(doTrans.da)
|
||||
try {
|
||||
if (!CheckPermissionOfCertId(doTrans.t.signature.get.certId.get, opName = s"${ctx.getConfig.getChainNetworkId}${IdTool.DIDPrefixSeparator}*${IdTool.NameSpaceSeparator}setState", dbInstance)) {
|
||||
r = CheckPermissionOfCertId(doTrans.t.signature.get.certId.get, ctx.getConfig.getChainNetworkId+IdTool.DIDPrefixSeparator+cid.chaincodeName + "${IdTool.NameSpaceSeparator}setState", dbInstance)
|
||||
r = CheckPermissionOfCertId(doTrans.t.signature.get.certId.get, ctx.getConfig.getChainNetworkId+IdTool.DIDPrefixSeparator+cid.chaincodeName + s"${IdTool.NameSpaceSeparator}setState", dbInstance)
|
||||
}
|
||||
} catch {
|
||||
case e: SandboxException =>
|
||||
r = CheckPermissionOfCertId(doTrans.t.signature.get.certId.get, ctx.getConfig.getChainNetworkId+IdTool.DIDPrefixSeparator+cid.chaincodeName + "${IdTool.NameSpaceSeparator}setState", dbInstance)
|
||||
r = CheckPermissionOfCertId(doTrans.t.signature.get.certId.get, ctx.getConfig.getChainNetworkId+IdTool.DIDPrefixSeparator+cid.chaincodeName + s"${IdTool.NameSpaceSeparator}setState", dbInstance)
|
||||
}
|
||||
r
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user