oxen-core/src
Jason Rhinelander 53b981b865
Fix moronic code
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.
2023-01-12 19:51:36 -04:00
..
blockchain_db Replace std::tuple<A, B> with std::pair<A, B> 2023-01-12 19:51:36 -04:00
blockchain_utilities Overhaul and fix crypto::{public_key,ec_point,etc.} types 2022-10-17 22:20:54 -03:00
blocks blocks: Regenerate block hashes 2020-09-30 12:17:26 +10:00
checkpoints Overhaul and fix crypto::{public_key,ec_point,etc.} types 2022-10-17 22:20:54 -03:00
common Move nlohmann_json dependency to 'common' target 2022-12-21 17:04:07 -04:00
crypto Overhaul and fix crypto::{public_key,ec_point,etc.} types 2022-10-17 22:20:54 -03:00
cryptonote_basic Cure std's 2023-01-12 19:51:36 -04:00
cryptonote_core Move nlohmann_json dependency to 'common' target 2022-12-21 17:04:07 -04:00
cryptonote_protocol Log levels: case-insensitive levels; add abbreviations 2022-12-19 16:41:18 -04:00
daemon Rename LMQ -> OMQ in code 2022-12-19 13:22:02 -04:00
daemonizer Overhaul and fix crypto::{public_key,ec_point,etc.} types 2022-10-17 22:20:54 -03:00
debug_utilities Overhaul and fix crypto::{public_key,ec_point,etc.} types 2022-10-17 22:20:54 -03:00
device Overhaul and fix crypto::{public_key,ec_point,etc.} types 2022-10-17 22:20:54 -03:00
device_trezor Cure std's 2023-01-12 19:51:36 -04:00
gen_multisig Eliminate most << output operators 2022-10-17 13:45:24 -03:00
lmdb Move epee includes under "epee/..." 2020-10-24 12:46:27 -03:00
logging Log levels: case-insensitive levels; add abbreviations 2022-12-19 16:41:18 -04:00
mnemonics Overhaul and fix crypto::{public_key,ec_point,etc.} types 2022-10-17 22:20:54 -03:00
multisig Cure std's 2023-01-12 19:51:36 -04:00
net Logging Refactor 2022-10-17 13:41:10 -03:00
p2p Eliminate most << output operators 2022-10-17 13:45:24 -03:00
platform Update monero copyright to 2019 pre-emptively to make merge simpler 2019-04-12 14:36:43 +10:00
ringct Fix moronic code 2023-01-12 19:51:36 -04:00
rpc Move 2023-01-11 19:47:13 -04:00
serialization Remove json_archiver debugging 2022-12-21 15:14:32 -04:00
simplewallet Remove broken formattable::to_string(T) support 2022-10-18 11:23:28 -03:00
sqlitedb Change most oxen::log::whatever to log::whatever 2022-10-17 13:41:43 -03:00
wallet Handle missing total_reserved 2023-01-11 19:29:34 -04:00
wallet3 Move nlohmann_json dependency to 'common' target 2022-12-21 17:04:07 -04:00
CMakeLists.txt wallet3 cli 2022-12-06 08:10:31 +11:00
cryptonote_config.h Creates archiving for reward batching 2022-10-25 10:56:49 +11:00
oxen_economy.h Atomic staking amounts 2022-05-24 17:36:24 -03:00
version.cpp.in Better version tag generation (from oxenss/lokinet) 2022-05-30 15:16:50 -03:00
version.h executable names changed 2021-01-07 18:40:18 -04:00