SChernykh
25772abc0f
Show block share % in status
2021-09-07 09:53:38 +02:00
SChernykh
7b0cc256c5
P2PServer: ban peers that disconnect without finishing handshake
2021-09-06 16:17:20 +02:00
SChernykh
884d0f180a
TCP server: log IP addresses in more places
2021-09-05 20:21:33 +02:00
SChernykh
b31adbd5ae
Added macOS build
2021-09-05 12:10:40 +02:00
SChernykh
70ff4ba859
Tweaked peer list logic
2021-09-02 19:21:38 +02:00
SChernykh
75843e9b37
P2PServer: don't broadcast stale blocks
2021-08-31 23:41:05 +02:00
SChernykh
1a83610299
P2PServer: simplified the code a bit
2021-08-31 23:11:58 +02:00
SChernykh
780afd84a2
Added checks for tx keys
2021-08-31 17:23:20 +02:00
SChernykh
662a7e91c8
P2PServer: always ban IPs that send bad blocks
2021-08-31 13:14:35 +02:00
SChernykh
7b197824fe
P2PServer: add peers from the command line to the peer list on startup
2021-08-31 11:16:40 +02:00
SChernykh
114f6b627b
P2PServer: don't allow multiple connections to/from the same IP
2021-08-31 10:41:41 +02:00
SChernykh
4757cdb8e2
P2PServer: added 1 second grace time for stale shares
...
Only for shares that lag 1 Monero block behind
2021-08-31 09:58:57 +02:00
SChernykh
dac74a8829
Update p2p_server.cpp
2021-08-29 17:42:49 +02:00
SChernykh
456f5d356f
P2PServer: ban peers only after handshake finished and failed
2021-08-29 17:26:30 +02:00
SChernykh
14bb308794
P2PServer: clear m_missingBlockRequests when there is nothing missing
2021-08-27 21:09:35 +02:00
SChernykh
f9be0de8d2
P2PServer: ask peers about unknown blocks only once
2021-08-27 17:26:42 +02:00
SChernykh
81a12158fc
P2PServer: don't add banned peers back to the peer list
2021-08-27 16:36:06 +02:00
SChernykh
3f1ee9ce4b
TCPServer fixes
...
- Proper shutdown sequence, uv_close() must be called from the event loop thread
- Moved start_listening() to child class constructor because it must be ready before it can listen on sockets
- Added simple memory leak detector for Windows. Linux users can enjoy the leak sanitizer
2021-08-26 23:57:59 +02:00
SChernykh
dbf18c34a4
Fixed wrong uv loop in p2pserver::flush_cache()
2021-08-25 11:31:50 +02:00
SChernykh
7ab3c22114
Give only 5 seconds for new connections to complete handshake
...
This is to detect random port scans/non-p2pool connections quickly
2021-08-25 11:14:23 +02:00
SChernykh
a27577f735
Added log level 6 to reduce spam on level 5
...
Log level 5 is still default
2021-08-25 09:38:47 +02:00
SChernykh
09aedd9f9a
Drop idle connections
...
Idle = didn't send any full messages in the last 5 minutes
2021-08-24 21:45:19 +02:00
SChernykh
6de98697a1
Only warn about lagging monerod if it's 2 or more blocks behind
2021-08-24 20:10:16 +02:00
SChernykh
20b3886bfb
Less tolerance to lagging nodes
...
Ban nodes that are 5 or more Monero blocks behind.
2021-08-24 17:19:10 +02:00
SChernykh
69533fd209
Store only fully verified blocks in the cache
2021-08-24 13:46:38 +02:00
SChernykh
aba3bc50b8
Block cache WIP and other fixes
...
- Block cache is implemented only on Windows for now
- Tracking of background jobs
- More robust sidechain syncing
2021-08-24 11:42:41 +02:00
SChernykh
25ef5733a7
Skip duplicates in the saved peers list
2021-08-23 23:12:52 +02:00
SChernykh
fda80e3556
Sanity check
2021-08-23 23:09:59 +02:00
SChernykh
df52838433
Removed some noisy warning messages
2021-08-23 14:05:07 +02:00
SChernykh
510b7dbb85
Add files
2021-08-22 12:20:59 +02:00