aboutsummaryrefslogtreecommitdiff
path: root/src/p2p/net_node.h
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request #5610luigi11112019-07-241-2/+10
|\ | | | | | | 068fa1c p2p: delay IGP probing on startup (moneromooo-monero)
| * p2p: delay IGP probing on startupmoneromooo-monero2019-06-061-2/+10
| | | | | | | | We might have external access without having to do this
* | Merge pull request #5582luigi11112019-07-241-0/+2
|\ \ | | | | | | | | | fcfcc3a rpc: in/out peers can now return the setting's value (moneromooo-monero)
| * | rpc: in/out peers can now return the setting's valuemoneromooo-monero2019-05-301-0/+2
| |/
* | Merge pull request #5530luigi11112019-07-241-10/+0
|\ \ | | | | | | | | | 6abaaaa remove obsolete save_graph skeleton code (moneromooo-monero)
| * | remove obsolete save_graph skeleton codemoneromooo-monero2019-05-101-10/+0
| |/
* | allow blocking whole subnetsmoneromooo-monero2019-07-161-2/+7
| |
* | p2p: store network address directly in blocked host listmoneromooo-monero2019-07-161-2/+2
|/ | | | rather than their string representation
* Merge pull request #5195Riccardo Spagni2019-03-191-0/+1
|\ | | | | | | a54e81e5 daemon: add '--no-sync' arg to optionally disable blockchain sync (xiphon)
| * daemon: add '--no-sync' arg to optionally disable blockchain syncxiphon2019-02-251-0/+1
| |
* | Merge pull request #5190Riccardo Spagni2019-03-171-0/+8
|\ \ | | | | | | | | | 551104fb daemon: add --public-node mode, RPC port propagation over P2P (xiphon)
| * | daemon: add --public-node mode, RPC port propagation over P2Pxiphon2019-02-251-0/+8
| |/
* | Update 2019 copyrightbinaryFate2019-03-051-1/+1
| |
* | default initialize rpc structuresmoneromooo-monero2019-03-041-2/+3
| |
* | epee: add SSL supportmoneromooo-monero2019-02-021-3/+5
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RPC connections now have optional tranparent SSL. An optional private key and certificate file can be passed, using the --{rpc,daemon}-ssl-private-key and --{rpc,daemon}-ssl-certificate options. Those have as argument a path to a PEM format private private key and certificate, respectively. If not given, a temporary self signed certificate will be used. SSL can be enabled or disabled using --{rpc}-ssl, which accepts autodetect (default), disabled or enabled. Access can be restricted to particular certificates using the --rpc-ssl-allowed-certificates, which takes a list of paths to PEM encoded certificates. This can allow a wallet to connect to only the daemon they think they're connected to, by forcing SSL and listing the paths to the known good certificates. To generate long term certificates: openssl genrsa -out /tmp/KEY 4096 openssl req -new -key /tmp/KEY -out /tmp/REQ openssl x509 -req -days 999999 -sha256 -in /tmp/REQ -signkey /tmp/KEY -out /tmp/CERT /tmp/KEY is the private key, and /tmp/CERT is the certificate, both in PEM format. /tmp/REQ can be removed. Adjust the last command to set expiration date, etc, as needed. It doesn't make a whole lot of sense for monero anyway, since most servers will run with one time temporary self signed certificates anyway. SSL support is transparent, so all communication is done on the existing ports, with SSL autodetection. This means you can start using an SSL daemon now, but you should not enforce SSL yet or nothing will talk to you.
* Adding initial support for broadcasting transactions over TorLee Clagett2019-01-281-70/+184
| | | | | | | | | - Support for ".onion" in --add-exclusive-node and --add-peer - Add --anonymizing-proxy for outbound Tor connections - Add --anonymous-inbounds for inbound Tor connections - Support for sharing ".onion" addresses over Tor connections - Support for broadcasting transactions received over RPC exclusively over Tor (else broadcast over public IP when Tor not enabled).
* Pruningmoneromooo-monero2019-01-221-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The blockchain prunes seven eighths of prunable tx data. This saves about two thirds of the blockchain size, while keeping the node useful as a sync source for an eighth of the blockchain. No other data is currently pruned. There are three ways to prune a blockchain: - run monerod with --prune-blockchain - run "prune_blockchain" in the monerod console - run the monero-blockchain-prune utility The first two will prune in place. Due to how LMDB works, this will not reduce the blockchain size on disk. Instead, it will mark parts of the file as free, so that future data will use that free space, causing the file to not grow until free space grows scarce. The third way will create a second database, a pruned copy of the original one. Since this is a new file, this one will be smaller than the original one. Once the database is pruned, it will stay pruned as it syncs. That is, there is no need to use --prune-blockchain again, etc.
* Merge pull request #4976Riccardo Spagni2019-01-161-4/+4
|\ | | | | | | 85665003 epee: better network buffer data structure (moneromooo-monero)
| * epee: better network buffer data structuremoneromooo-monero2018-12-231-4/+4
| | | | | | | | avoids pointless allocs and memcpy
* | p2p: use vector instead of list for peer listsmoneromooo-monero2018-12-071-3/+3
|/
* Merge pull request #4854Riccardo Spagni2018-12-041-1/+3
|\ | | | | | | bd98e99c Removed a lot of unnecessary includes (Martijn Otto)
| * Removed a lot of unnecessary includesMartijn Otto2018-11-151-1/+3
| |
* | Merge pull request #4776Riccardo Spagni2018-11-161-1/+1
|\ \ | | | | | | | | | | | | 03fc731b p2p: less frequent incoming connections check (moneromooo-monero) 14a5c206 p2p: tone down "no incoming connections" warning to info if in peers is 0 (moneromooo-monero)
| * | p2p: less frequent incoming connections checkmoneromooo-monero2018-11-011-1/+1
| |/
* / Expose limit-rate defaults from command line helpRaskaRuby2018-10-311-2/+2
|/
* Merge pull request #3861luigi11112018-06-191-0/+2
|\ | | | | | | de1ffe0 p2p: warn when no incoming connections are seen for a while (moneromooo-monero)
| * p2p: warn when no incoming connections are seen for a whilemoneromooo-monero2018-05-261-0/+2
| |
* | p2p: fix fallback seed node usagemoneromooo-monero2018-04-291-0/+1
|/ | | | | | | Those were added to the seed nodes list even when they had already been added. Moreover, the current index was not reset after they were added, typically causing previous seeds to be used, and some of those fallback seeds to not be tried.
* Fix broken interactive daemon 'limit' commands plus RPC callsrbrunner72018-04-251-2/+2
|
* Stagenetstoffu2018-03-051-3/+3
|
* options: remove testnet-* optionswhythat2018-02-161-2/+1
|
* Merge pull request #3226Riccardo Spagni2018-02-161-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-021-1/+1
| | | | | | | | Coverity 136394 136397 136409 136526 136529 136533 175302
* | Allow the number of incoming connections to be limitedErik de Castro Lopo2018-01-291-0/+6
| | | | | | | | | | | | 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.
* Update 2018 copyrightxmr-eric2018-01-261-1/+1
|
* cryptonote_core does not depend on p2p anymoremoneromooo-monero2017-12-161-9/+24
| | | | | | As a followon side effect, this makes a lot of inline code included only in particular cpp files (and instanciated when necessary.
* Rename m_listenning_port to m_listening_portMaxXor2017-09-011-2/+2
|
* Delete UPnP port mapping on exitMaxXor2017-08-291-0/+2
|
* p2p: fallback on seed nodes if we can't make a connectionmoneromooo-monero2017-08-091-0/+1
| | | | | | 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-1/+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/+1
|\ | | | | | | | | | | | | | | 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/+1
| | | | | | | | | | | | | | | | 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.
* | p2p: move m_in_timedsync from connection_context to p2p_connection_contextmoneromooo-monero2017-08-011-0/+3
|/ | | | It's got no place in the base class as it's P2P specific field
* abstracted nework addressesmoneromooo-monero2017-05-271-21/+21
| | | | | | | | | | 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-2/+6
|\ | | | | | | 8277e67f Add anchor connections (Miguel Herranz)
| * Add anchor connectionsMiguel Herranz2017-02-101-2/+6
| | | | | | | | | | | | 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-1/+3
| | | | | | | | | | | | 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.
* | update copyright year, fix occasional lack of newline at line endRiccardo Spagni2017-02-211-1/+1
| |
* | net_node: fix spurious warning about using uninitialized datamoneromooo-monero2017-02-121-1/+1
|/ | | | This is only used to load, not save