buckyos / DCRM

Decentralized Compute Resource Marketplace
MIT License
5 stars 2 forks source link

sortedlist 试两次 #6

Closed fulldecent closed 8 months ago

fulldecent commented 9 months ago
{ "hash": "0x39c767e230f1cc4d8fa7baa4ef8c39bc2e4add8680d09bfe086e1efdaa0d6437", "score": 290 }, // 10
{ "hash": "0x39c767e230f1cc4d8fa7baa4ef8c39bc2e4add8680d09bfe086e1efdaa0d6438", "score": 290 }, // 10

看那个先进

weiqiushi commented 8 months ago

According to current implementation, two items with the same score are sorted in order of insertion, from first to last. If the inserted item has the same score as the last one in list, the insertion will be considered invalid.

weiqiushi commented 8 months ago

I updated the testcase to include insert two items which has same score. it will ranked by their insert order.