j-berman
2dab31f62f
Don't exclusively drop tor/i2p outgoing cxns in idle loop
2 years ago
Jeffrey
12b1b74d32
Trimming Fat
...
Remove unused include statements or unused definitions.
2 years ago
luigi1111
bb093ec9a8
Merge pull request #8223
...
17772ef
Eliminate dependence on boost::interprocess #8223 (Jeffrey)
2 years ago
Jeffrey
17772ef53e
Eliminate dependence on boost::interprocess #8223
...
In this repo, `boost::interprocess` was being used soley to make `uint32_t` operations atomic. So I replaced each instance of
`boost::interprocess::ipcdetail::atomic(...)32` with `std::atomic` methods. I replaced member declarations as applicable. For example,
when I needed to change a `volatile uint32_t` into a `std::atomic<uint32_t>`. Sometimes, a member was being used a boolean flag, so
I replaced it with `std::atomic<bool>`.
You may notice that I didn't touch `levin_client_async.h`. That is because this file is entirely unused and will be deleted in PR monero-project#8211.
Additional changes from review:
* Make some local variables const
* Change postfix operators to prefix operators where value was not need
2 years ago
mj-xmr
da9aa1f7f8
Copyright: Update to 2022
2 years ago
moneromooo-monero
1f81f5f5c1
protocol: fix spurious rejection of downloaded blocks
...
when kicking a peer for inactivity, clear the set of requested blocks,
or next time we requests blocks from it, we'll probably reject the
incoming blocks due to missing the previous requested blocks
3 years ago
anon
9154883f3e
node_server: fix race condition
3 years ago
moneromooo-monero
d689b946f9
protocol: fix delayed "you are now synchronized..." message
3 years ago
luigi1111
b7ee587ddb
Merge pull request #7691
...
cbd54ea
cmake: set 3.5 as minimum version (selsta)
3 years ago
selsta
cbd54ea524
cmake: set 3.5 as minimum version
3 years ago
moneromooo-monero
2b918068cc
protocol: remove unreachable code
3 years ago
luigi1111
63c7ca07fb
Merge pull request #7136
...
23aae55
Remove payload copy in all outgoing p2p messages (Lee Clagett)
3 years ago
luigi1111
b12e195fba
Merge pull request #7620
...
fe63256
cryptonote_protocol_handler: fix race condition (anon)
ded2f3a
cryptonote_protocol_handler: add race condition demo (anon)
3 years ago
luigi1111
8c8197463f
Merge pull request #7310
...
76fe73b
Revert 'fix accessing an network address in a deleted context' (selsta)
3 years ago
anon
fe632560f4
cryptonote_protocol_handler: fix race condition
3 years ago
luigi1111
ce5800a225
Merge pull request #7346
...
85db173
Remove unused variables in monero codebase (Kevin Barbour)
3 years ago
luigi1111
2222d90491
Merge pull request #7294
...
f10c9a1
remove obsolete pruning debug code (moneromooo-monero)
3 years ago
Kevin Barbour
85db1734e7
Remove unused variables in monero codebase
...
There are quite a few variables in the code that are no longer
(or perhaps never were) in use. These were discovered by enabling
compiler warnings for unused variables and cleaning them up.
In most cases where the unused variables were the result
of a function call the call was left but the variable
assignment removed, unless it was obvious that it was
a simple getter with no side effects.
3 years ago
Lee Clagett
679d05567d
Remove payload copy in all outgoing p2p messages
3 years ago
luigi1111
e45619e61e
Revert "Merge pull request #7136"
...
This reverts commit 63c7ca07fb
, reversing
changes made to 2218e23e84
.
3 years ago
Lee Clagett
23aae5571b
Remove payload copy in all outgoing p2p messages
3 years ago
luigi1111
1f3f07d0e7
Merge pull request #7236
...
ab5e185
protocol: fix wrong command in logs (moneromooo-monero)
3 years ago
luigi1111
d259ed0740
Merge pull request #7119
...
dd5e689
protocol: add calls to reserve where appropriate (moneromooo-monero)
3 years ago
selsta
76fe73b8bd
Revert "fix accessing an network address in a deleted context"
...
This reverts commit 4e74385a1a
.
3 years ago
moneromooo-monero
f10c9a16c4
remove obsolete pruning debug code
3 years ago
Alexander Blair
747699541e
Merge pull request #7285
...
927141bcc
Command max_bytes moved from dynamic map to static switch (Lee Clagett)
3 years ago
luigi1111
69e4a2c62d
Merge pull request #7266
...
38a6e6e
protocol: handle receiving a block hash we've not added yet (moneromooo-monero)
3 years ago
Alexander Blair
dbaf95ac77
Merge pull request #7271
...
4e74385a1
fix accessing an network address in a deleted context (moneromooo-monero)
3 years ago
moneromooo-monero
b652d598d1
add a max levin packet size by command type
3 years ago
moneromooo-monero
4e74385a1a
fix accessing an network address in a deleted context
...
Both drop_connection and add_host_fail can drop the connection,
which invalidates the context, and thus the address it contains.
Thanks to wfaressuissia[m] for lots of help and prodding when
debugging this
3 years ago
moneromooo-monero
38a6e6eb26
protocol: handle receiving a block hash we've not added yet
4 years ago
Alexander Blair
16c780d568
Merge pull request #7250
...
61b6e4cc6
Add aggressive restrictions to pre-handshake p2p buffer limit (Lee Clagett)
4 years ago
Alexander Blair
3bf0721ae6
Merge pull request #7246
...
0aa541b36
protocol: more sanity checks in new chain block hashes (moneromooo-monero)
4 years ago
moneromooo-monero
0aa541b361
protocol: more sanity checks in new chain block hashes
4 years ago
moneromooo-monero
ab5e185140
protocol: fix wrong command in logs
...
this is not a levin packet, this is just its payload
4 years ago
moneromooo-monero
31c69923ba
protocol: don't reset last request time on an idle timer
...
this prevents losing time of "idle time" for a peer, which could
otherwise be reset by another timed sync command from the peer
4 years ago
moneromooo-monero
bcdc6c62b7
protocol: fix false positives dropping peers
...
it'd trigger on reorgs
4 years ago
luigi1111
025db3d2b4
Revert "Reject existing claimed blocks in sync mode"
4 years ago
Alexander Blair
d61fdebaac
Merge pull request #7188
...
efe83982d
protocol: drop nodes if they claim new data but only give stale data (moneromooo-monero)
4 years ago
Alexander Blair
609dbe6b92
Merge pull request #7154
...
cf7e1571d
protocol: reject claimed block hashes that already are in the chain (moneromooo-monero)
af0a25544
protocol: drop peers we can't download anything from in sync mode (moneromooo-monero)
4 years ago
moneromooo-monero
efe83982d3
protocol: drop nodes if they claim new data but only give stale data
...
Some joker is spending time actually doing this
4 years ago
Lee Clagett
927141bcc4
Command max_bytes moved from dynamic map to static switch
4 years ago
luigi1111
7ee37e4b38
Merge pull request #7075
...
f3c0d4f
protocol: remove unused (and cunningly uninitialized) field (moneromooo-monero)
8e62362
p2p: ifx getting seed nodes for uncommon cases (moneromooo-monero)
4 years ago
moneromooo-monero
5a1ac9c0ef
rpc: add a busy_syncing field to get_info
...
true if and pretty much only if new blocks are being added
4 years ago
moneromooo-monero
cf7e1571d3
protocol: reject claimed block hashes that already are in the chain
4 years ago
Lee Clagett
61b6e4cc67
Add aggressive restrictions to pre-handshake p2p buffer limit
4 years ago
moneromooo-monero
af0a25544e
protocol: drop peers we can't download anything from in sync mode
...
instead of the (incorrect) check for whether we think we might have
a user for it at some point in the near future. We can reconnect.
4 years ago
moneromooo-monero
f3c0d4f9df
protocol: remove unused (and cunningly uninitialized) field
4 years ago
luigi1111
e5decd0cde
Merge pull request #7130
...
543733d
protocol: include first new block in chain entry response (moneromooo-monero)
4 years ago
luigi1111
a57c95b2f1
Merge pull request #7127
...
5d1849a
protocol: stricter checks on received chain hash list (moneromooo)
4 years ago