Commit Graph
12915 Commits
Author SHA1 Message Date
Thomas fa91ae4644 common: remove dead code
Each symbol below has no references anywhere in the tree (src/, contrib/,
tests/), and none on the in-flight FCMP++ (fcmp++-stage-new) or CARROT
(carrot_impl) integration branches; the full build still links cleanly.
Per-symbol history is given so the "why is this unused" is auditable (hashes
are ancestors of HEAD).

command_line:
- parse_command_line template: boost wrapper used by the connectivity tool and
  wallet from the 2014 import; the last caller was removed in b8a08f199 (2017,
  "wallet: fix --log-file not working"). Not boost's own
  boost::program_options::parse_command_line, a different function still in use.

download:
- download_finished / download_error: dead on arrival - added 63f0e074e (2017,
  "download: async API") but never wired to any caller.

perf_timer:
- set_performance_timer_log_level: dead on arrival - added 74dfdb0b3 (2016),
  never called. It was the only writer of performance_timer_log_level, which is
  therefore never reassigned and stays at its default (el::Level::Info).

Note: the unused PERF_TIMER_L / PERF_TIMER_UNIT_L macros are deliberately left
in place - the FCMP++ wallet-scanning work (fcmp++-stage-new, wallet2.cpp) uses
PERF_TIMER_L, so removing them would break that branch on rebase.
2026-06-30 21:11:20 +02:00
Thomas 8701fc98a2 blockchain_db: remove unused MDB_val_copy specializations
The MDB_val_copy<cryptonote::blobdata> and MDB_val_copy<const char*>
specializations have no references anywhere in the tree (src/, contrib/,
tests/); the full build still links cleanly.

