hyperledger-archives / avalon

Hyperledger Avalon enables privacy in blockchain transactions, moving intensive processing from a main blockchain to improve scalability and latency, and to support attested Oracles
https://wiki.hyperledger.org/display/avalon/Hyperledger+Avalon
Apache License 2.0
136 stars 93 forks source link

The parameter updateIndex #749

Open MarkYQJ opened 3 years ago

MarkYQJ commented 3 years ago

Based on spec.,

Retrieving a Work Order Receipt Update
...
Inputs:
...
updateIndex is an index of the update to retrieve. Value "0xFFFFFFFF" is reserved to retrieve the last received update.

However, the receipt chaincode is implemented as below

func (t *Receipt) workOrderReceiptUpdateRetrieve(stub shim.ChaincodeStubInterface, args []string) pb.Response {
...
    // If updateIndex value "0xFFFFFFFF" is reserved to retrieve the last received update.
    if arg2 == 256 {
...
    }

256 looks like a wrong index value?