summaryrefslogtreecommitdiff
path: root/contrib
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Print stack trace upon exceptions"moneromooo-monero2016-03-213-4/+4
| | | | | | Ain't nobody got time for link/cmake skullduggery. This reverts commit fff238ec94ac6d45fc18c315d7bc590ddfaad63d.
* Merge pull request #736Riccardo Spagni2016-03-201-0/+8
|\ | | | | | | 2b4cab3 epee: fix potential hang on exit (moneromooo-monero)
| * epee: fix potential hang on exitmoneromooo-monero2016-03-201-0/+8
| | | | | | | | Also close sockets on failure, just in case
* | Print stack trace upon exceptionsmoneromooo-monero2016-03-193-4/+4
|/ | | | Useful for debugging users' logs
* epee: fix bug deleting more than one connection at oncemoneromooo-monero2016-03-121-0/+1
|
* Merge pull request #712Riccardo Spagni2016-03-117-33/+35
|\ | | | | | | | | 66c2fc7 Need to link boost::chrono in more places now (Howard Chu) b937a2c Use boost::thread instead of std::thread (Howard Chu)
| * Use boost::thread instead of std::threadHoward Chu2016-03-117-33/+35
| | | | | | | | and all other associated IPC
* | WIN32 thread_id is OS-dependent not compiler-dependentHoward Chu2016-03-111-1/+7
| |
* | WIN32: Need getpid() declarationHoward Chu2016-03-111-0/+1
|/
* move g_test_dbg_lock_sleep from a global to a function level staticmoneromooo-monero2016-02-221-5/+12
| | | | | This avoids the need to define that variable in every program which uses epee.
* Fix crash in std::map for connections_mapHoward Chu2016-02-181-1/+2
| | | | Use boost::unordered_map instead.
* std::condvar is broken on Win32 with gcc/g++ 4.8 tooHoward Chu2016-02-181-6/+4
| | | | Use boost...
* Use boost::thread instead of std::threadHoward Chu2016-02-181-2/+3
| | | | std::thread crashes on (at least) ARMv6 g++ 4.8/4.9
* epee: always call the PRNG through the locked APImoneromooo-monero2016-02-131-1/+1
|
* epee: use generate_random_bytes for new random uuidsmoneromooo-monero2016-01-301-1/+6
| | | | | | Instead of using boost::uuids::generate_random, which uses uninitialized stuff *on purpose*, just to annoy people who use valgrind
* epee: remove dodgy random code that nobody usesmoneromooo-monero2016-01-301-9/+0
| | | | in case someone might want to use it
* Merge pull request #622Riccardo Spagni2016-01-251-1/+1
|\ | | | | | | | | | | e514f0a even more typos (Henning Kopp) 9abc4b8 more typos fixed (Henning Kopp) 0693f3c fixed typo (Henning Kopp)
| * more typos fixedHenning Kopp2016-01-251-1/+1
| |
* | OpenBSD support for Monero.me0wmix2016-01-211-0/+7
|/
* ARM chars are unsignedHoward Chu2016-01-031-1/+1
|
* IP_TOS not supported before Windows7Howard Chu2016-01-021-1/+4
|
* updated copyright yearRiccardo Spagni2015-12-311-1/+1
|
* epee: regularly cleanup connections we kept a reference tomoneromooo-monero2015-12-232-4/+23
| | | | | | | | | | Since connections from the ::connect method are now kept in a deque to be able to cancel them on exit, this leaks both memory and a file descriptor. Here, we clean those up after 30 seconds, to avoid this. 30 seconds is higher then the 5 second timeout used in the async code, so this should be safe. However, this is an assumption which would break if that async code was to start relying on longer timeouts.
* epee: fix hang on exitmoneromooo-monero2015-12-222-1/+25
| | | | | | | | | | | | | | | | | | When the boost ioservice is stopped, pending work notifications will not happen. This includes deadline timers, which would otherwise time out the now cancelled I/O operations. When this happens just after starting a new connect operation, this can leave that operations in a state where it won't receive either the completion notification nor a timeout, causing a hang. This is fixed by keeping a list of connections corresponding to the connect operations, and cancelling them before stopping the boost ioservice. Note that the list of these connections can grow unbounded, as they're never cleaned up. Cleaning them up would involve working out which connections do not have any pending work, and it's not quite clear yet how to go about this.
* epee: make log macros behave like statementsmoneromooo-monero2015-12-191-22/+22
| | | | | | | In particular, make this kind of thing do what one expects it to do: if (x) LOG_PRINT("True"); else LOG_PRINT("No");
* console_handler: catch exception inside the input loopmoneromooo-monero2015-12-061-32/+37
| | | | | | | | | | This prevents an exception from existing the loop without calling the exit handler, if one is defined. The daemon defines one, which stops the p2p layer, and will only exit once the p2p layer is shut down. This would cause a hang upon an exception, as the input thread would have exited and the daemon would wait forever with no console user input.
* Merge pull request #507Riccardo Spagni2015-11-301-9/+21
|\ | | | | | | 62e49a5 wallet: optional automatic refresh from the daemon (moneromooo-monero)
| * wallet: optional automatic refresh from the daemonmoneromooo-monero2015-11-281-9/+21
| | | | | | | | | | | | The daemon will be polled every 90 seconds for new blocks. It is enabled by default, and can be turned on/off with set auto-refresh 1 and set auto-refresh 0 in the wallet.
* | core_rpc_server: add a --restricted-rpc optionmoneromooo-monero2015-11-271-2/+4
|/ | | | | It does not expose the RPC for commands like start_mining, etc (ie, commands a public node operator might want to be restricted)
* Add IP blocking for misbehaving nodes (adapted from Boolberry)Javier Smooth2015-11-231-3/+1
| | | | With minor cleanup and fixes (spelling, indent) by moneromooo
* console_handler: silence spurious message when exiting daemonmoneromooo-monero2015-10-211-1/+1
| | | | | | The daemon registers a custom exit command, which cause the loop to stop. Catch this case before printing "Failed to read line" as this is an expected case.
* epee: Don't set log file name when process path name isn't foundwarptangent2015-08-161-1/+2
| | | | | | | If process path name isn't found, then leave log file name blank. This also applies if a process name is found, but it's blank after removing a trailing dot extension.
* console_handler: do not call a NULL function pointermoneromooo-monero2015-07-181-1/+2
| | | | The exit_handler can be NULL.
* console_handler: check for eof before trying to use inputmoneromooo-monero2015-07-181-4/+5
| | | | We'll get there without input if we exited
* fix ^D exit for bitmonerodmoneromooo-monero2015-06-031-8/+8
| | | | | | It uses the async console handler differently than simplewallet, and wasn't running the same exit code, causing it to never actually exit after breaking out of the console entry loop.
* cleaning up, removing redundant files, renaming, fixing incorrect licensesRiccardo Spagni2015-05-311-0/+27
|
* console_handler: handle EOF properlymoneromooo-monero2015-05-301-3/+19
| | | | Exit instead of reading "empty" commands in an infinite loop.
* Fix compile for GCC 5.1.0warptangent2015-05-251-1/+1
| | | | | | | | | | Add fix for compile error with multiple uses of peerid_type (uint64_t) variable in lambda expression. - known GCC issue: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65843 epee: replace return value of nullptr for expected boolean with false. Fixes #231.
* [fix] log level change. compilation: dns, testsrfree2monero2015-04-101-2/+2
| | | | | old unbound #warning does not block compilation unit tests build fine. Even though the RPC/P2P network type is required again
* [fix] Network 1.8: unlimited the RPC connectionsrfree2monero2015-04-083-59/+112
| | | | works for unit tests build, too
* Network 1.7; Quieted the debug a bit.rfree2monero2015-04-021-5/+5
| | | | Really really finall version of this changes I hope.
* Utils: use const, document dbg. Less default debugrfree2monero2015-04-022-28/+53
|
* [fix] mac os x includes std::random...rfree2monero2015-04-011-0/+4
|
* added windows_stream.* console colorsrfree2monero2015-04-012-0/+84
|
* remerged; commands JSON. logging upgrade. doxygenrfree2monero2015-04-013-22/+115
|
* Merge remote-tracking branch 'monero-official/master' into network-1.6-work1rfree2monero2015-04-012-61/+60
|\
| * Restore daemon interactive modeThomas Winget2015-03-272-9/+11
| | | | | | | | | | | | | | Daemon interactive mode is now working again. RPC mapped calls in daemon and wallet have both had connection_context removed as an argument as that argument was not being used anywhere.
| * Daemonize changes pulled in -- daemon buildsThomas Winget2015-02-241-52/+49
| | | | | | | | | | | | | | many RPC functions added by the daemonize changes (and related changes on the upstream dev branch that were not merged) were commented out (apart from return). Other than that, this *should* work...at any rate, it builds, and that's something.
* | 2014 network limit 1.3 fix log/path/data +utilsrfree2monero2015-02-242-42/+138
| | | | | | | | | | | | | | | | | | | | | | +toc -doc -drmonero Fixed the windows path, and improved logging and data (for graph) logging, fixed some locks and added more checks. Still there is a locking error, not added by my patches, but present in master version (locking of map/list of peers).
* | 2014 network limit 1.2 +utils +toc -doc -drmonerorfree2monero2015-02-205-24/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | new update of the pr with network limits more debug options: discarding downloaded blocks all or after given height. trying to trigger the locking errors. debug levels polished/tuned to sane values. debug/logging improved. warning: this pr should be correct code, but it could make an existing (in master version) locking error appear more often. it's a race on the list (map) of peers, e.g. between closing/deleting them versus working on them in net-limit sleep in sending chunk. the bug is not in this code/this pr, but in the master version. the locking problem of master will be fixed in other pr. problem is ub, and in practice is seems to usually cause program abort (tested on debian stable with updated gcc). see --help for option to add sleep to trigger the error faster.