Transfer will not work if the Item is on auction where auction status is "INIT" or "OPEN"
Same Item can be put on auction again provided it is not on auction (A new function has been added that checks both the AucInitTable and AucOpenTable)
// Let us make sure that the Item is not on Auction
err = VerifyIfItemIsOnAuction(stub, ar.ItemID)
if err != nil {
fmt.Println("PostAuctionRequest() : Failed Item is either initiated or opened for Auction ", args[0])
return nil, err
}
The Go routine that automatically closes auctions is removed. Instead, a periodic call to close all open auctions can be issued (see the log file)
./peer chaincode invoke -l golang -n mycc -c '{"Function": "CloseOpenAuctions", "Args": ["2016", "CLAUC"]}'
The Item History table has a 4th key - i.e. date and time.
Same Item can be put on auction again provided it is not on auction (A new function has been added that checks both the AucInitTable and AucOpenTable)
./peer chaincode invoke -l golang -n mycc -c '{"Function": "CloseOpenAuctions", "Args": ["2016", "CLAUC"]}'