SChernykh
0be078cb09
StartumServer: moved warnings to log level 4
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
8304d81961
Prepare for mainnet test
3 years ago
SChernykh
27c2aab145
Check network type at startup
...
- Make network type part of consensus ID to avoid mixing p2pool nodes from mainnet and testnet/stagenet
- Check that wallet address matches the network type of monerod
3 years ago
SChernykh
afca83d6c2
BlockCache: check block size before storing it
3 years ago
SChernykh
2761ce5af7
Fixed a leak in ZMQReader
3 years ago
SChernykh
776b1f561c
Fixed use after free on p2pool shutdown
3 years ago
SChernykh
715c0d4e14
Reduced cache size a bit
3 years ago
SChernykh
3ea71d51e5
Fixed crash on startup
3 years ago
SChernykh
f77e0434c6
Fixed TCPServer startup
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
27e85a922b
TCPServer: fixed more leaks on shutdown
3 years ago
SChernykh
4ba32277c1
Use p2pool-api branch for Monero
3 years ago
SChernykh
37f3312e1d
Submit received p2pool blocks to monerod when possible
3 years ago
SChernykh
125815b502
Made print_status() thread-safe
3 years ago
SChernykh
63e442dffd
print_status: fixed next payout display
3 years ago
SChernykh
0009eba307
Fix RandomX startup logic
...
Ensure that both RandomX caches initialize before stratum and p2p servers start.
3 years ago
SChernykh
276cc5f0fd
Fix Mac compilation
3 years ago
SChernykh
fa3146a8f3
Reverted force close TCP connections
3 years ago
SChernykh
230d3e4780
Fixed socket leak after a failed connection
3 years ago
SChernykh
d246ee1552
Enabled block cache for Mac
3 years ago
SChernykh
46b7c3e755
TCPServer: stop reading before closing connection
3 years ago
SChernykh
662865ad70
Reduced startup spam at log levels <= 5
3 years ago
SChernykh
68a4765f95
Force close TCP connections
3 years ago
SChernykh
924fd4b7bd
TCPServer: better tracking of used sockets
3 years ago
SChernykh
a38a7be73f
p2pool: submit block from the main thread only
3 years ago
SChernykh
8f93adf7a1
Refactored signal handler
...
Call the same stop() function as regular exit command
3 years ago
SChernykh
d8efb27374
Restrict uv_default_loop() to main thread
3 years ago
SChernykh
dbf18c34a4
Fixed wrong uv loop in p2pserver::flush_cache()
3 years ago
SChernykh
fcb9e25fb1
Print background jobs in status
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
336349e189
Show hashrate estimate in status
3 years ago
SChernykh
8f2493edfc
Log message fixes
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
cd532965e8
Code safety: BlockCache isn't supposed to be copied/moved
3 years ago
SChernykh
64885852dd
Limit max number of transactions in block template
...
Because if it's too high, it won't fit into p2p packet
3 years ago
SChernykh
6de98697a1
Only warn about lagging monerod if it's 2 or more blocks behind
3 years ago
SChernykh
02449bf9f9
Use UTC time for logging
3 years ago
SChernykh
e4be4c1a66
Fixed pruning logic
...
- Erase an element from m_blocksByHeight only if it's empty
- Remove blocks from unconnected alternative chains too when they get old enough (4xPPLNS window)
3 years ago
SChernykh
d4388bf9c0
Removed unnecessary lock
3 years ago
SChernykh
20b3886bfb
Less tolerance to lagging nodes
...
Ban nodes that are 5 or more Monero blocks behind.
3 years ago
SChernykh
a55545762b
Merge branch 'master' of https://github.com/SChernykh/p2pool
3 years ago
SChernykh
69533fd209
Store only fully verified blocks in the cache
3 years ago
SChernykh
90a977228b
Merge pull request #2 from hyc/cmds
...
Tweak command handling
3 years ago
SChernykh
4837b4c863
Added missing integrity check
3 years ago
SChernykh
15354e5a88
Update util.cpp
3 years ago
Howard Chu
0dc3baa480
Tweak command handling
...
Modularize, add help and exit commands.
Fix shutdown_tcp() and p2pool to make sure servers exit immediately
when terminating.
3 years ago
SChernykh
05d336c8e9
Update block_cache.cpp
3 years ago
SChernykh
1cf4071f9b
BlockCache (Linux version)
3 years ago
SChernykh
bf5db3db08
Update p2pool.cpp
3 years ago
SChernykh
3229909333
Update p2pool.cpp
3 years ago
SChernykh
9808685981
Update stratum_server.cpp
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
86b31ea821
Reduce broadcast spam after initial sync
3 years ago
SChernykh
25ef5733a7
Skip duplicates in the saved peers list
3 years ago
SChernykh
fda80e3556
Sanity check
3 years ago
SChernykh
6d3cfa2c7a
Couple more sanity checks
3 years ago
SChernykh
656f912a3e
Workaround for crashes on shutdown
3 years ago
SChernykh
c4d3f6f8b4
Fixed parse_address_list()
3 years ago
SChernykh
2f08a35ac7
Fixed logger thread start/stop logic
3 years ago
SChernykh
df52838433
Removed some noisy warning messages
3 years ago
SChernykh
39a8c68ab7
More clang fixes
3 years ago
SChernykh
4a5691e349
clang fixes
3 years ago
SChernykh
510b7dbb85
Add files
3 years ago