hyperledger / hyperledger/fabric
GetStateValidationParameter unexpected empty
- Dominant language
- Go
- Stars
- 16.7k
- Forks
- 9.1k
- Avg merge
- 5h 38m
- Merged PRs (30d)
- 26
Description
fabric 2.4
## The scenario
1. Prepare policy bytes by
```
var policy = ext.NewKeyEndorsementPolicy(nil)
policy.AddOrgs(msp.MSPRole_MEMBER, MSPIDs...)
```
3. `SetStateValidationParameter` with key `a` and policyBytes. I also did a double check here
4. After block commit is completed, I query on `GetStateValidationParameter`.
5. 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.
Contributor guide
Research direction
Start by reproducing the Fabric 2.4 scenario using ext.NewKeyEndorsementPolicy, SetStateValidationParameter, and GetStateValidationParameter after block commit. Compare results through the fabric-gateway endpoint and the traditional endorsing-peer, eventing-peer, and orderer flow. Done means the empty result is explained and covered by a verified regression test or documented reproduction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- blockchain
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100