aboutsummaryrefslogtreecommitdiff
path: root/src/p2p/net_node.inl
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge pull request #3221Riccardo Spagni2018-02-161-0/+2
|\ \ | | | | | | | | | 2e584dcb p2p: do not try to connect to peers in offline mode (moneromooo-monero)
| * | p2p: do not try to connect to peers in offline modemoneromooo-monero2018-02-011-0/+2
| |/
* | Allow the number of incoming connections to be limitedErik de Castro Lopo2018-01-291-3/+54
| | | | | | | | | | | | It was already possible to limit outgoing connections. One might want to do this on home network connections with high bandwidth but low usage caps.
* | Rename delete_connections to delete_out_connectionsErik de Castro Lopo2018-01-291-1/+1
| | | | | | | | This rename is needed so that delete_in_connections can be added.
* | Rename connections_count to max_out_connection_countErik de Castro Lopo2018-01-291-10/+10
|/ | | | This is needed so that a max_in_connection_count can be added.
* Merge pull request #3145Riccardo Spagni2018-01-271-6/+6
|\ | | | | | | | | fd1dfac5 p2p: don't lookup seed IPs if using an exclusive peer (moneromooo-monero) b50182ae p2p: don't connect to seeds if using an exclusive peer (moneromooo-monero)
| * p2p: don't lookup seed IPs if using an exclusive peermoneromooo-monero2018-01-171-5/+5
| |
| * p2p: don't connect to seeds if using an exclusive peermoneromooo-monero2018-01-171-1/+1
| |
* | Update 2018 copyrightxmr-eric2018-01-261-1/+1
| |
* | p2p: fix picking peers off an empty gray listmoneromooo-monero2018-01-181-1/+4
|/
* Merge pull request #2928Riccardo Spagni2017-12-251-2/+5
|\ | | | | | | d28c388f p2p: stop net server before closing starting connections (moneromooo-monero)
| * p2p: stop net server before closing starting connectionsmoneromooo-monero2017-12-151-2/+5
| | | | | | | | | | | | This fixes a hang on exit due to race where a connection adds itself to the server after the starting connections are closed, but before the net server marks itself as stopped.
* | p2p: use size_t for arbitrary counters instead of uint8_tmoneromooo-monero2017-12-181-2/+2
| |
* | cryptonote_core does not depend on p2p anymoremoneromooo-monero2017-12-161-36/+1
| | | | | | | | | | | | As a followon side effect, this makes a lot of inline code included only in particular cpp files (and instanciated when necessary.
* | Merge pull request #2878Riccardo Spagni2017-12-161-4/+2
|\ \ | | | | | | | | | | | | abebe392 rpc: add offline state in info rpc (moneromooo-monero) 7696e849 core: make --offline also disable DNS lookups (moneromooo-monero)
| * | core: make --offline also disable DNS lookupsmoneromooo-monero2017-11-301-4/+2
| |/
* / Corrections in rate limiting / trottle code, especially in 'out' directionrbrunner72017-11-281-12/+10
|/ | | | | | | | | Deleted 3 out of 4 calls to method connection_basic::sleep_before_packet that were erroneous / superfluous, which enabled the elimination of a "fudge" factor of 2.1 in connection_basic::set_rate_up_limit; also ended the multiplying of limit values and numbers of bytes transferred by 1024 before handing them over to the global throttle objects
* move cryptonote command line options to cryptonote_coremoneromooo-monero2017-11-141-2/+3
| | | | Those have no reason to be in a generic module
* Fix an object lifetime bug in net load testsmoneromooo-monero2017-10-091-1/+1
| | | | | | | | | The commands handler must not be destroyed before the config object, or we'll be accessing freed memory. An earlier attempt at using boost::shared_ptr to control object lifetime turned out to be very invasive, though would be a better solution in theory.
* Upgrades to epee::net_utils::network_addressLee Clagett2017-10-051-4/+4
| | | | | | | | - internal nullptr checks - prevent modifications to network_address (shallow copy issues) - automagically works with any type containing interface functions - removed fnv1a hashing - ipv4_network_address now flattened with no base class
* Merge pull request #2428Riccardo Spagni2017-09-251-0/+2
|\ | | | | | | 054054c9 p2p: disable gray list housekeeping when an exclusive node is given (moneromooo-monero)
| * p2p: disable gray list housekeeping when an exclusive node is givenmoneromooo-monero2017-09-101-0/+2
| | | | | | | | | | | | | | Exclusive nodes may be used for privacy reasons, and thus we don't want to connect to other nodes, even for checking connectivity. See https://github.com/monero-project/monero/issues/2346
* | Merge pull request #2302Riccardo Spagni2017-09-211-0/+5
|\ \ | | | | | | | | | | | | ef005f5e p2p: add a couple early outs when the stop signal is received (moneromooo-monero) 80d361c7 abstract_tcp_server2: improve tracking/cancelling of early connections (moneromooo-monero)
| * | p2p: add a couple early outs when the stop signal is receivedmoneromooo-monero2017-08-161-0/+5
| | | | | | | | | | | | This avoids quicker exit
* | | Rename m_listenning_port to m_listening_portMaxXor2017-09-011-5/+5
| | |
* | | Delete UPnP port mapping on exitMaxXor2017-08-291-43/+95
| |/ |/|
* | print peer id in 0 padded hex for consistencymoneromooo-monero2017-08-231-6/+6
| |
* | cryptonote_protocol: misc fixes to the new sync algorithmmoneromooo-monero2017-08-211-0/+2
|/ | | | | | | | | | | Fix sync wedge corner case: It could happen if a connection went into standby mode, while it was the one which had requested the next span, and that span was still waiting for the data, and that peer is not on the main chain. Other peers can then start asking for that data again and again, but never get it as only that forked peer does. And various other fixes
* Merge pull request #2282Riccardo Spagni2017-08-151-0/+2
|\ | | | | | | 7fdc178a p2p: fix random peer index being too large (moneromooo-monero)
| * p2p: fix random peer index being too largemoneromooo-monero2017-08-111-0/+2
| |
* | Merge pull request #2236Riccardo Spagni2017-08-151-22/+22
|\ \ | | | | | | | | | cb2d5110 Tweak net logs so we get more info on why networking can't start (moneromooo-monero)
| * | Tweak net logs so we get more info on why networking can't startmoneromooo-monero2017-08-151-22/+22
| |/ | | | | | | This should prevent "silent" failures to start
* / p2p: fallback on seed nodes if we can't make a connectionmoneromooo-monero2017-08-091-6/+25
|/ | | | | | This avoids failing to connect to the network in case all known peers are unavailable (which can happen if the peer list is small).
* net_node: fix m_in_timedsync initializationmoneromooo-monero2017-08-081-0/+1
| | | | | This fixes nodes not being able to connect to nodes which use recent code. While there, init peer_id too.
* Merge pull request #2149Riccardo Spagni2017-08-071-0/+8
|\ | | | | | | | | | | | | | | 158c3ecf core: thread most of handle_incoming_tx (moneromooo-monero) f57ee382 cryptonote_protocol: retry stale spans early (moneromooo-monero) 90df52e1 cryptonote_protocol: light cleanup (moneromooo-monero) 84e23156 cryptonote_protocol: avoid spurious SYNCHRONIZED OK messages (moneromooo-monero) 5be43fcd cryptonote_protocol_handler: sync speedup (moneromooo-monero)
| * cryptonote_protocol_handler: sync speedupmoneromooo-monero2017-08-071-0/+8
| | | | | | | | | | | | | | | | A block queue is now placed between block download and block processing. Blocks are now requested only from one peer (unless starved). Includes a new sync_info coommand.
* | Merge pull request #2219Riccardo Spagni2017-08-071-6/+14
|\ \ | | | | | | | | | | | | 04ebfbfe p2p: close connections when exiting (moneromooo-monero) 9a10148c p2p: fix thread leak (moneromooo-monero)
| * | p2p: close connections when exitingmoneromooo-monero2017-07-291-0/+8
| | | | | | | | | | | | | | | This ensures they don't leak if they were in the middle of an async operation.
| * | p2p: fix thread leakmoneromooo-monero2017-07-281-6/+6
| |/
* / move get_proof_of_trust_hash from util.h to p2p_protocol_defs.hmoneromooo-monero2017-07-271-1/+1
|/ | | | | | This avoids having to include p2p_protocol_defs.h in util.h, as util.h is used a lot, and p2p_protocol_defs.h includes a lot of other things that most users don't need.
* Remove typeid use in network_addressmoneromooo-monero2017-06-281-8/+8
| | | | | | Since I had to add an ID to the derived classes anyway, this can be used instead. This removes an apparently pointless warning from CLANG too.
* Merge pull request #2073Riccardo Spagni2017-06-241-2/+6
|\ | | | | | | | | | | 07c4276c Don't issue a new timedsync while one is already in progress (Howard Chu) cf3a376c Don't timeout a slow operation that's making progress (Howard Chu) 340830de Fix PR#2039 (Howard Chu)
| * Don't issue a new timedsync while one is already in progressHoward Chu2017-06-151-2/+6
| | | | | | | | | | | | | | | | A timedsync is issued every minute on a connection, but the input tineout is 2 minutes. This means a new sync request could be issued while a slow sync request was already in progress. The additional request will further clog the network on a slow connection, and cause a premature timeout.
* | abstracted nework addressesmoneromooo-monero2017-05-271-108/+107
|/ | | | | | | | | | All code which was using ip and port now uses a new IPv4 object, subclass of a new network_address class. This will allow easy addition of I2P addresses later (and also IPv6, etc). Both old style and new style peer lists are now sent in the P2P protocol, which is inefficient but allows peers using both codebases to talk to each other. This will be removed in the future. No other subclasses than IPv4 exist yet.
* Merge pull request #1701Riccardo Spagni2017-05-051-12/+105
|\ | | | | | | 8277e67f Add anchor connections (Miguel Herranz)
| * Add anchor connectionsMiguel Herranz2017-02-101-12/+105
| | | | | | | | | | | | Based on https://eprint.iacr.org/2015/263.pdf 4. Anchor connections. Peer list serialisation version bumped to 5.
* | p2p: use the fallback seed IPs when not enough seeds are foundmoneromooo-monero2017-03-181-25/+60
| | | | | | | | | | | | In case the DNS seed(s) is/are down, which would otherwise cause the fallback seeds to never be used. Also if the seeds resolve to too few IPs.
* | Make gray peer selection uniformMiguel Herranz2017-02-281-1/+8
| | | | | | | | | | Prevents the system from always picking the gray peers with the most recent last_seen.
* | updated fallback nodesRiccardo Spagni2017-02-211-6/+12
| |
* | update copyright year, fix occasional lack of newline at line endRiccardo Spagni2017-02-211-1/+1
| |