| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |/
|
|
| |
Not used yet.
|
| |\
| |
| |
| | |
a1891ebe tests: fix tests build (moneromooo-monero)
|
| | |
| |
| |
| |
| |
| |
| | |
Add get_fork_version and add_ideal_fork_version to core so
cryptonote_protocol does not have to need the Blockchain
class directly, as it's not in its dependencies, and add
those to the fake core classes in tests too.
|
| |\ \
| | |
| | |
| | | |
88e83f94 cryptonote_protocol_handler: log versions as unsigned ints (moneromooo-monero)
|
| | |/
| |
| |
| | |
They're interpreted as characters otherwise
|
| |\ \
| | |
| | |
| | | |
0e8d60c0 cryptonote_protocol: fix recv/send idle time before handshake (moneromooo-monero)
|
| | |/ |
|
| |\ \
| | |
| | |
| | | |
f90bbe2a cryptonote_protocol: keep target in sync with dropped connections (moneromooo-monero)
|
| | |/
| |
| |
| |
| |
| |
| | |
When a node is dropped, we stop considering its claimed blockchain
height as a factor in the target height calculation. This prevents
a runaway chain from being still thought to be the target even if
the nodes carrying it are dropped.
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| | |
This was broken by the reorg fix, since we now have to add blocks
regardless of their starting height. We now check whether we know
the parent for the first block in the next span, or whether it was
requested. If neither, it's an orphan. If it is not known, but was
requested, we wait to get that block.
|
| | | |
|
| | | |
|
| |/ |
|
| |
|
|
|
|
|
| |
We won't even talk to a peer which claims a wrong version
for its top block. This will avoid syncing to known bad
peers in the first place.
Also add IP fails when failing to verify a block.
|
| |\
| |
| |
| |
| |
| |
| |
| | |
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)
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Connections can be dropped by the net_node layer,
unbeknownst to cryptonote_protocol, which would then
not flush any spans scheduled to that connection,
which would cause it to be only downloaded again
once it becomes the next span (possibly after a small
delay if it had been requested less than 5 seconds
ago).
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |\ \
| | |
| | |
| | | |
1c9196b0 cryptonote_protocol: fix days behind calc on testnet (moneromooo-monero)
|
| | |/ |
|
| |\ \
| | |
| | |
| | | |
214fd81e some include cleanup (moneromooo-monero)
|
| | |/ |
|
| |/ |
|
| |
|
|
|
|
| |
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.
|
| |\
| |
| |
| | |
6fc2dc39 cryptonote_protocol_handler: fix crash in debug log (moneromooo-monero)
|
| | | |
|
| |\ \
| |/
|/|
| | |
072102cf abstracted nework addresses (moneromooo-monero)
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |/
|
|
|
|
|
| |
Integration could go further (ie, return_tx_to_pool calls should
not be needed anymore, possibly other things).
poolstate.bin is now obsolete.
|
| |
|
|
| |
Found by smooth
|
| | |
|
| |
|
|
| |
it scares users
|
| | |
|
| | |
|
| |\
| |
| |
| | |
424b76a4 Fix spurious synchronization status msgs (Howard Chu)
|
| | |
| |
| |
| |
| | |
Only update target height if it's actually greater than the current target.
Only display "synchronized" when current height equals target.
|
| |\ \
| | |
| | |
| | | |
0288310e blockchain_db: add "raw" blobdata getters for block and transaction (moneromooo-monero)
|
| | |/
| |
| |
| | |
This speeds up operations such as serving blocks to syncing peers
|
| |/
|
|
|
|
|
|
|
| |
- only pause mining once we've got the lock (in practice, it'll
already be paused by another thread if we can't get the lock
at once though)
- do not call prepare_handle_incoming_blocks when we dismissed
all the blocks, it only causes cleanup_handle_incoming_blocks
to complain afterwards
|
| |\
| |
| |
| |
| | |
8bdc86be protocol: speed up sync by minimizing duplicate work (moneromooo-monero)
61dfa310 epee: fix some log macros not printing context nicely (moneromooo-monero)
|
| | |
| |
| |
| |
| |
| |
| | |
In particular, the prepare_handle_incoming_blocks call
is pretty lengthy, and entirely pointless in the common
case where several different connections will prepare
the exact same blocks.
|
| |/
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- fix wrong block being used when a new block is received between
a node elaying a fluffy block and sending a new fluffy block
with txes a peer did not have
- misc a neverending ping pong requesting the same missing txids
when a new block is received in the meantime, causing the top
block to not be the one we need
- send the original fluffy block message block height when sending
a new fluffy block, not the current top height, which might
have been updated since
- avoid sending back the whole block blob when asking for txes,
send only the hash instead
- plus misc cleanup and additional debugging logs
|
| | |
|
| |\
| |
| |
| |
| |
| | |
0644eed7 Remove boost/foreach.cpp includes (Miguel Herranz)
36dd3e23 Replace BOOST_REVERSE_FOREACH with ranged for (Miguel Herranz)
629e3101 Replace BOOST_FOREACH with C++11 ranged for (Miguel Herranz)
|
| | | |
|
| | | |
|
| |/
|
|
| |
database before quitting
|