A platform, a protocol suite, and a set of tools, to enable interoperation for data sharing and asset movements between independent networks built on heterogeneous blockchain, or more generally, distributed ledger, technologies, in a manner that preserves the core blockchain tenets of decentralization and security.
Apache License 2.0
55
stars
45
forks
source link
Stuck on "Updating verification policy for network" #409
This might be due to a wrong setup as it works for one of my two corda networks, but I am unable to use the "update-verification-policy" (or "update-access-control-policy") in the faulty one as the flow seems to get stuck.
The terminal output:
3735 [main] INFO net.corda.client.rpc.internal.RPCClient - Startup took 995 msec Verification policy from file: { "securityDomain": "Corda_Network_Test", "identifiers": [{ "pattern": "localhost:10009#com.*", "policy": { "type": "Signature", "criteria": ["PartyA"] } }] } Updating verification policy for network
The Corda Terminal output:
2023-06-08 09:48:06 Verification Policy to be updated in the vault: VerificationPolicyState(securityDomain=Corda_Network_Test, identifiers=[Identifier(pattern=localhost:10009#com.*, policy=Policy(type=Signature, criteria=[PartyA]))], linearId=a63fe933-b5d4-4951-9f27-66f76994e245, participants=[]) 2023-06-08 09:48:06 Current version of verification policy is StateAndRef(state=TransactionState(data=VerificationPolicyState(securityDomain=Corda_Network_Test, identifiers=[Identifier(pattern=, policy=Policy(type=Signature, criteria=[PartyA]))], linearId=aabe6ce0-2335-4162-858b-c3e145636cd3, participants=[O=PartyA, L=New York, C=US]), contract=com.weaver.corda.app.interop.contracts.VerificationPolicyStateContract, notary=O=Notary, L=London, C=GB, encumbrance=null, constraint=SignatureAttachmentConstraint(key=EC Public Key [24:95:04:e4:ea:ba:08:3f:fc:bd:1f:67:9a:b1:31:53:37:1a:29:84] 2023-06-08 09:48:06 X: 38d226dcd0fa574316da478aa75225e6ce18f65cbd96e60bf3c8251b1965417 2023-06-08 09:48:06 Y: 56e5dcf7ccab21b712601ed0278501f2f33d0b5fdaa4c09e62639464e4910871 2023-06-08 09:48:06 )), ref=D02168B310E2D66B43572EB708E77B6900E2A92B17C0BF85418D56FAEE39BF61(0)) 2023-06-08 09:48:06 Updating state to VerificationPolicyState(securityDomain=Corda_Network_Test, identifiers=[Identifier(pattern=localhost:10009#com.*, policy=Policy(type=Signature, criteria=[PartyA]))], linearId=aabe6ce0-2335-4162-858b-c3e145636cd3, participants=[O=PartyA, L=New York, C=US]) 2023-06-08 09:48:06
I can call the create-verification/access-control-policy flow ones, but am unable to update the policies.
This seems to be related to the network setup. Creating network 2 by duplicating network 1 resulted in this issue. Recreating network 2 from scratch has fixed this issue for now.
This might be due to a wrong setup as it works for one of my two corda networks, but I am unable to use the "update-verification-policy" (or "update-access-control-policy") in the faulty one as the flow seems to get stuck.
The terminal output:
3735 [main] INFO net.corda.client.rpc.internal.RPCClient - Startup took 995 msec Verification policy from file: { "securityDomain": "Corda_Network_Test", "identifiers": [{ "pattern": "localhost:10009#com.*", "policy": { "type": "Signature", "criteria": ["PartyA"] } }] } Updating verification policy for network
The Corda Terminal output:
2023-06-08 09:48:06 Verification Policy to be updated in the vault: VerificationPolicyState(securityDomain=Corda_Network_Test, identifiers=[Identifier(pattern=localhost:10009#com.*, policy=Policy(type=Signature, criteria=[PartyA]))], linearId=a63fe933-b5d4-4951-9f27-66f76994e245, participants=[]) 2023-06-08 09:48:06 Current version of verification policy is StateAndRef(state=TransactionState(data=VerificationPolicyState(securityDomain=Corda_Network_Test, identifiers=[Identifier(pattern=, policy=Policy(type=Signature, criteria=[PartyA]))], linearId=aabe6ce0-2335-4162-858b-c3e145636cd3, participants=[O=PartyA, L=New York, C=US]), contract=com.weaver.corda.app.interop.contracts.VerificationPolicyStateContract, notary=O=Notary, L=London, C=GB, encumbrance=null, constraint=SignatureAttachmentConstraint(key=EC Public Key [24:95:04:e4:ea:ba:08:3f:fc:bd:1f:67:9a:b1:31:53:37:1a:29:84] 2023-06-08 09:48:06 X: 38d226dcd0fa574316da478aa75225e6ce18f65cbd96e60bf3c8251b1965417 2023-06-08 09:48:06 Y: 56e5dcf7ccab21b712601ed0278501f2f33d0b5fdaa4c09e62639464e4910871 2023-06-08 09:48:06 )), ref=D02168B310E2D66B43572EB708E77B6900E2A92B17C0BF85418D56FAEE39BF61(0)) 2023-06-08 09:48:06 Updating state to VerificationPolicyState(securityDomain=Corda_Network_Test, identifiers=[Identifier(pattern=localhost:10009#com.*, policy=Policy(type=Signature, criteria=[PartyA]))], linearId=aabe6ce0-2335-4162-858b-c3e145636cd3, participants=[O=PartyA, L=New York, C=US]) 2023-06-08 09:48:06
I can call the create-verification/access-control-policy flow ones, but am unable to update the policies.