Commit Graph

10018 Commits

Author SHA1 Message Date
SChernykh 5de14c44ec
Fixed issues found by static analysis
- rolling_median: tried to free uninitialized pointer in a constructor
- net_node.inl: erase-remove idiom was used incorrectly. remove_if doesn't actually remove elements, see http://cpp.sh/6fcjv
- bulletproofs.cc: call to sizeof() instead of vector.size(), luckily it only impacts performance and not code logic there
2021-01-02 11:02:20 +03:00
moneromooo-monero b62d6648eb
db_lmdb: move spammy "not found in db" message to TRACE
These are functions that check whether a tx is in the db, so whether
it is there or not is really not interesting, and it seems to scare
people from time to time
2021-01-02 11:02:08 +03:00
codesoap 3e36df73ac
simplewallet: add "address mnew" command 2021-01-02 11:01:57 +03:00
Lee Clagett 6a2abebb94
Restrict duplicate keys in epee binary format 2021-01-02 10:59:36 +03:00
xiphon 6675069dcf
portable_storage: forbid unnamed sections 2021-01-02 10:59:22 +03:00
moneromooo-monero c44dbc582f
protocol: more sanity checks in new chain block hashes 2021-01-02 10:59:08 +03:00
moneromooo 6375b913d9
portable_storage: check object limit where appropriate
also fix pedantic off by one in check
2021-01-02 10:58:54 +03:00
moneromooo 31dc71afaf
p2p: fix deadlock banning while updating peer lists 2021-01-02 10:58:43 +03:00
moneromooo-monero 45a462eb91
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
2021-01-02 10:58:33 +03:00
Lee Clagett b4206cea5a
Add aggressive restrictions to pre-handshake p2p buffer limit 2021-01-02 10:57:50 +03:00
moneromooo-monero 03b8228b35
rpc: limit the number of txes for get_blocks.bin 2021-01-02 10:57:12 +03:00
moneromooo-monero 58404d389c
portable_storage: remove array element limit
some people don't want it
2021-01-02 10:57:01 +03:00
anon 1ec6d5ccda
ssl: buffered handshake detection 2021-01-02 10:56:49 +03:00
moneromooo-monero 6de11d0718
epee: fix some issues using connections after shutdown 2021-01-02 10:56:31 +03:00
moneromooo-monero b56a9f5bad
protocol: fix false positives dropping peers
it'd trigger on reorgs
2021-01-02 10:56:20 +03:00
moneromooo-monero 63381702d8
portable_storage: remove overly aggressive cutoff 2021-01-02 10:56:06 +03:00
moneromooo-monero 50e25e681c
cryptonote_basic: guess what got lost porting patches to branches again 2021-01-02 10:55:54 +03:00
luigi1111 4efba60bc1
Revert "Reject existing claimed blocks in sync mode" 2021-01-02 10:55:41 +03:00
moneromooo-monero a7e3955772
portable_storage: add some sanity checks on data size
especially when allocated size is >> serialized data size
2021-01-02 10:55:24 +03:00
moneromooo-monero 0afd50384f
protocol: drop nodes if they claim new data but only give stale data
Some joker is spending time actually doing this
2021-01-02 10:55:13 +03:00
moneromooo-monero 9e4e28b25c
ban lists may now include subnets 2021-01-02 10:54:58 +03:00
moneromooo-monero 295d46a1fc
restrict public node checks a little
do not include blocked hosts in peer lists or public node lists by default,
warn about no https on clearnet and about untrusted peers likely being spies
2021-01-02 10:54:46 +03:00
xiphon 10f9008b9c
rpc: get_info - add 'synchronized' field 2021-01-02 10:54:34 +03:00
moneromooo-monero b042506baa
protocol: reject claimed block hashes that already are in the chain 2021-01-02 10:54:23 +03:00
moneromooo-monero 879715610d
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.
2021-01-02 10:54:15 +03:00
moneromooo-monero 819d40fc7e
p2p: remove peers from grey and anchors lists when blocked 2021-01-02 10:53:32 +03:00
moneromooo-monero a88448499b
Optional DNS based blocklist
If enabled, pulls IPs to block on blocklist.moneropulse.*, and
blocks then for 8 days (so IPs dropping from the list will
eventually get unblocked, and DNS failures don't result in
instant clearing of the blocklist).

