| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |\ \
| | |
| | |
| | | |
2e584dcb p2p: do not try to connect to peers in offline mode (moneromooo-monero)
|
| | |/ |
|
| | |
| |
| |
| |
| |
| | |
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.
|
| | |
| |
| |
| | |
This rename is needed so that delete_in_connections can be added.
|
| |/
|
|
| |
This is needed so that a max_in_connection_count can be added.
|
| |\
| |
| |
| |
| | |
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)
|
| | | |
|
| | | |
|
| | | |
|
| |/ |
|
| |\
| |
| |
| | |
d28c388f p2p: stop net server before closing starting connections (moneromooo-monero)
|
| | |
| |
| |
| |
| |
| | |
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.
|
| | | |
|
| | |
| |
| |
| |
| |
| | |
As a followon side effect, this makes a lot of inline code
included only in particular cpp files (and instanciated
when necessary.
|
| |\ \
| | |
| | |
| | |
| | | |
abebe392 rpc: add offline state in info rpc (moneromooo-monero)
7696e849 core: make --offline also disable DNS lookups (moneromooo-monero)
|
| | |/ |
|
| |/
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
Those have no reason to be in a generic module
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
- 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
|
| |\
| |
| |
| | |
054054c9 p2p: disable gray list housekeeping when an exclusive node is given (moneromooo-monero)
|
| | |
| |
| |
| |
| |
| |
| | |
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
|
| |\ \
| | |
| | |
| | |
| | | |
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)
|
| | | |
| | |
| | |
| | | |
This avoids quicker exit
|
| | | | |
|
| | |/
|/| |
|
| | | |
|
| |/
|
|
|
|
|
|
|
|
|
| |
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
|
| |\
| |
| |
| | |
7fdc178a p2p: fix random peer index being too large (moneromooo-monero)
|
| | | |
|
| |\ \
| | |
| | |
| | | |
cb2d5110 Tweak net logs so we get more info on why networking can't start (moneromooo-monero)
|
| | |/
| |
| |
| | |
This should prevent "silent" failures to start
|
| |/
|
|
|
|
| |
This avoids failing to connect to the network in case all
known peers are unavailable (which can happen if the peer
list is small).
|
| |
|
|
|
| |
This fixes nodes not being able to connect to nodes which use
recent code. While there, init peer_id too.
|
| |\
| |
| |
| |
| |
| |
| |
| | |
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)
|
| | |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |\ \
| | |
| | |
| | |
| | | |
04ebfbfe p2p: close connections when exiting (moneromooo-monero)
9a10148c p2p: fix thread leak (moneromooo-monero)
|
| | | |
| | |
| | |
| | |
| | | |
This ensures they don't leak if they were in the middle of an
async operation.
|
| | |/ |
|
| |/
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
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.
|
| |\
| |
| |
| |
| |
| | |
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)
|
| | |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |/
|
|
|
|
|
|
|
|
| |
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.
|
| |\
| |
| |
| | |
8277e67f Add anchor connections (Miguel Herranz)
|
| | |
| |
| |
| |
| |
| | |
Based on https://eprint.iacr.org/2015/263.pdf 4. Anchor connections.
Peer list serialisation version bumped to 5.
|
| | |
| |
| |
| |
| |
| | |
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.
|
| | |
| |
| |
| |
| | |
Prevents the system from always picking the gray peers with the most
recent last_seen.
|
| | | |
|
| | | |
|