mirror of
https://github.com/oxen-io/oxen-core.git
synced 2023-12-14 02:22:56 +01:00
53b981b865
This `getKeyFromBlockchain` function is completely moronic: it doesn't do anything with its `reference_index`, and has a commented description that doesn't match the actual implementation at all. Moreover the `reference_index` argument, at once place here, is passed a *function pointer cast to a size_t*. A generous interpretation is the author knew that it wasn't being used, and thus could be passed the abitrary address of a function that happens to return a random value -- but it's all fine because the argument isn't used, right? Replace it with a .randomize() on ctkey that does the same thing, but with 97% less moron. This code is beyond pathetic. I am starting to see why some people need Rust to guard their incompetence away from the code they write. |
||
---|---|---|
.. | ||
blockchain_db | ||
blockchain_utilities | ||
blocks | ||
checkpoints | ||
common | ||
crypto | ||
cryptonote_basic | ||
cryptonote_core | ||
cryptonote_protocol | ||
daemon | ||
daemonizer | ||
debug_utilities | ||
device | ||
device_trezor | ||
gen_multisig | ||
lmdb | ||
logging | ||
mnemonics | ||
multisig | ||
net | ||
p2p | ||
platform | ||
ringct | ||
rpc | ||
serialization | ||
simplewallet | ||
sqlitedb | ||
wallet | ||
wallet3 | ||
CMakeLists.txt | ||
cryptonote_config.h | ||
oxen_economy.h | ||
version.cpp.in | ||
version.h |