fabric icon indicating copy to clipboard operation
fabric copied to clipboard

GetStateValidationParameter unexpected empty

Open davidkhala opened this issue 2 years ago • 0 comments

fabric 2.4

The scenario

  1. Prepare policy bytes by
var policy = ext.NewKeyEndorsementPolicy(nil)
policy.AddOrgs(msp.MSPRole_MEMBER, MSPIDs...)
  1. SetStateValidationParameter with key a and policyBytes. I also did a double check here
  2. After block commit is completed, I query on GetStateValidationParameter.
  3. The result of GetStateValidationParameter is 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.

davidkhala avatar Apr 18 '22 04:04 davidkhala