Enable with --enable-dns-blocklist
2021-01-02 10:53:22 +03:00
moneromooo-monero ffa987003a
daemon: the ban command can now load IPs from a file (ban @filename) 2021-01-02 10:49:58 +03:00
Lee Clagett 8088f8d894
Fix byte_stream::put_n 2021-01-02 10:43:02 +03:00
moneromooo-monero 8547473c83
p2p: ignore incoming peer list entries when we have them blocked 2021-01-02 10:42:51 +03:00
jwinterm 4b1d0f2340 Merge pull request 'update checkpoints, bump version' (#353) from wowario/wownero:cp-version into master
Reviewed-on: https://git.wownero.com/wownero/wownero/pulls/353
2020-12-19 15:30:57 +00:00
jwinterm 90fbc9b181 Merge pull request 'upstream' (#351) from wowario/wownero:up into master
Reviewed-on: https://git.wownero.com/wownero/wownero/pulls/351
2020-12-19 15:30:17 +00:00
moneromooo-monero f2949f7cf4
rpc: add a busy_syncing field to get_info
true if and pretty much only if new blocks are being added
2020-12-18 14:10:43 +03:00
moneromooo-monero c9b9251fd4
protocol: include first new block in chain entry response 2020-12-13 07:52:44 +03:00
moneromooo cd580e0e3c
protocol: stricter checks on received chain hash list 2020-12-13 07:52:22 +03:00
moneromooo-monero 801ac3ce56
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
2020-12-13 07:51:58 +03:00
moneromooo-monero 23bf7c9813
cmake: fix "release" version string on tagged releases
It would not say "release" if we're on a previous tag
2020-12-11 07:51:17 +03:00
moneromooo-monero 97d3f9d408
protocol: one more sanity check on usable data from a peer 2020-12-11 07:50:41 +03:00
moneromooo-monero f4fac80752
protocol: add a sanity check to the number of block hashes sent 2020-12-11 07:50:02 +03:00
moneromooo-monero 516555402d
protocol: fix asking for pruned blocks for v10
Old format is still alloewd there, this is a two fork update
2020-12-11 07:49:33 +03:00
moneromooo-monero a42b6750b1
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
2020-12-11 07:48:33 +03:00
moneromooo-monero 09a2b6f2e8
protocol: more restrictive checks on chain entry response 2020-12-11 07:48:06 +03:00
Howard Chu 08b99c749d
depends: Update OpenSSL to 1.1.1i
Remove some obsolete patches (they were integrated upstream).
Tweak to work with Android support (they second-guess our CC definition, etc).
2020-12-11 07:46:42 +03:00
Lee Clagett 0b8bf308ce
Change epee binary output from std::stringstream to byte_stream 2020-12-11 07:46:14 +03:00
Lee Clagett a3033e741b
Change to more efficient allocation strategy in byte_stream 2020-12-11 07:45:41 +03:00
mj-xmr f37d960f75
Clang-tidy integrated into CMakeLists.txt
Can be called from the source directory with:
utils/health/clang-tidy-run.sh
2020-12-11 07:44:53 +03:00
mj-xmr a76c6b9cae
Add ClangBuildAnalyzer under utils/health for analyzing build times 2020-12-11 07:44:16 +03:00
moneromooo-monero eb6469b7a5
protocol: fix switchting to adding blocks if noone's adding the next span 2020-12-11 07:43:00 +03:00
wowario c3137f7695
update checkpoints, bump version 2020-12-10 09:29:46 +03:00
wowario f4285bf135 Update '.drone.yml' 2020-12-10 05:13:53 +00:00