SChernykh
884d0f180a
TCP server: log IP addresses in more places
3 years ago
SChernykh
b31adbd5ae
Added macOS build
3 years ago
SChernykh
70ff4ba859
Tweaked peer list logic
3 years ago
SChernykh
75843e9b37
P2PServer: don't broadcast stale blocks
3 years ago
SChernykh
1a83610299
P2PServer: simplified the code a bit
3 years ago
SChernykh
780afd84a2
Added checks for tx keys
3 years ago
SChernykh
662a7e91c8
P2PServer: always ban IPs that send bad blocks
3 years ago
SChernykh
7b197824fe
P2PServer: add peers from the command line to the peer list on startup
3 years ago
SChernykh
114f6b627b
P2PServer: don't allow multiple connections to/from the same IP
3 years ago
SChernykh
4757cdb8e2
P2PServer: added 1 second grace time for stale shares
...
Only for shares that lag 1 Monero block behind
3 years ago
SChernykh
dac74a8829
Update p2p_server.cpp
3 years ago
SChernykh
456f5d356f
P2PServer: ban peers only after handshake finished and failed
3 years ago
SChernykh
14bb308794
P2PServer: clear m_missingBlockRequests when there is nothing missing
3 years ago
SChernykh
f9be0de8d2
P2PServer: ask peers about unknown blocks only once
3 years ago
SChernykh
81a12158fc
P2PServer: don't add banned peers back to the peer list
3 years ago
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
3 years ago
SChernykh
dbf18c34a4
Fixed wrong uv loop in p2pserver::flush_cache()
3 years ago
SChernykh
7ab3c22114
Give only 5 seconds for new connections to complete handshake
...
This is to detect random port scans/non-p2pool connections quickly
3 years ago
SChernykh
a27577f735
Added log level 6 to reduce spam on level 5
...
Log level 5 is still default
3 years ago
SChernykh
09aedd9f9a
Drop idle connections
...
Idle = didn't send any full messages in the last 5 minutes
3 years ago
SChernykh
6de98697a1
Only warn about lagging monerod if it's 2 or more blocks behind
3 years ago
SChernykh
20b3886bfb
Less tolerance to lagging nodes
...
Ban nodes that are 5 or more Monero blocks behind.
3 years ago
SChernykh
69533fd209
Store only fully verified blocks in the cache
3 years ago
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
3 years ago
SChernykh
25ef5733a7
Skip duplicates in the saved peers list
3 years ago
SChernykh
fda80e3556
Sanity check
3 years ago
SChernykh
df52838433
Removed some noisy warning messages
3 years ago
SChernykh
510b7dbb85
Add files
3 years ago