summaryrefslogtreecommitdiff
path: root/src/cryptonote_protocol
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #4160luigi11112018-09-042-13/+32
|\ | | | | | | 704b60c block_queue: faster check whether a block was requested (moneromooo-monero)
| * block_queue: faster check whether a block was requestedmoneromooo-monero2018-07-202-13/+32
| |
* | Merge pull request #4207luigi11112018-08-221-7/+12
|\ \ | | | | | | | | | ce9457a cryptonote_protocol: don't serialize an unneeded new block message (moneromooo-monero)
| * | cryptonote_protocol: don't serialize an unneeded new block messagemoneromooo-monero2018-08-091-7/+12
| |/ | | | | | | Non fluffy block nodes should now be very rare
* | Merge pull request #4020luigi11112018-08-151-1/+14
|\ \ | |/ |/| | | c24a0af [monerod] Added blocks remaining count during syncronisation. (Jorropo)
| * [monerod] Added blocks remaining count during syncronisation.Jorropo2018-07-251-1/+14
| | | | | | | | And percent if usefull (% < 99)
* | Merge pull request #3716luigi11112018-06-274-59/+62
|\ \ | | | | | | | | | a2b557f 6795bd0 209ec96 ed2c81e a830db2 57ea902 31a895e ba8331c f7f1917 41be339 f025ae9 ef2cb63 dcfd299 5d3e702 2704624 2771a18 0e4c7d0 (moneromooo-monero)
| * | replace std::list with std::vector on some hot pathsmoneromooo-monero2018-06-264-59/+62
| |/ | | | | | | also use reserve where appropriate
* / cryptonote_protocol_handler: log when dropping a peermoneromooo-monero2018-06-091-0/+3
|/
* protocol: drop (and increase fails) if most blocks hashes are invalidmoneromooo-monero2018-06-031-3/+3
|
* protocol: do not switch to unsafe sync mode for just a few blocksmoneromooo-monero2018-05-281-1/+2
|
* Merge pull request #3719Riccardo Spagni2018-04-291-8/+11
|\ | | | | | | | | 3880bf39 cryptonote_protocol_handler.inl: remove span read just now that failed to pass some basic tests (stoffu) da249fd5 cryptonote_protocol_handler.inl: fix return type mismatches (int vs bool) (stoffu)
| * cryptonote_protocol_handler.inl: remove span read just now that failed to ↵stoffu2018-04-281-0/+3
| | | | | | | | pass some basic tests
| * cryptonote_protocol_handler.inl: fix return type mismatches (int vs bool)stoffu2018-04-281-8/+8
| |
* | Only log an error if fork version is higher AND is not known.Thaer Khawaja2018-04-221-1/+1
|/
* 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) ^ ~~~~~~~~~~~~