ITPeople-Blockchain / auction

ITPeople Blockchain - Art Auction Demo
162 stars 183 forks source link

Bid time is depending on system time - is that valid? #66

Closed zuowang closed 7 years ago

zuowang commented 8 years ago

The invoke of chaincode would be executed on multi validators. The output of time.Now() would not be the same.

    bidTime := time.Now().Format("2006-01-02 15:04:05")

    aBid = Bid{args[0], args[1], args[2], args[3], args[4], args[5], bidTime}
    fmt.Println("CreateBidObject() : Bid Object : ", aBid)
ratnakar-asara commented 7 years ago

This has been fixed in v1.0