Commit Graph
11517 Commits
Author SHA1 Message Date
j-berman ee9e4a49ba p2p: connection patches
- Make sure the server sends a complete response when the client
includes the "Connection: close" header.
- Make sure the server terminates in `m_strand` to avoid
concurrent socket closure and ops processing.
2026-02-02 10:22:41 -08:00
tobtoht 4ce39e0c14 Merge pull request #10280
482daa7 Tweak command_line::add_arg for clang 21 (Lee *!* Clagett)
2026-02-02 18:01:34 +00:00
tobtoht 1a86c21b57 Merge pull request #10279
ff4c4aa Remove .no moneropulse domain from codebase (binaryFate)
2026-01-17 03:38:23 +00:00
Lee *!* Clagett 482daa7445 Tweak command_line::add_arg for clang 21 2026-01-12 18:49:20 -05:00
binaryFateandselsta ff4c4aaa1d Remove .no moneropulse domain from codebase 2026-01-13 00:02:16 +01:00
tobtoht 316a98b11e Merge pull request #10262
ec34c5b build: prepare v0.18.4.5 (selsta)
v0.18.4.5
2025-12-29 22:41:50 +00:00
tobtoht 6553d87c28 Merge pull request #10268
1075ace logging: Generalize terminal color detection (iamamyth)
2025-12-29 22:40:46 +00:00
1075acee90 logging: Generalize terminal color detection
Assume the terminal supports color codes if TERM ends with `-color` or
`-256color`, rather than special-casing a handful of such terminals.

Co-authored-by: laanwj <126646+laanwj@users.noreply.github.com>
2025-12-29 22:29:25 +00:00
tobtoht 1e5b761086 Merge pull request #10252
7baf2bd epee: add missing cstdint include (tobtoht)
2025-12-29 22:27:03 +00:00
tobtoht 9dff86103e Merge pull request #10257
d8d3cf9 p2p: fix race causing dropped connections during sync (j-berman)
2025-12-29 22:24:38 +00:00
tobtoht 4862ffd5dc Merge pull request #10255
c147e2d wallet2: fix edge case where tx's ki's remain marked unspent (j-berman)
2025-12-29 22:21:21 +00:00
selsta ec34c5b93f build: prepare v0.18.4.5 2025-12-29 22:27:58 +01:00
j-berman c147e2dfe2 wallet2: fix edge case where tx's ki's remain marked unspent
If a tx is marked as failed (because it never shows up in the
daemon's pool), its key images get reset back to unspent so they
can be used in future txs.

If the tx re-enters the daemon's pool (e.g. it's removed from the
pool and then relayed back), then the wallet incorrectly maintains
that the tx's key images are unspent.

This change ensures the wallet re-marks the tx's key images as
spent if the tx re-appears in the node's pool.
2025-12-12 09:14:55 -08:00
j-berman d8d3cf9730 p2p: fix race causing dropped connections during sync
Without this commit:
1) read height from DB
2) add block to chain in separate thread
3) read chain for block id's and request them from peer
4) ERR in handle_response_chain_entry, peer's first block is the
one that was added to the chain, which has block idx=height from
step 1.

This commit reads the chain for height and highest block id's
in one go while holding the m_blockchain_lock to avoid the race.
2025-12-11 21:37:20 -08:00
tobtoht 7baf2bde6e epee: add missing cstdint include 2025-12-11 10:43:33 +01:00
tobtoht ae08557f71 Merge pull request #10243
15fc1c8 ledger: add nano gen5 id (tobtoht)
2025-12-09 17:58:04 +00:00
tobtoht 15fc1c840c ledger: add nano gen5 id 2025-12-01 01:49:50 +01:00
tobtoht e5d0b6078a Merge pull request #10238
ba163d3 simplewallet: edit desc. text for transfer (Cat)
2025-11-26 20:42:29 +00:00
tobtoht 853272408b Merge pull request #10234
c14a0ba depends: hidapi: update to 0.15.0 (tobtoht)
2025-11-26 19:35:43 +00:00
Catandplowsof ba163d38cb simplewallet: edit desc. text for transfer 2025-11-26 19:21:18 +00:00
tobtoht c14a0ba432 depends: hidapi: update to 0.15.0 2025-11-24 18:12:10 +01:00
tobtoht 516e5355a1 Merge pull request #10206
4e4e343 Daemon: relay empty fluffy block on found block (j-berman)
v0.18.4.4
2025-11-12 09:22:38 +00:00
tobtoht 14f3d408ad Merge pull request #10204
90dad18 tx pool: only increment m_txpool_weight for newly added pool txs (j-berman)
2025-11-12 09:20:34 +00:00
j-berman 4e4e3439c9 Daemon: relay empty fluffy block on found block 2025-11-11 16:45:06 -08:00
j-berman 90dad18bfb tx pool: only increment m_txpool_weight for newly added pool txs
Otherwise we can end up double counting txs towards the weight,
which can over-state the pool weight. E.g. relay tx to node in
stem phase, add its weight to pool weight, then receive tx
from another node, then bump the pool weight again. That double
counts the tx towards the pool weight.

