aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_protocol
Commit message (Collapse)AuthorAgeFilesLines
* Fix typos in various filesDimitris Apostolou2018-03-151-1/+1
|
* Merge pull request #3277Riccardo Spagni2018-03-051-1/+1
|\ | | | | | | | | | | | | | | | | 0e7ad2e2 Wallet API: generalize 'bool testnet' to 'NetworkType nettype' (stoffu) af773211 Stagenet (stoffu) cc9a0bee command_line: allow args to depend on more than one args (stoffu) 55f8d917 command_line::get_arg: remove 'required' for dependent args as they're always optional (stoffu) 450306a0 command line: allow has_arg to handle arg_descriptor<bool,false,true> #3318 (stoffu) 9f9e095a Use `genesis_tx` parameter in `generate_genesis_block`. #3261 (Jean Pierre Dudey)
| * Stagenetstoffu2018-03-051-1/+1
| |
* | Correct spelling mistakes.Edward Betts2018-03-052-2/+2
|/
* Merge pull request #3229Riccardo Spagni2018-02-161-0/+9
|\ | | | | | | 928c1825 cryptonote_protocol: guard against all threads in standby (moneromooo-monero)
| * cryptonote_protocol: guard against all threads in standbymoneromooo-monero2018-02-021-0/+9
| |
* | Merge pull request #3181Riccardo Spagni2018-02-162-3/+3
|\ \ | |/ |/| | | e3f0980a daemon: don't drop RPC with busy error when running offline (moneromooo-monero)
| * daemon: don't drop RPC with busy error when running offlinemoneromooo-monero2018-01-252-3/+3
| |
* | Merge pull request #3186Riccardo Spagni2018-01-281-1/+1
|\ \ | | | | | | | | | 7ed62e63 cryptonote_protocol: fix std::move usage on different types (moneromooo-monero)
| * | cryptonote_protocol: fix std::move usage on different typesmoneromooo-monero2018-01-261-1/+1
| | |
* | | Readd copyright starting datexmr-eric2018-01-262-2/+2
| | |
* | | Update 2018 copyrightxmr-eric2018-01-268-8/+8
|/ /
* | Merge pull request #3105Riccardo Spagni2018-01-251-1/+1
|\ \ | | | | | | | | | b56f4645 cryptonote_protocol: fix size_t used in wire format (moneromooo-monero)
| * | cryptonote_protocol: fix size_t used in wire formatmoneromooo-monero2018-01-111-1/+1
| |/ | | | | | | This is 32 bits on 32 bit platforms, but 64 bits on 64 bit platforms.
* | Merge pull request #3040Riccardo Spagni2018-01-251-1/+1
|\ \ | | | | | | | | | 69f9a075 cryptonote_protocol: fix missing space in version mismatch message (moneromooo-monero)
| * | cryptonote_protocol: fix missing space in version mismatch messagemoneromooo-monero2017-12-311-1/+1
| | |
* | | Merge pull request #3015Riccardo Spagni2018-01-251-0/+2
|\ \ \ | |_|/ |/| | | | | f06603a4 cryptonote_protocol: update target height when receiving blocks (moneromooo-monero)
| * | cryptonote_protocol: update target height when receiving blocksmoneromooo-monero2017-12-271-0/+2
| |/
* | Merge pull request #3004Riccardo Spagni2018-01-101-0/+5
|\ \ | |/ |/| | | a2c845c7 cryptonote_protocol: internal error consistency size check (moneromooo-monero)
| * cryptonote_protocol: internal error consistency size checkmoneromooo-monero2017-12-241-0/+5
| |
* | use const refs in for loops for non tiny typesmoneromooo-monero2017-12-181-1/+1
| |
* | add empty container sanity checks when using front() and back()moneromooo-monero2017-12-182-0/+7
| |
* | cryptonote_protocol: sanity check chain hashes from peermoneromooo-monero2017-12-181-0/+6
| |
* | cryptonote_protocol: print peer versions when unexpectedmoneromooo-monero2017-12-181-6/+10
|/ | | | also avoid integer underflow on zero height
* Merge pull request #2877Riccardo Spagni2017-12-173-10/+4
|\ | | | | | | | | | | 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-162-2/+2
| | | | | | | | | | These even had the epee namespace. This fixes some ugly circular dependencies.
| * cryptonote_core does not depend on p2p anymoremoneromooo-monero2017-12-162-8/+2
| | | | | | | | | | | | 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-163-37/+2
|/
* Merge pull request #2866Riccardo Spagni2017-12-161-1/+1
|\ | | | | | | cf5f6236 Corrections in rate limiting / trottle code, especially in 'out' direction (rbrunner7)
| * Corrections in rate limiting / trottle code, especially in 'out' directionrbrunner72017-11-281-1/+1
| | | | | | | | | | | | | | | | | | 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
* | cryptonote_protocol: fix corner case looping asking for same block hashesmoneromooo-monero2017-12-031-0/+4
| |
* | make connection_id a string in RPCmoneromooo-monero2017-11-182-3/+3
|/ | | | It's sent as JSON, so raw binary is not appropriate
* 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;
* protocol: drop connections which don't handshake after some timemoneromooo-monero2017-10-221-3/+6
|
* Fix compiler warnings with Clang 6.0.0.Vasil Dimov2017-10-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | monero/src/cryptonote_protocol/block_queue.cpp:208:44: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] static const boost::uuids::uuid uuid0 = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ { } monero/src/wallet/wallet_rpc_server.cpp:1895:43: error: lambda capture 'wal' is not used [-Werror,-Wunused-lambda-capture] tools::signal_handler::install([&wrpc, &wal](int) { ^ monero/src/cryptonote_protocol/cryptonote_protocol_handler.inl:1616:40: error: lambda capture 'arg' is not used [-Werror,-Wunused-lambda-capture] m_p2p->for_each_connection([this, &arg, &fluffy_arg, &exclude_context, &fullConnections... ^ monero/src/cryptonote_protocol/cryptonote_protocol_handler.inl:1616:46: error: lambda capture 'fluffy_arg' is not used [-Werror,-Wunused-lambda-capture] m_p2p->for_each_connection([this, &arg, &fluffy_arg, &exclude_context, &fullConnections... ^ monero/src/blockchain_utilities/blockchain_export.cpp:181:3: error: bool literal returned from 'main' [-Werror,-Wmain] CHECK_AND_ASSERT_MES(r, false, "Failed to initialize source blockchain storage"); ^ ~~~~~ monero/contrib/epee/include/misc_log_ex.h:180:97: note: expanded from macro 'CHECK_AND_ASSERT_MES' ...fail_ret_val, message) do{if(!(expr)) {LOG_ERROR(message); return fail_ret_val;};}while(0) ^ ~~~~~~~~~~~~ monero/src/blockchain_utilities/blockchain_export.cpp:195:3: error: bool literal returned from 'main' [-Werror,-Wmain] CHECK_AND_ASSERT_MES(r, false, "Failed to export blockchain raw data"); ^ ~~~~~ monero/contrib/epee/include/misc_log_ex.h:180:97: note: expanded from macro 'CHECK_AND_ASSERT_MES' ...fail_ret_val, message) do{if(!(expr)) {LOG_ERROR(message); return fail_ret_val;};}while(0) ^ ~~~~~~~~~~~~
* Merge pull request #2604Riccardo Spagni2017-10-151-3/+10
|\ | | | | | | 0a872798 protocol: kick idle peers by dropping them (moneromooo-monero)
| * protocol: kick idle peers by dropping themmoneromooo-monero2017-10-071-3/+10
| | | | | | | | | | | | | | | | | | This is safer, as we don't risk break expectations (eg, requesting block hashes and then receiving a late set of blocks). Dropping a connection means another will be attempted in a fresh state. Also bump the kick timeout to 5 minutes, to ensure we only kick really idle peers.
* | Merge pull request #2571Riccardo Spagni2017-10-151-2/+1
|\ \ | | | | | | | | | 8028dde7 block_queue: use boost::uuids::nil_uuid where appropriate (moneromooo-monero)
| * | block_queue: use boost::uuids::nil_uuid where appropriatemoneromooo-monero2017-10-031-2/+1
| |/
* | Merge pull request #2469Riccardo Spagni2017-10-151-0/+12
|\ \ | |/ |/| | | 7adceee6 precomputed block hashes are now in blocks of N (currently 256) (moneromooo-monero)
| * precomputed block hashes are now in blocks of N (currently 256)moneromooo-monero2017-09-181-0/+12
| | | | | | | | This shaves a lot of space off binaries
* | move checkpoints in a separate librarymoneromooo-monero2017-09-252-2/+2
| |
* | Merge pull request #2460Riccardo Spagni2017-09-251-2/+3
|\ \ | | | | | | | | | 3487d810 cryptonote_protocol: fix needless chain hashes downloads (moneromooo-monero)
| * | cryptonote_protocol: fix needless chain hashes downloadsmoneromooo-monero2017-09-171-2/+3
| |/ | | | | | | | | | | | | | | The last known hash was calculated incorrectly, causing further chain hash downloads to restart from the current chain. When the block queue has close to 10k blocks waiting, this causes frequent downloads of 10k more hashes, but with only the last few hashes actually being useful.
* | Merge pull request #2458Riccardo Spagni2017-09-252-14/+2
|\ \ | | | | | | | | | 7f2f6ee1 protocol: remove hop count on block propagation (moneromooo-monero)
| * | protocol: remove hop count on block propagationmoneromooo-monero2017-09-172-14/+2
| |/ | | | | | | | | | | It is unused, as it was apparently a future optimization, and it leaks some information (though since pools publish thei blocks they find, that amount seems small).
* / build: auto update version info without manually deleting version.hstoffu2017-09-211-2/+0
|/
* Add a --fluffy-blocks option to relay blocks as fluffy blocksmoneromooo-monero2017-09-031-1/+1
| | | | Defaults to off, but fluffy blocks are forced enabled on testnet
* Merge pull request #2372Riccardo Spagni2017-09-021-6/+34
|\ | | | | | | | | | | c867357a cryptonote_protocol: error handling on cleanup_handle_incoming_blocks (moneromooo-monero) ce901fcb Fix blockchain_import wedge on exception in cleanup_handle_incoming_blocks (moneromooo-monero) 84fa015e core: guard against exceptions in handle_incoming_{block,tx} (moneromooo-monero)
| * cryptonote_protocol: error handling on cleanup_handle_incoming_blocksmoneromooo-monero2017-08-291-6/+34
| |