Commit graph

146 commits

Author SHA1 Message Date
SChernykh
4fa344a0f7 Refactored DNS TXT resolver code 2023-05-12 10:37:58 +02:00
SChernykh
bba4f8d0c5 Fixed headers for res_query 2023-05-11 09:21:10 +02:00
SChernykh
db9e5ba332 P2PServer: prefer DNS TXT records to load seed nodes 2023-05-10 22:07:35 +02:00
SChernykh
689fa14cfd Fixed cppcheck errors 2023-05-10 10:35:23 +02:00
SChernykh
c94b627808 TCPServer: use /64 prefix to ban IPv6 peers 2023-04-27 10:28:32 +02:00
SChernykh
51a075c0df P2PServer: fixed buf_size checks 2023-04-21 14:59:47 +02:00
SChernykh
8bf045974f BlockTemplate code refactoring
- Moved block constants to one place
- Tuned block template max transaction limiter
2023-04-21 11:13:48 +02:00
SChernykh
6e258bb210 Refactored TCPServer to reduce code duplication 2023-04-19 16:37:32 +02:00
SChernykh
5c67f0df20 P2PServer: truncate too long peers list in api 2023-03-27 12:15:33 +02:00
SChernykh
3697c079fa Fixed cppcheck error 2023-03-27 11:47:48 +02:00
SChernykh
2e6041dcf5 P2PServer: add local api data 2023-03-27 11:16:57 +02:00
SChernykh
b6c1b1a6d7 P2PServer: log time it took to relay a block 2023-03-21 11:22:48 +01:00
SChernykh
19cc044cab Added UPnP port forwarding 2023-03-19 23:02:09 +01:00
SChernykh
146d29b627 Don't let user connect to a node without ZMQ 2023-03-10 15:02:07 +01:00
SChernykh
12a011a9ff TCPServer: removed unnecessary mutex 2023-02-27 15:59:42 +01:00
SChernykh
1cfacf4118 Code cleanup and fixes 2023-01-28 09:58:32 +01:00
SChernykh
25d083ef25 Show Monero node in status 2023-01-27 17:42:00 +01:00
SChernykh
c7ba11c607 Retry getaddrinfo with IPv4 only after an error 2023-01-27 10:29:04 +01:00
SChernykh
595196b5ec Reduced transaction time-to-include delay
Based on data from https://rucknium.me/posts/monero-pool-transaction-delay/
> 95 percent all transactions arrived at all five Monero nodes within a five-second interval.
2023-01-20 13:14:58 +01:00
SChernykh
c855bb769a PoolBlock: removed unnecessary mutex 2023-01-17 13:20:09 +01:00
SChernykh
d4329ae594 Show file:line where panic() was called from 2023-01-14 12:37:08 +01:00
SChernykh
b346b93285 Updated copyright 2023-01-04 13:07:55 +01:00
SChernykh
da12b329be Check the block id returned by BLOCK_RESPONSE 2022-12-14 14:24:09 +01:00
SChernykh
3902612c4b P2PServer: show more data for connected peers 2022-12-09 11:31:05 +01:00
SChernykh
3e4f877ec0 Display software name in peers list 2022-12-02 15:43:20 +01:00
SChernykh
220c6939b1 Ignore shares from peers who have lagging monerod
More than 10 seconds lag is unacceptable
2022-11-28 08:29:38 +01:00
SChernykh
9283677a2b Sync test: log more data in the end 2022-11-24 11:06:18 +01:00
SChernykh
7eec4d742c P2PServer: removed an unnecessary lock 2022-11-22 09:57:50 +01:00
SChernykh
c5f3a03d1e Improved peers display 2022-11-10 19:56:14 +01:00
SChernykh
da9cdf7df3 Send our P2Pool version to other peers 2022-11-10 14:31:02 +01:00
SChernykh
25806b67a2 Added protocol version negotiation
Protocol version 1.1: compact block broadcasts
2022-11-09 22:56:12 +01:00
SChernykh
47ff7e228e Added code to deserialize compact blobs 2022-11-09 16:21:31 +01:00
SChernykh
c135787620 Prepare compact blob for block broadcasts
Reference transactions by index in the parent block instead of storing full 32 bytes per transaction
2022-11-09 12:40:45 +01:00
SChernykh
bbc3d44526 P2PServer: tidy up PEER_LIST_RESPONSE messages 2022-11-08 16:36:09 +01:00
SChernykh
19414b061b Refactored BackgroundJobTracker 2022-11-04 10:20:32 +01:00
SChernykh
74b5ab1798 Force update block template after 30 seconds
To get new transactions in
2022-11-04 07:47:07 +01:00
SChernykh
83cda110aa P2PServer: tweaked invalid timestamp messages 2022-11-03 21:19:48 +01:00
SChernykh
0df11d24f5 P2PServer: tweaked invalid timestamp logic 2022-11-03 16:14:56 +01:00
SChernykh
a6c27a1e3f P2PServer: checks timestamps only for new blocks 2022-11-03 15:20:38 +01:00
SChernykh
c090b0cf62 P2PServer: tweaked invalid timestamp logic 2022-11-03 13:52:29 +01:00
SChernykh
45660e3d96 Show wallet address in error messages and status 2022-11-03 11:38:43 +01:00
SChernykh
732190bb11 P2PServer: sanity check for timestamps 2022-11-03 08:51:06 +01:00
SChernykh
255d312ae0 SideChain: log blocks with the same id 2022-11-02 12:49:12 +01:00
SChernykh
07b460147e P2PServer: added missing time check 2022-11-01 16:07:13 +01:00
SChernykh
65a9574e52 Added --p2p-external-port command line parameter 2022-10-28 14:06:26 +02:00
SChernykh
fd6b2360aa Fix: uv_close was called from wrong thread 2022-10-07 16:02:08 +02:00
SChernykh
eabf856dbd Removed redundant m_sideChainData 2022-10-04 15:49:58 +02:00
SChernykh
6a66615f37 Removed redundant m_mainChainData 2022-10-03 18:42:32 +02:00
SChernykh
ed78e9df6e More reliable file load/save 2022-09-13 18:48:00 +02:00
SChernykh
f044149004 P2PServer fix: reset ping time on disconnect 2022-09-13 16:14:54 +02:00