They were real helpers that copied block/tx blobs and the "version" key into
LMDB from 2015 (3fcb8daf6 / f7e99047e). All instantiations were removed in
99fbe1008 (2018, "db_lmdb: save some string copies for readonly db keys/
values"), which writes blobs directly and points readonly MDB_vals at string
literals (zero-copy). Every remaining MDB_val_copy<> call site uses the
uint64_t/uint32_t/uint8_t primary template; these two specializations have sat
unused since.
2026-06-30 15:59:47 +02:00
Thomas 00d21ee75e epee: remove dead code
Each symbol below has no references anywhere in the tree (src/, contrib/,
tests/); the full build still links cleanly. Per-symbol history is given so the
"why is this unused" is auditable (hashes are ancestors of HEAD).

net/connection_basic (all four lost their last caller in the 2022 connection
rewrite, 3be1dbd09 "connection: fix implementation"):
- to_string(t_connection_type): unused free function. Added 9bfa593ee (2015)
  to print a connection's type in a debug log; 3be1dbd09 (2022) switched that
  log line to std::to_string on the enum, orphaning this overload.
- do_send_handler_write / do_send_handler_write_from_queue: trace-only stubs
  added eabb51960 (2015) on the TCP send path; their calls in do_send_chunk /
  the write-completion handler were deleted by 3be1dbd09 (2022). The real send
  path is connection<T>::start_write().
- sleep_before_packet: outbound rate-limit sleep added eabb51960 (2015);
  callers were thinned over time (cf5f62361, 2017) and the last removed by
  3be1dbd09 (2022). Rate-limiting now lives in connection<T>::start_write()
  via the global out-throttle.

net/levin_base:
- struct bucket_head: legacy levin packet header from the 2014 epee import,
  superseded by bucket_head2 (the wire header, `using header = bucket_head2`).
  Its last use went away with the old levin_protocol_handler in 0c545f614
  (2024, "epee/test: remove levin_protocol_handler and core_proxy tests").
- LEVIN_PROTOCOL_VER_0: dead on arrival - present since the 2014 import, never
  referenced (the code uses LEVIN_PROTOCOL_VER_1).

net/net_utils_base (connection-context logging macros):
- LOG_PRINT_CC_L4: levin trace macro (2014 import); all call sites removed in
  5833d66f6 (2017, "Change logging to easylogging++").
- LOG_PRINT_CCONTEXT_L3: had a single "REMOTE PEERLIST" call site, removed in
  the same 5833d66f6 (2017).
- LOG_PRINT_CC_L3: only ever referenced inside LOG_PRINT_CCONTEXT_L3's body,
  never invoked directly - transitively dead once the above was removed.
- LOG_CC: dead on arrival - added in 5833d66f6 (2017) but never invoked.
  (The plain LOG_PRINT_L3 macro that LOG_PRINT_CC_L3/CCONTEXT_L3 wrap is still
  used elsewhere and is left untouched; only these unused CC wrappers go.)

net/network_throttle:
- typedef network_MB: added eabb51960 (2015); its only consumers
  (set_target_kill / m_target_MB) were stripped the same day in 5ce4256e3
  (2015), leaving an unused typedef.

profile_tools:
- START_WAY_POINTS / WAY_POINT / WAY_POINT2: dead on arrival - upstream-epee
  profiling macros present since the 2014 import, never once invoked (they only
  ever appear as definitions in profile_tools.h across all history).
- TIME_MEASURE_PAUSE / TIME_MEASURE_RESTART and their _NS_ variants: dead on
  arrival - added bda8c5983 (2017, "epee: add nanosecond timer and pause/restart
  profiling macros") but never wired to any call site. Of this family only
  TIME_MEASURE_START / TIME_MEASURE_FINISH are actually used.

storages:
- typedef binarybuffer (portable_storage_base): used by the binary store/load
  API since the 2014 import; its last consumer (store_to_binary) was removed in
  7414e2bac (2020, "Change epee binary output from std::stringstream to
  byte_stream").
- the templated min_bytes() member declaration (portable_storage_from_bin):
  declared but never defined or called. Added 7f407c027 (2020-12-26,
  "portable_storage: add some sanity checks on data size") alongside the
  ps_min_bytes<> trait struct, but the size checks were implemented via that
  trait (ps_min_bytes<>::strict), so this member was never defined or wired up
  - dead on arrival. The ps_min_bytes<> trait remains in use and is left intact.
2026-06-30 15:59:47 +02:00
tobtoht 596d0a0363 Merge pull request #10780
c914c27 src: update checkpoints to match v0.18.5.1 (selsta)

ACKs: plowsof*, tobtoht
2026-06-30 10:05:22 +00:00
tobtoht 05b312799c Merge pull request #10837
265e95a blockchain: improve incoming block scan table handling (selsta)

ACKs: SChernykh, j-berman
2026-06-30 10:01:32 +00:00
tobtoht d6a90937c8 Merge pull request #10835
330062a Optimized handle_notify_new_transactions's duplicate tx check - Check sha256 digests instead of full blobs (much less memory used) - Replace `find->insert` sequence with a single `insert` - 2x fewer hashset accesses - Preallocate the required size for the hashset (no full-table rehashes) (SChernykh)

ACKs: selsta, j-berman
2026-06-30 09:59:55 +00:00
tobtoht 6f09e39866 Merge pull request #10597
d8f3b81 p2p: restore safe sync mode when target height drops (selsta)

ACKs: SChernykh, j-berman
2026-06-30 09:54:19 +00:00
tobtoht 286a7c9c77 Merge pull request #10834
4a627d4 tests: check node_server race init and connect (selsta)

ACKs: tobtoht, plowsof
2026-06-29 18:24:57 +00:00
selsta c914c27c46 src: update checkpoints to match v0.18.5.1 2026-06-29 18:28:41 +02:00
selsta 265e95a8b5 blockchain: improve incoming block scan table handling 2026-06-29 14:07:28 +02:00
tobtoht 72f1faac96 Merge pull request #10814
14e1753 simplewallet: fix some more typos (jpk68)

ACKs: selsta, tobtoht
2026-06-29 11:44:14 +00:00
tobtoht af45d6e7e3 Merge pull request #10813
a913ab8 makefile: add target for asan without building tests (jpk68)

ACKs: selsta, tobtoht
2026-06-29 11:43:51 +00:00
tobtoht 46d39a2704 Merge pull request #10811
8a744a6 tests: remove dead transactions_generation_from_blockchain (Thomas)
b5136b1 common: remove unused data_cache.h (Thomas)

ACKs: selsta, tobtoht
2026-06-29 11:43:26 +00:00
tobtoht 6eef935d2c Merge pull request #10810
07f7c75 http: parse server Content-Length strictly (alhudz)

ACKs: vtnerd, selsta
2026-06-29 11:42:27 +00:00
SChernykh 330062a004 Optimized handle_notify_new_transactions's duplicate tx check
- Check sha256 digests instead of full blobs (much less memory used)
- Replace `find->insert` sequence with a single `insert` - 2x fewer hashset accesses
- Preallocate the required size for the hashset (no full-table rehashes)
2026-06-29 08:06:31 +02:00
selsta 4a627d44fa tests: check node_server race init and connect 2026-06-28 19:24:36 +02:00
tobtoht 85d5a6f95b Merge pull request #10646
d40944c wallet2: avoid linear scans in pool state updates (selsta)

ACKs: j-berman*, SChernykh
2026-06-28 14:20:30 +00:00
selsta d40944c4df wallet2: avoid linear scans in pool state updates 2026-06-28 13:54:10 +02:00
tobtoht afa44c5322 Merge pull request #10806
ee052f7 cmake: add build translations option (tobtoht)

ACKs: selsta, plowsof
2026-06-27 13:04:55 +00:00
tobtoht 7ae14f9128 Merge pull request #10805
8691784 trezor: stop warning about deprecations we don't control (tobtoht)

ACKs: selsta, plowsof
2026-06-27 13:04:02 +00:00
tobtoht 9f6df4cf9c Merge pull request #10807
9ed0a11 cmake: set message mode everywhere (tobtoht)

ACKs: selsta, jeffro256
2026-06-27 12:03:44 +00:00
tobtoht 15a1521c38 Merge pull request #10802
473035e wallet: add missing copyright info (jpk68)

ACKs: selsta, tobtoht
2026-06-27 12:02:58 +00:00
tobtoht 7f982b8c9d Merge pull request #10803
d7e2399 cryptonote_basic: remove unused function (jpk68)

ACKs: selsta, tobtoht
2026-06-27 12:02:08 +00:00
tobtoht ef20171eec Merge pull request #10797
42bce30 guix: update clang to 22.1.8 (tobtoht)

ACKs: selsta, plowsof
2026-06-26 16:15:14 +00:00
tobtoht f79930b0db Merge pull request #10796
36bb2d0 wallet2: avoid std::out_of_range on a truncated tx set blob (Thomas)

ACKs: jeffro256, selsta
2026-06-26 16:14:06 +00:00
tobtoht 7f8bc31ee5 Merge pull request #10824
2bc6726 functional_tests: add debug logging to transfer (selsta)

ACKs: plowsof, tobtoht
2026-06-26 16:13:21 +00:00
selsta 2bc67262c8 functional_tests: add debug logging to transfer 2026-06-26 14:38:36 +02:00
selsta d8f3b81f79 p2p: restore safe sync mode when target height drops 2026-06-24 21:58:51 +02:00
tobtoht 4320bdf590 Merge pull request #10795
cf56393 depends: boost: remove headers of unused libraries (tobtoht)

ACKs: selsta, plowsof
2026-06-24 19:06:10 +00:00
tobtoht 42bce304e1 guix: update clang to 22.1.8 2026-06-24 20:37:16 +02:00
tobtoht 384277158f Merge pull request #10793
9c96792 guix: update gcc to 15.2.0 (tobtoht)

ACKs: plowsof, selsta
2026-06-24 18:28:23 +00:00
tobtoht 08af28c4fc Merge pull request #10789
a6c9d62 depends: Bitcoin -> Monero typo (jeffro256)

ACKs: selsta, tobtoht, nahuhh
2026-06-24 17:22:22 +00:00
tobtoht 0a83a39883 Merge pull request #10792
02db831 Fix spelling typos (Thomas)

ACKs: tobtoht, jeffro256
2026-06-24 17:21:24 +00:00
Thomas 8a744a6388 tests: remove dead transactions_generation_from_blockchain
Functional test commented out since 2014 (296ae46ed); never #included or
called (main.cpp only runs transactions_flow_test).
2026-06-23 22:32:17 +02:00
Thomas b5136b1a5d common: remove unused data_cache.h
Dead since 40eb82873 (2025-10) moved verRct caching into the mempool;
only a stale #include remained in blockchain.cpp.
2026-06-23 22:31:28 +02:00
alhudz 07f7c7521d http: parse server Content-Length strictly 2026-06-23 17:37:41 +05:30
tobtoht 49c9cfc315 Merge pull request #10783
5423c9a Dockerfile: update stagex to 2026.6.0 (tobtoht)

ACKs: selsta, plowsof
2026-06-22 22:02:06 +00:00
jpk68 14e1753774 simplewallet: fix some more typos 2026-06-22 16:16:59 -04:00
tobtoht 2c48374ecd Merge pull request #10768
389f366 http: share deterministic header field parser (selsta)

ACKs: SChernykh*, vtnerd
2026-06-21 21:44:23 +00:00
tobtoht 9ed0a11417 cmake: set message mode everywhere 2026-06-21 23:24:30 +02:00
tobtoht ee052f7872 cmake: add build translations option 2026-06-21 22:50:13 +02:00
selsta 389f3660db http: share deterministic header field parser 2026-06-21 22:25:58 +02:00
tobtoht 869178450c trezor: stop warning about deprecations we don't control 2026-06-21 21:57:38 +02:00
jpk68 473035ea69 wallet: add missing copyright info 2026-06-21 14:05:08 -04:00
tobtoht 53dba0854e Merge pull request #10788
6da0999 p2p: replace make_address_v4_from_v6 with boost function (jpk68)
ff1f97b dns_utils: replace address-to-string functions (jpk68)

ACKs: selsta, tobtoht
2026-06-21 14:09:19 +00:00
tobtoht e4a77fbb42 Merge pull request #10775
57f4cda wallet2: guard optimized coinbase refresh against empty vout (selsta)

ACKs: tobtoht, SChernykh
2026-06-21 11:39:04 +00:00
tobtoht 0651be79f9 Merge pull request #10772
7578af4 wallet2: reject non-monotonic rct output distributions (selsta)

ACKs: jeffro256, vtnerd
2026-06-21 11:38:15 +00:00
tobtoht bb069330c7 Merge pull request #10786
49108d7 epee: use correct minor http version (jpk68)

ACKs: selsta, tobtoht
2026-06-21 11:37:21 +00:00
jpk68 a913ab8885 makefile: add target for asan without building tests 2026-06-20 16:51:39 -04:00
tobtoht 837e9cdd30 Merge pull request #10767
e9a8a26 wallet: wallet args take argv[] as const (jeffro256)

ACKs: selsta, tobtoht
2026-06-20 20:10:26 +00:00