aboutsummaryrefslogtreecommitdiff
path: root/src/p2p
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #3502Riccardo Spagni2018-04-121-1/+1
|\ | | | | | | 11c933e1 fix lambda compile error on openbsd (moneromooo-monero)
| * fix lambda compile error on openbsdmoneromooo-monero2018-03-271-1/+1
| |
* | p2p: correct port number for seed nodesstoffu2018-03-221-3/+3
|/
* p2p: fix network ID being uninitialised when using exclusive peersmoneromooo-monero2018-03-131-1/+4
|
* Stagenetstoffu2018-03-053-18/+34
|
* Merge pull request #3290Riccardo Spagni2018-02-201-0/+1
|\ | | | | | | 1d28c0d8 p2p: restore m_testnet assignment lost during rebase (whythat)
| * p2p: restore m_testnet assignment lost during rebasewhythat2018-02-181-0/+1
| |
* | p2p: need libcryptonote_core due to arg_testnet_on being usedstoffu2018-02-181-0/+1
|/
* options: add testnet option dependencieswhythat2018-02-161-2/+6
|
* options: remove testnet-* optionswhythat2018-02-163-16/+6
|
* Merge pull request #3196Riccardo Spagni2018-02-161-1/+2
|\ | | | | | | eda9fb5b p2p: fix testnet/mainnet port mixup (moneromooo-monero)
| * p2p: fix testnet/mainnet port mixupmoneromooo-monero2018-01-281-1/+2
| |
* | Merge pull request #3226Riccardo Spagni2018-02-162-2/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e4646379 keccak: fix mdlen bounds sanity checking (moneromooo-monero) 2e3e90ac pass large parameters by const ref, not value (moneromooo-monero) 61defd89 blockchain: sanity check number of precomputed hash of hash blocks (moneromooo-monero) 9af6b2d1 ringct: fix infinite loop in unused h2b function (moneromooo-monero) 8cea8d0c simplewallet: double check a new multisig wallet is multisig (moneromooo-monero) 9b98a6ac threadpool: catch exceptions in dtor, to avoid terminate (moneromooo-monero) 24803ed9 blockchain_export: fix buffer overflow in exporter (moneromooo-monero) f3f7da62 perf_timer: rewrite to make it clear there is no division by zero (moneromooo-monero) c6ea3df0 performance_tests: remove add_arg call stray extra param (moneromooo-monero) fa6b4566 fuzz_tests: fix an uninitialized var in setup (moneromooo-monero) 03887f11 keccak: fix sanity check bounds test (moneromooo-monero) ad11db91 blockchain_db: initialize m_open in base class ctor (moneromooo-monero) bece67f9 miner: restore std::cout precision after modification (moneromooo-monero) 1aabd14c db_lmdb: check hard fork info drop succeeded (moneromooo-monero)
| * | 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)