aboutsummaryrefslogtreecommitdiff
path: root/src/p2p
Commit message (Collapse)AuthorAgeFilesLines
...
| * | pass large parameters by const ref, not valuemoneromooo-monero2018-02-022-2/+2
| |/ | | | | | | Coverity 136394 136397 136409 136526 136529 136533 175302
* | 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-294-3/+63
| | | | | | | | | | | | 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-292-2/+2
| | | | | | | | This rename is needed so that delete_in_connections can be added.
* | Rename connections_count to max_out_connection_countErik de Castro Lopo2018-01-292-12/+12
|/ | | | 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-269-9/+9
| |
* | p2p: fix picking peers off an empty gray listmoneromooo-monero2018-01-181-1/+4
|/
* fix some link errors in debug mode for macosstoffu2018-01-101-0/+1
|
* 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
| |
* | Merge pull request #2877Riccardo Spagni2017-12-1710-1261/+90
|\ \ | | | | | | | | | | | | | | | 43f5269f Wallets now do not depend on the daemon rpc lib (moneromooo-monero) bb89ae8b move connection_basic and network_throttle from src/p2p to epee (moneromooo-monero) 4abf25f3 cryptonote_core does not depend on p2p anymore (moneromooo-monero)
| * | move connection_basic and network_throttle from src/p2p to epeemoneromooo-monero2017-12-166-1214/+0
| | | | | | | | | | | | | | | These even had the epee namespace. This fixes some ugly circular dependencies.
| * | cryptonote_core does not depend on p2p anymoremoneromooo-monero2017-12-164-47/+90
| | | | | | | | | | | | | | | | | | As a followon side effect, this makes a lot of inline code included only in particular cpp files (and instanciated when necessary.
* | | move includes around to lessen overall loadmoneromooo-monero2017-12-161-0/+2
|/ /
* | 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-285-33/+18
|/ | | | | | | | | 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
* Merge pull request #2736Riccardo Spagni2017-11-141-2/+3
|\ | | | | | | | | | | | | | | | | | | 0d9c0db9 Do not build against epee_readline if it was not built (Howard Chu) 178014c9 split off readline code into epee_readline (moneromooo-monero) a9e14a19 link against readline only for monerod and wallet-wallet-{rpc,cli} (moneromooo-monero) 437421ce wallet: move some scoped_message_writer calls from the libs (moneromooo-monero) e89994e9 wallet: rejig to avoid prompting in wallet2 (moneromooo-monero) ec5135e5 move input_line from command_line to simplewallet (moneromooo-monero) 082db75f move cryptonote command line options to cryptonote_core (moneromooo-monero)
| * move cryptonote command line options to cryptonote_coremoneromooo-monero2017-11-141-2/+3
| | | | | | | | Those have no reason to be in a generic module
* | remove "using namespace std" from headersmoneromooo-monero2017-11-141-2/+2
|/ | | | | | | It's nasty, and actually breaks on Solaris, where if.h fails to build due to: struct map *if_memmap;
* 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-053-15/+22
| | | | | | | | - 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
* version: fix link to new version stringsmoneromooo-monero2017-09-251-0/+1
| | | | | p2p uses it, and the cpp file needs to know the symbols should be public
* Merge pull request #2424Riccardo Spagni2017-09-251-20/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 28b72b6e tx_pool: pre-init tvc.m_verifivation_failed before processing (moneromooo-monero) 50a629b2 core_tests: catch (impossible in practice) tx extra api failure (moneromooo-monero) fee15ef1 wallet2: catch failure to parse address (moneromooo-monero) 1399e26d net_peerlist: remove dead code (moneromooo-monero) 50e09698 tx_pool: guard against failure getting tx hash (moneromooo-monero) 54cc209a wallet_rpc_server: catch failure to create directory (moneromooo-monero) 3e55099c wallet_rpc_server: init m_vm to NULL in ctor (moneromooo-monero) 7d0dde5e wallet_args: remove redundant default value for --log-file (moneromooo-monero) ed4a3350 wallet2: catch failure to save keys file (moneromooo-monero) 44434c8a wallet2_api: check whether dynamic_cast returns NULL (moneromooo-monero) 92f2f687 core: check return value from parse_hexstr_to_binbuff (moneromooo-monero) 5475692e wallet2_api: remove an unused, uninitialized, field (moneromooo-monero) a7ba3de1 libwallet_api_tests: initialize newblock_triggered on reset (moneromooo-monero) b2763ace wallet2_api: init error code to "no error" in the ctor (moneromooo-monero) b5faac53 get_blockchain_top now returns void (moneromooo-monero) 2e44d8f2 wallet_rpc_server: guard against exceptions (moneromooo-monero) 4230876b simplewallet: guard against I/O exceptions (moneromooo-monero) 06c1e057 daemon: initialize decode_as_json in RPC request (moneromooo-monero) 11f71af5 http_base: init size_t in http_request_info ctor (moneromooo-monero)
| * net_peerlist: remove dead codemoneromooo-monero2017-09-251-20/+1
| | | | | | | | CID 175290
* | Merge pull request #2442Riccardo Spagni2017-09-251-2/+0
|\ \ | | | | | | | | | e29282d2 build: auto update version info without manually deleting version.h (stoffu)
| * | build: auto update version info without manually deleting version.hstoffu2017-09-211-2/+0
| | |
* | | 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
* | | Merge pull request #2376Riccardo Spagni2017-09-202-48/+102
|\ \ \ | |_|/ |/| | | | | | | | e3680b69 Rename m_listenning_port to m_listening_port (MaxXor) a1ea475f Delete UPnP port mapping on exit (MaxXor)
| * | Rename m_listenning_port to m_listening_portMaxXor2017-09-012-7/+7
| | |
| * | Delete UPnP port mapping on exitMaxXor2017-08-292-43/+97
| | |
* | | Merge pull request #2329Riccardo Spagni2017-09-021-0/+2
|\ \ \ | |/ / |/| | | | | e3c4395a p2p: init hashes after deserializing a network address (moneromooo-monero)
| * | p2p: init hashes after deserializing a network addressmoneromooo-monero2017-08-231-0/+2
| |/ | | | | | | Fixes multiple connections to the same address
* | print peer id in 0 padded hex for consistencymoneromooo-monero2017-08-232-6/+13
| |
* | 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 #2277Riccardo Spagni2017-08-151-4/+3
|\ \ | | | | | | | | | 6ce769c1 p2p: get net log spam down a bit (moneromooo-monero)
| * | p2p: get net log spam down a bitmoneromooo-monero2017-08-101-4/+3
| |/
* | 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-092-6/+26
|/ | | | | | This avoids failing to connect to the network in case all known peers are unavailable (which can happen if the peer list is small).