If the weight exceeds the max, the node will "prune" txs from the
pool. Thus, over-counting is probably a cause of, but perhaps
not the only cause of:
https://github.com/seraphis-migration/monero/issues/148
2025-11-11 16:31:37 -08:00
tobtoht 6f2574d9d2 Merge pull request #10195
26cf4f9 ledger: throw on secret view key export rejection (tobtoht)
2025-11-11 23:01:13 +00:00
tobtoht 68732126e9 Merge pull request #10202
dafecd0 cryptonote_protocol: accurate next_needed_height when there is an overlap (0xFFFC0000)
2025-11-11 22:42:07 +00:00
tobtoht 64f230d63a Merge pull request #10199
64f2d8e build: prepare v0.18.4.4 (selsta)
2025-11-11 21:52:46 +00:00
tobtoht 8167ae5ef0 Merge pull request #10194
a83a46d Fix logging deadlock (j-berman)
2025-11-11 21:51:35 +00:00
tobtoht 26cf4f9141 ledger: throw on secret view key export rejection 2025-11-11 20:57:56 +01:00
j-berman a83a46d600 Fix logging deadlock 2025-11-11 10:44:26 -08:00
0xFFFC0000 dafecd0add cryptonote_protocol: accurate next_needed_height when there is an overlap 2025-11-11 00:28:50 +03:30
selsta 64f2d8e45d build: prepare v0.18.4.4 2025-11-10 18:56:57 +01:00
tobtoht 3cc9d65c93 Merge pull request #10153
9239d36 wallet: identify spends in pool when scanning (j-berman)
2025-10-27 18:51:14 +00:00
luigi1111 7c6e84466a Merge pull request #10106
09f5cbb build: prepare v0.18.4.3 (selsta)
v0.18.4.3
2025-10-07 15:25:41 -04:00
luigi1111 fb76bc4d98 Merge pull request #10150
1829992 wallet2: warn instead of throw when RingDB doesn't include spend (j-berman)
2025-10-07 15:25:05 -04:00
luigi1111 020d980647 Merge pull request #10149
014f3cd cryptonote_basic: remove redundant call to get_transaction_hash() in overload (jeffro256)
2025-10-07 15:24:35 -04:00
luigi1111 de73139f42 Merge pull request #10148
7b53197 Cleaner validation (faster and saner) (j-berman)
2025-10-07 15:23:52 -04:00
luigi1111 f350ebdeeb Merge pull request #10125
cfc41b3 Daemon RPC: fix on_getblockhash error return on too high height (j-berman)
2025-10-07 15:19:25 -04:00
j-berman 9239d36691 wallet: identify spends in pool when scanning
- Make sure to mark identified spends in the pool as spends. The
wallet might not know these have been spent if it wasn't the wallet
that relayed the tx to the daemon, or the wallet was cleared via
rescan_bc.
- Make sure to add spends to m_unconfirmed_txs if not present.
- Make sure to process the entire pool again if refreshing for
the first time. The wallet fetches pool and blocks at the same
time. The wallet scans blocks first, then pool. If the wallet
identifies received outputs in the chain, then it may have spent
those received outputs in the pool. So we make sure to re-process
the entire pool again after scanning the chain for the first time.
- Multisig wallets that know about spent key images can now detect
spend txs in the pool. Update tests for that.
2025-10-07 11:02:17 -07:00
selsta 09f5cbbb98 build: prepare v0.18.4.3 2025-10-07 16:36:04 +02:00
j-berman 1829992970 wallet2: warn instead of throw when RingDB doesn't include spend
A reorg can end up causing an output's position in the chain to
move. Since the wallet doesn't update the RingDB on reorg, it
may refer to the output's stale position in the chain.

This seems a reasonable solution rather than introducing complex
logic to update the stale ring member's value on rerog, since
RingDB can be deprecated with FCMP++.
2025-10-06 13:25:19 -07:00
jeffro256 014f3cd0a1 cryptonote_basic: remove redundant call to get_transaction_hash() in overload
Issue noticed by DataHoarder.
2025-10-06 15:05:20 -05:00
j-berman 7b53197571 Cleaner validation (faster and saner) 2025-10-05 17:56:57 -07:00
j-berman cfc41b3bdc Daemon RPC: fix on_getblockhash error return on too high height 2025-09-29 10:56:34 -07:00
tobtoht a440e91790 Merge pull request #9901
9a45208 Daemon RPC: add max_block_count field to /getblocks.bin (j-berman)
2025-09-28 18:37:02 +00:00
tobtoht 6ee94b07df Merge pull request #10098
13e28ea simplewallet: batch address creation limit to match rpc (nahuhh)
2025-09-28 18:35:30 +00:00
tobtoht 6552aa6165 Merge pull request #10104
39c7a22 Send ZMQ miner notifications after txpool additions (WeebDataHoarder)
2025-09-28 18:34:03 +00:00
tobtoht ca58206a57 Merge pull request #10112
dd82d28 removing lza_menace seed nodes (lza_menace)
2025-09-28 18:32:24 +00:00
tobtoht be2cccf84b Merge pull request #10113
2879885 p2p: Improved peer selection with /24 subnet deduplication to disadvantage 'spy nodes' [v0.18] (rbrunner7)
2025-09-28 18:31:28 +00:00