Info

Download ZIP (10.8 KB)

Testing and Issues

You can test this entry and submit issues during the testing period of the TON Block Validation Challenge contest.

Entries with serious issues will not be able to win the contest, but even minor issues might be important for overall results.

Voting

33
by rating

Issues

This change:
```
diff --git a/crypto/vm/cells/CellHash.h b/crypto/vm/cells/CellHash.h
index 9435675f..0f0ba0ba 100644
--- a/crypto/vm/cells/CellHash.h
+++ b/crypto/vm/cells/CellHash.h
@@ -84,7 +84,8 @@ struct hash<vm::CellHash> {
   typedef vm::CellHash argument_type;
   typedef std::size_t result_type;
   result_type operator()(argument_type const& s) const noexcept {
-    return cell_hash_slice_hash(s.as_slice());
+    return s.as_array()[1] << 8 | s.as_array()[2];
+    // return cell_hash_slice_hash(s.as_slice());
   }
 };
 }  // namespace std
```

This “optimization” uses only two bytes (shifted and OR’d) instead of a full hash over the entire slice. Such a drastic reduction in entropy will almost certainly lead to a very high collision rate
1
Savvy Starfish Feb 6 at 13:05
Forgot to remove before submission =)
FINAL TESTING RESULTS for entry6342
Passed 11840/11841 tests (1 failed)
Real time: 814.154264s
CPU time: 733.095489s
Baseline real time: 975.120982s
Baseline CPU time: 897.583775s
Savvy Starfish Feb 19 at 12:27
Will the solution not be considered because of 1 failed test?
Nobody added any issues yet...