oxen-core/src
Jason Rhinelander b7dd5e8911 Target macos 10.12
When targetting macos <10.14 macos won't allow use of anything from
C++17 that throws, such as:
- std::get on a variant
- std::visit
- std::optional::value()
- std::any_cast

This avoids all of these.

For std::get, we either replace with std::get_if (where appropriate), or
else use a `var::get` implementation of std::get added to lokimq (also
updated here).  (This `var` namespace is just an `std` alias everywhere
*except* old target macos).

For std::visit, likewise lokimq adds an var::visit implementation for
old macos that we use.

std::optional::value() uses weren't useful anyway as everywhere it calls
them we've already checked that the option has a value, in which case we
can use `*opt` (which doesn't check for contents and throw).

std::any just has to be avoided as far as I can tell, but the one place
we used it is only ever a block, so I just replaced it with a `const
block*`.
2020-10-18 11:18:08 -03:00
..
blockchain_db Target macos 10.12 2020-10-18 11:18:08 -03:00
blockchain_utilities Target macos 10.12 2020-10-18 11:18:08 -03:00
blocks blocks: Regenerate block hashes 2020-09-30 12:17:26 +10:00
checkpoints Pulse: DRY quorum signature verification 2020-08-18 11:59:53 +10:00
common Target macos 10.12 2020-10-18 11:18:08 -03:00
crypto Set -maes in CMake rather than source file 2020-10-14 14:26:16 -03:00
cryptonote_basic Target macos 10.12 2020-10-18 11:18:08 -03:00
cryptonote_core Target macos 10.12 2020-10-18 11:18:08 -03:00
cryptonote_protocol Target macos 10.12 2020-10-18 11:18:08 -03:00
daemon args: Coerce rpc port to number instead of string (#1303) 2020-10-07 10:40:30 +11:00
daemonizer Add stop() to make windows layer happy 2020-08-07 17:14:03 -03:00
debug_utilities Target macos 10.12 2020-10-18 11:18:08 -03:00
device Target macos 10.12 2020-10-18 11:18:08 -03:00
device_trezor Target macos 10.12 2020-10-18 11:18:08 -03:00
gen_multisig Rename stagenet to devnet 2020-08-17 02:54:43 -03:00
lmdb Post-merge updates: epee::is_byte_spannable 2020-07-02 12:52:13 -03:00
mnemonics String handling improvements 2020-07-02 12:52:12 -03:00
multisig cryptonote_config.h: use inline constexpr 2020-07-21 21:53:27 -03:00
net Replace epee http client with curl-based client 2020-08-07 17:14:03 -03:00
p2p Simplify code slightly to avoid linker warning about uninitialized value 2020-09-24 22:55:25 -03:00
platform Update monero copyright to 2019 pre-emptively to make merge simpler 2019-04-12 14:36:43 +10:00
ringct ringct code cleanups 2020-09-16 20:45:09 -03:00
rpc Target macos 10.12 2020-10-18 11:18:08 -03:00
serialization Target macos 10.12 2020-10-18 11:18:08 -03:00
simplewallet Target macos 10.12 2020-10-18 11:18:08 -03:00
wallet Target macos 10.12 2020-10-18 11:18:08 -03:00
CMakeLists.txt Make debug_utilities available to build even without -DBUILD_DEBUG_UTILS (#1183) 2020-06-25 13:10:09 +10:00
cryptonote_config.h Update block rewards as per LRC-7 2020-09-18 19:03:58 -03:00
loki_economy.h s/blockswap/chainflip/ in HF constants 2020-09-25 18:50:16 -03:00
version.cpp.in 7.1.9 hot fix with block 526484 sync fix 2020-05-05 14:09:20 -03:00
version.h Store loki version as std::array<u16,3> everywhere 2019-11-27 14:07:52 -04:00