Juanan7676 / netcoin

A cryptocurrency written in lua for Minecraft mod OpenComputers.
11 stars 5 forks source link

Have install.lua not delete `/usr/` #4

Closed kcinnaJlol closed 2 years ago

kcinnaJlol commented 2 years ago

Other programs also install their files in the /usr/ directory, making removing it as a part of the installation process a very bad idea.

Juanan7676 commented 2 years ago

Yep, thanks! I'm currently solving a small protocol exploit vector, where a malicious attacker could make two blocks with the same uuid but with different transactions and distribute them on different parts of the network. Now the uuid will be the hash of the rest of the block, so making two different blocks with the same uuid will be computationally impossible.

I also reverted a change on the index, it now works as before: like a hashmap, to have (ideally) O(1) access.