fabric
fabric copied to clipboard
GetStateValidationParameter unexpected empty
trafficstars
fabric 2.4
The scenario
- Prepare policy bytes by
var policy = ext.NewKeyEndorsementPolicy(nil)
policy.AddOrgs(msp.MSPRole_MEMBER, MSPIDs...)
SetStateValidationParameterwith keyaand policyBytes. I also did a double check here- After block commit is completed, I query on
GetStateValidationParameter. - The result of
GetStateValidationParameteris surprisingly empty.
In my first round test I submit and query via new fabric-gateway endpoint. So I suspect if it is issue from new gateway. But in second round test, even in tranditional way (specifying endorsing peers, eventing peers, orderer), this issue can be reproduced.