2025-01-09 16:47:36.545 UTC 016a WARN [vscc] Validate -> Endorsment policy failure error="validation of endorsement policy for chaincode fabcar in tx 12:0 failed: implicit policy evaluation failed - 1 sub-policies were satisfied, but this policy requires 3 of the 'Endorsement' sub-policies to be satisfied" chaincode=fabcar endorsementPolicy="channel_config_policy_reference:"/Channel/Application/Endorsement" " endorsingIdentities="(mspid=OrgXMSP subject=CN=peer0,OU=peer,O=Hyperledger,ST=North Carolina,C=US issuer=CN=ca.orgX.example.com,O=orgX.example.com,L=Durham,ST=North Carolina,C=ES serialnumber=477636036117438614946849514475718762588522281492)"
2025-01-09 16:47:36.545 UTC 016b ERRO [vscc] Validate -> VSCC error: stateBasedValidator.Validate failed, err validation of endorsement policy for chaincode fabcar in tx 12:0 failed: implicit policy evaluation failed - 1 sub-policies were satisfied, but this policy requires 3 of the 'Endorsement' sub-policies to be satisfied
2025-01-09 16:47:36.545 UTC 016c ERRO [committer.txvalidator] validateTx -> Dispatch for transaction txId = c3f5e1c7e3690de87fb6510c86e0af0327a7e6a5e9a88a1de444572a04e52a7b returned error: validation of endorsement policy for chaincode fabcar in tx 12:0 failed: implicit policy evaluation failed - 1 sub-policies were satisfied, but this policy requires 3 of the 'Endorsement' sub-policies to be satisfied
2025-01-09 16:47:36.545 UTC 016d INFO [committer.txvalidator] Validate -> [mychannel] Validated block [12] in 35ms
2025-01-09 16:47:36.545 UTC 016e WARN [validation] preprocessProtoBlock -> Channel [mychannel]: Block [12] Transaction index [0] TxId [c3f5e1c7e3690de87fb6510c86e0af0327a7e6a5e9a88a1de444572a04e52a7b] marked as invalid by committer. Reason code [ENDORSEMENT_POLICY_FAILURE]
最后发现是触发链码的指令问题,下面是成功的触发指令。
peer chaincode invoke "${TARGET_TLS_OPTIONS[@]}" -C mychannel -n fabcar -c '{"Args":["Initialize","name","symbol"]}'
标签:sub,failed,v2.5,satisfied,failure,policies,Endorsement,policy,Hyperledger From: https://www.cnblogs.com/stevensss/p/18663523