aboutsummaryrefslogtreecommitdiff
path: root/contrib (follow)
AgeCommit message (Collapse)AuthorFilesLines
2016-11-12levin: fix wrong value passed as return code to remote callmoneromooo-monero1-1/+1
When receiving an answer packet, the command code was passed to the callback instead of the error code. This was hiding the "command not found" failure from the peer, and in turn causing the code to attempt to deserialize a non existent reply string.
2016-11-01Merge pull request #1272Riccardo Spagni1-0/+10
48b57d8 monero.supp: valgrind suppressions file (moneromooo-monero) ffd8c41 ringct: check the size of amount_keys is the same as destinations (moneromooo-monero) 836669d ringct: always shutdown the boost io service (moneromooo-monero)
2016-10-31adding static_assert to pod functions in string toolsLee Clagett1-0/+4
2016-10-29monero.supp: valgrind suppressions filemoneromooo-monero1-0/+10
Seeded with a spurious problem when inspecting stack trace
2016-10-27Unkonown -> unknownNanoAkron1-1/+1
2016-10-23daemon: add a print_pool_stats daemon commandmoneromooo-monero1-0/+1
Helps see what's going on now that Monero is getting used
2016-10-03Removed all code related to fast_exitNanoAkron3-15/+1
2016-09-25This file is for rlwrap for monero 0.10zveda1-0/+33
2016-09-25This file is for rlwrap for monero 0.10zveda1-0/+35
2016-09-18epee: optionally restrict HTTP service to a configurable user agentmoneromooo-monero5-12/+31
This is intended to catch traffic coming from a web browser, so we avoid issues with a web page sending a transfer RPC to the wallet. Requiring a particular user agent can act as a simple password scheme, while we wait for 0MQ and proper authentication to be merged.
2016-09-18cmake: support BUILD_SHARED_LIBS built-in optionredfish1-1/+1
Support building internal libraries as shared. This reduces development time by eliminating the need to re-link all binaries every time non-interface code in the library changes. Instead, can hack on libxyz, then `make libxyz`, and re-run monerod. By default BUILD_SHARED_LIBS is OFF in release build type, and ON in debug build type, but can be overriden with -D.
2016-09-11Fix portability issues discovered with fresh snap install.Casey Marshall2-0/+2
ARCH=native fixes SIGILL issues on other amd64 processors. Static library dependencies where supported. Package libunbound2 in the snap.
2016-09-11Add snap packaging.Casey Marshall3-0/+20
This adds [snap](https://snapcraft.io) packaging to the project. See the link for more information on snaps. Snap packages install on all Linux distributions. On Ubuntu, snap confinement with apparmor and seccomp provide an additional layer of security. This snap sets up monerod as a systemd service, which should start immediately on install. To access the wallet CLI, simply run `monero` (/snap/bin/monero). I think it's a really quick & easy way to get started with monero. I've made some opinionated decisions in the packaging just to kick this off, but I'm happy to iterate on this stuff.
2016-09-01epee: do not try network resolution if loopback workedmoneromooo-monero1-1/+1
Fixes the wallet being unable to connect to the daemon when there is no NIC.
2016-07-06Merge pull request #884Riccardo Spagni1-4/+9
c2ad9ca allow peers without port (moneromooo-monero)
2016-07-03allow peers without portmoneromooo-monero1-4/+9
The default port is then used
2016-06-22contrib: epee: add missing noexcept spec to class declredfish1-1/+1
The noexcept specs were added to make GCC 6.1.1 happy (#846), but this one was missing (because GCC did not complain about it on Linux, but does complain on OSX).
2016-06-19Merge pull request #862Riccardo Spagni1-1/+3
5dc09f2 wallet_rpc_server: fix some string values being returned between <> (moneromooo-monero) f8213c0 Require 64/16 characters for payment ids (moneromooo-monero)
2016-06-19Require 64/16 characters for payment idsmoneromooo-monero1-1/+3
The default behavior for hex string parsing would allow the last digit to be made from a single hexadecimal character, which is correct, but we typically do not want that as it gets confusing and easy to not spot wrong input size.
2016-05-18contrib: epee: add exception spec to throwing destructorsredfish3-3/+3
The destructors get a noexcept(true) spec by default, but these destructors in fact throw exceptions. An alternative fix might be to not throw (most if not all of these throws are non-essential error-reporting/logging).
2016-05-17Merge pull request #840Riccardo Spagni1-2/+4
1c0bffb Restrict also 'get_connections' and 'getbans' APIs. (osensei) 9f8bc49 Don't allow 'flush_txpool' and 'setbans' JSON_RPC methods when running in restricted mode. (osensei)
2016-05-14Don't allow 'flush_txpool' and 'setbans' JSON_RPC methods when running in ↵osensei1-2/+4
restricted mode.
2016-05-01core: move tx_extra parsing errors to log level 1moneromooo-monero1-1/+9
They're not fatal, though indicate something wrong
2016-04-17abstract_tcp_server2: fix send queue limit warning spammoneromooo-monero1-1/+1
When the send queue limit is reached, it is likely to not drain any time soon. If we call close on the connection, it will stay alive, waiting for the queue to drain before actually closing, and will hit that check again and again. Since the queue size limit is the reason we're closing in the first place, we call shutdown directly.
2016-04-17abstract_tcp_server2: avoid deadlock waiting for send queue to drainmoneromooo-monero1-2/+5
If we reach the send queue size limit, we need to release the lock, or we will deadlock and it will never drain. If we reach that limit, it's likely there's another problem in the first place though, so it will probably not drain in practice either, unless some kind of transient network timeout.
2016-04-06Merge pull request #799Riccardo Spagni1-5/+7
aaaf9e2 Fix get_tick_count() on Windows (Howard Chu)
2016-04-06Fix get_tick_count() on WindowsHoward Chu1-5/+7
GetTickCount used in 52056dcfc480a126e06afaf209b1772b6aa77fb3 only has ~10-16ms resolution. Use higher rez timer to get 1ms rez.
2016-04-02epee: flush output after a messagemoneromooo-monero1-0/+1
This is equivalent to line buffering, as C++ seems to lack a setvbuf equivalent which alows line buffering.
2016-03-27abstract_tcp_server2: possible fix for exception in handle_acceptmoneromooo-monero1-4/+17
2016-03-25remove unecessary and bad std::move from portable_storage_template_helper.hRiccardo Spagni1-2/+2
2016-03-21Revert "Print stack trace upon exceptions"moneromooo-monero3-4/+4
Ain't nobody got time for link/cmake skullduggery. This reverts commit fff238ec94ac6d45fc18c315d7bc590ddfaad63d.
2016-03-20Merge pull request #736Riccardo Spagni1-0/+8
2b4cab3 epee: fix potential hang on exit (moneromooo-monero)
2016-03-20epee: fix potential hang on exitmoneromooo-monero1-0/+8
Also close sockets on failure, just in case
2016-03-19Print stack trace upon exceptionsmoneromooo-monero3-4/+4
Useful for debugging users' logs
2016-03-12epee: fix bug deleting more than one connection at oncemoneromooo-monero1-0/+1
2016-03-11Merge pull request #712Riccardo Spagni7-33/+35
66c2fc7 Need to link boost::chrono in more places now (Howard Chu) b937a2c Use boost::thread instead of std::thread (Howard Chu)
2016-03-11WIN32 thread_id is OS-dependent not compiler-dependentHoward Chu1-1/+7
2016-03-11Use boost::thread instead of std::threadHoward Chu7-33/+35
and all other associated IPC
2016-03-11WIN32: Need getpid() declarationHoward Chu1-0/+1
2016-02-22move g_test_dbg_lock_sleep from a global to a function level staticmoneromooo-monero1-5/+12
This avoids the need to define that variable in every program which uses epee.
2016-02-18Fix crash in std::map for connections_mapHoward Chu1-1/+2
Use boost::unordered_map instead.
2016-02-18std::condvar is broken on Win32 with gcc/g++ 4.8 tooHoward Chu1-6/+4
Use boost...
2016-02-18Use boost::thread instead of std::threadHoward Chu1-2/+3
std::thread crashes on (at least) ARMv6 g++ 4.8/4.9
2016-02-13epee: always call the PRNG through the locked APImoneromooo-monero1-1/+1
2016-01-30epee: use generate_random_bytes for new random uuidsmoneromooo-monero1-1/+6
Instead of using boost::uuids::generate_random, which uses uninitialized stuff *on purpose*, just to annoy people who use valgrind
2016-01-30epee: remove dodgy random code that nobody usesmoneromooo-monero1-9/+0
in case someone might want to use it
2016-01-25Merge pull request #622Riccardo Spagni1-1/+1
e514f0a even more typos (Henning Kopp) 9abc4b8 more typos fixed (Henning Kopp) 0693f3c fixed typo (Henning Kopp)
2016-01-25more typos fixedHenning Kopp1-1/+1
2016-01-21OpenBSD support for Monero.me0wmix1-0/+7
2016-01-03ARM chars are unsignedHoward Chu1-1/+1
2016-01-02IP_TOS not supported before Windows7Howard Chu1-1/+4
2015-12-31updated copyright yearRiccardo Spagni1-1/+1
2015-12-23epee: regularly cleanup connections we kept a reference tomoneromooo-monero2-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.
2015-12-22epee: fix hang on exitmoneromooo-monero2-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.
2015-12-19epee: make log macros behave like statementsmoneromooo-monero1-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");
2015-12-06console_handler: catch exception inside the input loopmoneromooo-monero1-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.
2015-11-30Merge pull request #507Riccardo Spagni1-9/+21
62e49a5 wallet: optional automatic refresh from the daemon (moneromooo-monero)
2015-11-28wallet: optional automatic refresh from the daemonmoneromooo-monero1-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.
2015-11-27core_rpc_server: add a --restricted-rpc optionmoneromooo-monero1-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)
2015-11-23Add IP blocking for misbehaving nodes (adapted from Boolberry)Javier Smooth1-3/+1
With minor cleanup and fixes (spelling, indent) by moneromooo
2015-10-21console_handler: silence spurious message when exiting daemonmoneromooo-monero1-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.
2015-08-16epee: Don't set log file name when process path name isn't foundwarptangent1-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.
2015-07-18console_handler: do not call a NULL function pointermoneromooo-monero1-1/+2
The exit_handler can be NULL.
2015-07-18console_handler: check for eof before trying to use inputmoneromooo-monero1-4/+5
We'll get there without input if we exited
2015-06-03fix ^D exit for bitmonerodmoneromooo-monero1-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.
2015-05-31cleaning up, removing redundant files, renaming, fixing incorrect licensesRiccardo Spagni1-0/+27
2015-05-30console_handler: handle EOF properlymoneromooo-monero1-3/+19
Exit instead of reading "empty" commands in an infinite loop.
2015-05-25Fix compile for GCC 5.1.0warptangent1-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.
2015-04-10[fix] log level change. compilation: dns, testsrfree2monero1-2/+2
old unbound #warning does not block compilation unit tests build fine. Even though the RPC/P2P network type is required again
2015-04-08[fix] Network 1.8: unlimited the RPC connectionsrfree2monero3-59/+112
works for unit tests build, too
2015-04-02Network 1.7; Quieted the debug a bit.rfree2monero1-5/+5
Really really finall version of this changes I hope.
2015-04-02Utils: use const, document dbg. Less default debugrfree2monero2-30/+55
2015-04-01[fix] mac os x includes std::random...rfree2monero1-0/+4
2015-04-01added windows_stream.* console colorsrfree2monero2-0/+84
2015-04-01remerged; commands JSON. logging upgrade. doxygenrfree2monero3-22/+115
2015-04-01Merge remote-tracking branch 'monero-official/master' into network-1.6-work1rfree2monero2-63/+62
2015-03-27Restore daemon interactive modeThomas Winget2-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.
2015-02-242014 network limit 1.3 fix log/path/data +utilsrfree2monero2-45/+141
+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).
2015-02-24Daemonize changes pulled in -- daemon buildsThomas Winget1-54/+51
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.
2015-02-202014 network limit 1.2 +utils +toc -doc -drmonerorfree2monero5-26/+82
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.
2015-02-20fixed size_t on windowsrfree2monero1-2/+8
thought it was already fixed, apparently commit got lost somewhere
2015-02-202014 network limit 1.1 +utils +toc -doc -drmonerorfree2monero9-49/+145
Update of the PR with network limits works very well for all speeds (but remember that low download speed can stop upload because we then slow down downloading of blockchain requests too) more debug options fixed pedantic warnings in our code should work again on Mac OS X and FreeBSD fixed warning about size_t tested on Debian, Ubuntu, Windows(testing now) TCP options and ToS (QoS) flag FIXED peer number limit FIXED some spikes in ingress/download FIXED problems when other up and down limit
2015-02-202014 network limit 1.0a +utils +toc -doc -drmonerorfree2monero13-127/+1799
commands and options for network limiting works very well e.g. for 50 KiB/sec up and down ToS (QoS) flag peer number limit TODO some spikes in ingress/download TODO problems when other up and down limit added "otshell utils" - simple logging (with colors, text files channels)
2015-01-02year updated in licenseRiccardo Spagni44-41/+41
2014-10-02forgot to add connection context to log lineRiccardo Spagni1-1/+1
2014-10-02moved non-critical p2p errors to l2Riccardo Spagni2-2/+2
2014-09-29dependencies enforced, send que error message log level movedRiccardo Spagni1-1/+1
2014-09-15increase ABSTRACT_SERVER_SEND_QUE_MAX_COUNT to a more sane valueRiccardo Spagni1-1/+1
2014-09-09moved non-critical warnings and errors to log level 1fluffypony6-9/+10
2014-07-25move modified epee code to new classes, revert licensefluffypony104-2671/+2067
2014-07-23License updated to BSD 3-clausefluffypony104-2067/+2671
2014-06-13Fixed console handler not properly exiting on SIGINT and suchThomas Winget1-1/+7
2014-06-06removed continue issuefluffypony1-1/+0
2014-06-04don't fall apart if you can't get_linefluffypony1-3/+2
2014-05-25extra filesmydesktop4-0/+433
2014-05-250.8.8updatemydesktop11-192/+101
2014-05-03initial [broken] updatemydesktop1-1/+1
2014-04-30mac osx building fixesmydesktop3-5/+5
2014-04-30various fixes to allow mac osx compilationmydesktop2-3/+3
2014-04-07Improvements in JSON RPCAntonio Juarez9-69/+89
2014-04-02json rpc for wallet and bugfixAntonio Juarez7-23/+102
2014-03-20some fixesAntonio Juarez29-316/+605
2014-03-03moved all stuff to githubAntonio Juarez120-0/+24291