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
luigi1111
d259ed0740
Merge pull request #7119
...
dd5e689
protocol: add calls to reserve where appropriate (moneromooo-monero)
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
3 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
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
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
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
moneromooo-monero
543733d42c
protocol: include first new block in chain entry response
4 years ago
moneromooo
5d1849a9eb
protocol: stricter checks on received chain hash list
4 years ago
moneromooo-monero
62e8ca5eaf
protocol: revert incoming chain height check against local chain
...
We can actually request a chain that's further away from what we
have as we buffer more and more
4 years ago
Alexander Blair
0f67569279
Merge pull request #7121
...
cd7e9769d
protocol: one more sanity check on usable data from a peer (moneromooo-monero)
4 years ago
Alexander Blair
bdaadf85dc
Merge pull request #7117
...
5dee031b2
protocol: add a sanity check to the number of block hashes sent (moneromooo-monero)
4 years ago
Alexander Blair
bb6d2d4b05
Merge pull request #7114
...
eb77790df
protocol: fix asking for pruned blocks for v10 (moneromooo-monero)
4 years ago
Alexander Blair
28e5e42986
Merge pull request #7110
...
d660f22ed
protocol: drop origin IP if a block fails to verify in sync mode (moneromooo-monero)
4 years ago
Alexander Blair
5b62a6f316
Merge pull request #7106
...
0f34cabb9
protocol: more restrictive checks on chain entry response (moneromooo-monero)
4 years ago
Alexander Blair
1e9483a2d5
Merge pull request #7009
...
7414e2bac
Change epee binary output from std::stringstream to byte_stream (Lee Clagett)
4 years ago
moneromooo-monero
cd7e9769d8
protocol: one more sanity check on usable data from a peer
4 years ago
moneromooo-monero
d660f22ed1
protocol: drop origin IP if a block fails to verify in sync mode
...
It would otherwise be possible for a peer to send bad blocks,
then disconnect and reconnect again, escaping bans
4 years ago
moneromooo-monero
dd5e689533
protocol: add calls to reserve where appropriate
4 years ago
moneromooo-monero
5dee031b25
protocol: add a sanity check to the number of block hashes sent
4 years ago
moneromooo-monero
eb77790dfb
protocol: fix asking for pruned blocks for v10
...
Old format is still alloewd there, this is a two fork update
4 years ago
moneromooo-monero
0f34cabb98
protocol: more restrictive checks on chain entry response
4 years ago
moneromooo-monero
19f77578e0
protocol: fix switchting to adding blocks if noone's adding the next span
4 years ago
moneromooo
ff7fdf6db2
protocol: drop peers that don't reply to queries
4 years ago
moneromooo
c74d8ffd63
protocol: drop peers that decrease claimed height
4 years ago
moneromooo
61f5001c3f
protocol: add scoring system to drop peers that don't behave
4 years ago
luigi1111
36d31ba0be
Merge pull request #7018
...
a9cd5d9
cryptonote_core: dandelion - use local height or median height if syncing (xiphon)
4 years ago
xiphon
a9cd5d914e
cryptonote_core: dandelion - use local height or median height if syncing
4 years ago
moneromooo-monero
f9527e608e
protocol: reject empty incoming block messages
4 years ago
xiphon
a12a8174e0
Dandelion++: skip desynced peers in stem phase
4 years ago
Lee Clagett
7414e2bac1
Change epee binary output from std::stringstream to byte_stream
4 years ago
Alexander Blair
dd7fd2ef80
Merge pull request #6753
...
4ff2074c7
cryptonote_protocol: don't synced pruned blocks before v11 (cohcho)
4 years ago
Alexander Blair
c6c4ead44e
Merge pull request #6614
...
fb31167b1
Wallet, daemon: From 'help_advanced' back to 'help', and new 'apropos' command (rbrunner7)
4 years ago