mirror of
https://github.com/oxen-io/oxen-core.git
synced 2023-12-14 02:22:56 +01:00
dfe566480b
- Replace all cryptonote_config macros with constexpr variables. Some become integer types, some become chrono types. - generally this involved removing a "CRYPTONOTE_" prefix since the values are now in the `cryptonote` namespace - some constants are grouped into sub-namespaces (e.g. cryptonote::p2p) - deprecated constants (i.e. for old HFs) are in the `cryptonote::old` namespace. - all the magic hash key domain separating strings are now in cryptonote::hashkey::WHATEVER. - Move some economy-related constants to oxen_economy.h instead - Replaced the BLOCKS_EXPECTED_IN_DAYS constexpr functions with more straightforward `BLOCKS_PER_DAY` value (i.e. old `BLOCKS_EXPECTED_IN_DAYS(10)` is now `BLOCKS_PER_DAY * 10`. - Replaced `network_version` unscoped enum with a scoped enum `cryptonote::hf`, replacing all the raw uint8_t values where it was currently accepted with the new `hf` type. - Made `network_type` a scoped enum so that it now has to be qualified (network_type::TESTNET) and can't be arbitrarily/unintentionally converted to/from an int. - HARDFORK_WHATEVER macros have become cryptonote::feature::WHATEVER constexpr hf values. - Add `revision` to rpc hard_fork_info response - Don't build trezor code at all (previously we were pointlessly building an empty dummy lib). |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
dandelionpp.cpp | ||
dandelionpp.h | ||
epee_network_address_hack.cpp | ||
error.cpp | ||
error.h | ||
fwd.h | ||
i2p_address.cpp | ||
i2p_address.h | ||
parse.cpp | ||
parse.h | ||
socks.cpp | ||
socks.h | ||
tor_address.cpp | ||
tor_address.h |