Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2018-03-15 | Fix typos in various files | Dimitris Apostolou | 3 | -3/+3 | |
2018-02-25 | Wallet2 + CLI wallet: UTF-8 support for filenames and paths under Windows | rbrunner7 | 1 | -1/+82 | |
2018-02-18 | wipeable_string: don't try to wipe an empty buffer | moneromooo-monero | 1 | -3/+6 | |
memset_s doesn't like it | |||||
2018-02-17 | memwipe: add missing #include <stdio.h> | stoffu | 1 | -0/+1 | |
2018-02-11 | Fix #602 Turn on socket keepalive | Howard Chu | 1 | -0/+3 | |
2018-02-08 | epee get_ns_count: cast to uint64_t before multiplying 10^9 to avoid overflow | stoffu | 1 | -2/+2 | |
2018-02-02 | pass large parameters by const ref, not value | moneromooo-monero | 4 | -11/+11 | |
Coverity 136394 136397 136409 136526 136529 136533 175302 | |||||
2018-02-01 | call _exit instead of abort in release mode | moneromooo-monero | 1 | -0/+6 | |
Avoids cores being created, as they're nowadays often piped to some call home system | |||||
2018-01-31 | wipeable_string: call memwipe directly | moneromooo-monero | 2 | -13/+6 | |
since the original reason for the indirect call (that memwipe was not in contrib) is now gone | |||||
2018-01-29 | Fix method name in invoke_http_json_rpc | Erik de Castro Lopo | 1 | -1/+1 | |
Previously, the method name was printed as an exmpty string because the input string had already been moved with `std::move`. | |||||
2018-01-29 | Allow the number of incoming connections to be limited | Erik de Castro Lopo | 1 | -33/+45 | |
It was already possible to limit outgoing connections. One might want to do this on home network connections with high bandwidth but low usage caps. | |||||
2018-01-26 | Readd copyright starting date | xmr-eric | 7 | -7/+7 | |
2018-01-26 | Update 2018 copyright | xmr-eric | 17 | -17/+17 | |
2018-01-26 | levin_protocol_handler_async: erase from back of vector instead of front | stoffu | 1 | -1/+1 | |
2018-01-18 | remove unnecessary include | Jethro Grassie | 1 | -1/+0 | |
2018-01-18 | Remove is_pod trait, and replace with is_standard_layout requirement | Lee Clagett | 3 | -12/+15 | |
2018-01-11 | epee: detect strptime, use std::get_time as fallback | moneromooo-monero | 1 | -0/+6 | |
2018-01-11 | Keep readline optional | Jethro Grassie | 1 | -1/+1 | |
2018-01-10 | move memwipe to epee to avoid common<->crypto circular dependencies | moneromooo-monero | 3 | -1/+195 | |
2018-01-10 | epee: remove dependency on common | moneromooo-monero | 7 | -13/+12 | |
2017-12-27 | epee: check some error return values | moneromooo-monero | 1 | -8/+18 | |
2017-12-23 | wipeable_string: fix buffer overread | moneromooo-monero | 1 | -1/+1 | |
2017-12-23 | Fix Windows build | dEBRUYNE-1 | 1 | -0/+4 | |
Fix no new line | |||||
2017-12-23 | http_client: rewrite header parsing manually for speed | moneromooo-monero | 1 | -74/+95 | |
boost::regex is stupendously atrocious at parsing malformed data | |||||
2017-12-23 | tests: add http client fuzz test | moneromooo-monero | 1 | -3/+14 | |
2017-12-22 | factor STL container serialization | moneromooo-monero | 1 | -1/+0 | |
2017-12-21 | epee: use strptime instead of std::get_time, for compatibility | moneromooo-monero | 1 | -3/+3 | |
2017-12-19 | wipeable_string: move a wipe from reserve to grow | moneromooo-monero | 1 | -3/+2 | |
That way, all implicit wipes ends up in grow, which is more robust | |||||
2017-12-19 | wipeable_string: ignore reserve size less than actual size | moneromooo-monero | 1 | -2/+1 | |
This was asserting, but stoffu pointed out the std::string standard considers this ok and ignorable | |||||
2017-12-19 | wipeable_string: fix clear and push_back | moneromooo-monero | 1 | -1/+4 | |
2017-12-18 | network_throttle: fix ineffective locking | moneromooo-monero | 1 | -3/+5 | |
2017-12-18 | network_throttle: remove unused xxx static member | moneromooo-monero | 2 | -5/+0 | |
2017-12-18 | abstract_tcp_server2: log init_server errors as fatal | moneromooo-monero | 1 | -1/+11 | |
so they show up by default | |||||
2017-12-18 | net_parse_helpers: fix regex error checking | moneromooo-monero | 1 | -2/+2 | |
2017-12-18 | catch const exceptions | moneromooo-monero | 1 | -1/+1 | |
2017-12-18 | add empty container sanity checks when using front() and back() | moneromooo-monero | 1 | -1/+1 | |
2017-12-18 | epee: trap failure to parse URI from request | moneromooo-monero | 1 | -1/+6 | |
2017-12-18 | mlog: terminate a string at last char, just in case | moneromooo-monero | 1 | -0/+1 | |
2017-12-16 | move connection_basic and network_throttle from src/p2p to epee | moneromooo-monero | 8 | -3/+1218 | |
These even had the epee namespace. This fixes some ugly circular dependencies. | |||||
2017-12-16 | move includes around to lessen overall load | moneromooo-monero | 22 | -75/+87 | |
2017-12-16 | Scrub keys from memory just before scope end. | moneromooo-monero | 1 | -1/+1 | |
Partially implements #74. Securely erases keys from memory after they are no longer needed. Might have a performance impact, which I haven't measured (perf measurements aren't generally reliable on laptops). Thanks to @stoffu for the suggestion to specialize the pod_to_hex/hex_to_pod functions. Using overloads + SFINAE instead generalizes it so other types can be marked as scrubbed without adding more boilerplate. | |||||
2017-12-15 | levin_protocol_handler_async: another attempt at fixing at exception | moneromooo-monero | 1 | -3/+12 | |
2017-12-15 | Revert "epee: keep a ref to a connection we're deleting" | moneromooo-monero | 1 | -8/+2 | |
This reverts commit f2939bdce8c86b0f96921f731184c361106390c8. | |||||
2017-12-15 | levin_protocol_handler_async: add missing response handler locking | moneromooo-monero | 1 | -5/+9 | |
2017-12-15 | epee: add a get_file_size function | moneromooo-monero | 1 | -0/+20 | |
2017-12-11 | levin_protocol_handler_async: call handler destroy function on dtor | moneromooo-monero | 1 | -0/+1 | |
2017-12-09 | net_utils_base: fix peer list parsing | moneromooo-monero | 1 | -3/+25 | |
Fields are written with their "name" as key, and that name changed. | |||||
2017-12-07 | epee: add do while(0) around brace statement in a macro | moneromooo-monero | 1 | -1/+1 | |
Allows use in more complex expressions | |||||
2017-12-01 | epee: fix kv_unserialize return value when a field is not found | moneromooo-monero | 1 | -2/+2 | |
2017-11-28 | Corrections in rate limiting / trottle code, especially in 'out' direction | rbrunner7 | 1 | -5/+4 | |
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 | |||||
2017-11-27 | new wipeable_string class to replace std::string passphrases | moneromooo-monero | 5 | -4/+228 | |
2017-11-26 | Added command descriptions | Cifrado | 1 | -9/+15 | |
2017-11-16 | RPC: CORS add Access-Control-Allow-Headers to OPTIONS preflight | Tim L | 1 | -0/+3 | |
2017-11-14 | epee: don't disable -Wtautological-constant-out-of-range-compare on GCC | moneromooo-monero | 1 | -0/+2 | |
It's a CLANG only option, and causes GCC to error out | |||||
2017-11-14 | split off readline code into epee_readline | moneromooo-monero | 1 | -3/+14 | |
2017-11-14 | remove "using namespace std" from headers | moneromooo-monero | 1 | -2/+0 | |
It's nasty, and actually breaks on Solaris, where if.h fails to build due to: struct map *if_memmap; | |||||
2017-11-07 | RPC: get_info add rpc_connections_count | Tim L | 2 | -0/+11 | |
2017-11-03 | Fix file permission issue | Tim L | 6 | -0/+0 | |
This branch fixes a file permission issue introduced by https://github.com/monero-project/monero/commit/69c37200aa87f100f731e755bdca7a0dc6ae820a | |||||
2017-10-30 | RPC Add cross origin resource sharing support | Tim L | 6 | -17/+60 | |
2017-10-28 | epee: disable a spurious warning for a storage function | moneromooo-monero | 1 | -0/+1 | |
2017-10-20 | net_helper: fix massive slowdown after SSL support | moneromooo-monero | 1 | -5/+5 | |
2017-10-17 | cmake: epee: use var from FindOpenSSL.cmake | redfish | 1 | -2/+1 | |
This fixes linking when path to openssl is defined manually: cmake -DOPENSSL_ROOT_DIR='/usr/include/openssl-1.0;/usr/lib/openssl-1.0' ... This is useful for building with OpenSSL v1.0 when default system installation is v1.1. The linking error is undefined SSL_load_error_strings symbol. This is due to -L /usr/lib/openssl-1.0 not making it onto the linkline (so -lssl pulls in the default system openssl). | |||||
2017-10-17 | epee: use boost type for SSL error code | redfish | 1 | -1/+9 | |
Fixes compile error when building with OpenSSL v1.1: contrib/epee/include/net/net_helper.h: In member function ‘void epee::net_utils::blocked_mode_client::shutdown_ssl()’: contrib/epee/include/net/net_helper.h:579:106: error: ‘SSL_R_SHORT_READ’ was not declared in this scope if (ec.category() == boost::asio::error::get_ssl_category() && ec.value() != ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SHORT_READ)) ^ contrib/epee/include/net/net_helper.h:579:106: note: suggested alternative: ‘SSL_F_SSL_READ’ See boost/asio/ssl/error.hpp. Boost handles differences between OpenSSL versions. cmake: fail if Boost is too old for OpenSSL v1.1 | |||||
2017-10-15 | epee: link against ssl/crypto for the new SSL code | moneromooo-monero | 1 | -0/+2 | |
2017-10-15 | add string_tools::validate_hex() | Jaquee | 1 | -0/+6 | |
2017-10-15 | Serializer: string to integer conversion for MyMonero compatibility | Jaquee | 1 | -0/+27 | |
mymonero timestamp conversion | |||||
2017-10-15 | epee http_client SSL support | Jaquee | 3 | -46/+111 | |
2017-10-09 | Fix an object lifetime bug in net load tests | moneromooo-monero | 5 | -6/+27 | |
The commands handler must not be destroyed before the config object, or we'll be accessing freed memory. An earlier attempt at using boost::shared_ptr to control object lifetime turned out to be very invasive, though would be a better solution in theory. | |||||
2017-10-07 | frob level 1 logs a bit for consistency | moneromooo-monero | 3 | -6/+6 | |
Level 1 logs map to INFO, so setting log level to 1 should show these. Demote some stuff to DEBUG to avoid spam, though. | |||||
2017-10-07 | Subaddresses | kenshi84 | 1 | -5/+41 | |
2017-10-05 | Upgrades to epee::net_utils::network_address | Lee Clagett | 4 | -73/+189 | |
- internal nullptr checks - prevent modifications to network_address (shallow copy issues) - automagically works with any type containing interface functions - removed fnv1a hashing - ipv4_network_address now flattened with no base class | |||||
2017-09-27 | copyable_atomic: add a ctor with initial value | moneromooo-monero | 1 | -0/+2 | |
2017-09-25 | serialization: add deque serialization | moneromooo-monero | 1 | -0/+36 | |
2017-09-25 | http_base: init size_t in http_request_info ctor | moneromooo-monero | 1 | -1/+2 | |
CID 161879 | |||||
2017-09-22 | Log categories can now be added to and removed from | moneromooo-monero | 2 | -2/+40 | |
Also, set_log without parameters now prints the log categories | |||||
2017-09-22 | epee: factor log level/categories setting | moneromooo-monero | 1 | -2/+1 | |
2017-09-19 | epee: keep a ref to a connection we're deleting | moneromooo-monero | 1 | -2/+8 | |
close might end up dropping a ref, ending up removing the connection from m_connects, as the lock is recursive. This'd cause an out of bounds exception and kill the idle connection maker thread | |||||
2017-09-18 | epee: give virtual dtor to network_address_base | moneromooo-monero | 1 | -0/+3 | |
It has virtual functions and is used as a base class | |||||
2017-09-17 | daemon, wallet: add --max-log-file-size option | selsta | 2 | -3/+4 | |
2017-08-23 | print peer id in 0 padded hex for consistency | moneromooo-monero | 1 | -0/+12 | |
2017-08-22 | http_client: add getters for host and port | moneromooo-monero | 1 | -0/+3 | |
2017-08-22 | Simplify readline support | Howard Chu | 3 | -140/+85 | |
And don't use std::mutex | |||||
2017-08-16 | abstract_tcp_server2: improve tracking/cancelling of early connections | moneromooo-monero | 2 | -22/+15 | |
We don't actually need to keep them past the call to start, as this adds them to the config object list, and so they'll then be cancelled already when the stop signal arrives. This allows removing the periodic call to cleanup connections. | |||||
2017-08-16 | Construct on first use for completion_commands | Jethro Grassie | 2 | -15/+23 | |
2017-08-16 | Add sync lock on stop | Jethro Grassie | 1 | -5/+4 | |
Also added and moved two free's hoping to fix leaks. | |||||
2017-08-15 | Tweak net logs so we get more info on why networking can't start | moneromooo-monero | 1 | -1/+1 | |
This should prevent "silent" failures to start | |||||
2017-08-09 | epee: fixup KV_SERIALIZE_OPT to work in more cases | moneromooo-monero | 1 | -1/+4 | |
2017-08-07 | cryptonote_protocol_handler: sync speedup | moneromooo-monero | 1 | -0/+14 | |
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. | |||||
2017-08-05 | epee: remove a couple unused locals | moneromooo-monero | 1 | -2/+2 | |
2017-08-02 | simplewallet: add (out of sync) or (no daemon) markers in the prompt | moneromooo-monero | 1 | -11/+16 | |
Should help people who don't realize why they haven't seen their monero yet. | |||||
2017-08-01 | p2p: move m_in_timedsync from connection_context to p2p_connection_context | moneromooo-monero | 1 | -3/+0 | |
It's got no place in the base class as it's P2P specific field | |||||
2017-08-01 | epee: add nanosecond timer and pause/restart profiling macros | moneromooo-monero | 2 | -5/+17 | |
Nanosecond timer precision won't work on Windows, but we don't care since I'm using that just for profiling incremental code paths, but a Windows coder is welcome to add it if there's a way. | |||||
2017-07-24 | epee: add a KV_SERIALIZE variant for optional parameters | moneromooo-monero | 1 | -0/+7 | |
2017-07-24 | Fix readline prompt when command does not output | Jethro Grassie | 1 | -13/+24 | |
2017-07-24 | mlog: default to msgwriter logs only for log level 1 | moneromooo-monero | 1 | -1/+1 | |
There might be privacy issues doing it by default | |||||
2017-07-24 | Make msgwriter logs go to file only | moneromooo-monero | 1 | -0/+1 | |
This was the case for monero-wallet-cli already, but not for monerod, which was making it pretty spammy as it was duplicating intended output. Since my original intent was to ensure logs included command output for debugging, this achieves both. | |||||
2017-07-22 | mlog: fix crash accessing stale data when rotating logs | moneromooo-monero | 1 | -1/+1 | |
2017-07-15 | mlog: make MONERO_LOGS env var understand N,logs type spec | moneromooo-monero | 1 | -1/+1 | |
2017-07-09 | Add various readline related fixes | Jethro Grassie | 3 | -16/+74 | |
- Add missing unbind key - Fix colored messages - Add command completion - Preserve last command input - Fix cursor position issues - Fix trailing whitespace in commands - Synchronize set_prompt | |||||
2017-07-07 | Add notification on stop | Jethro Grassie | 1 | -0/+1 | |
2017-07-06 | mlog: add msgwriter:INFO to log 0 and 1 defaults | moneromooo-monero | 1 | -2/+2 | |
This ensures command output gets logged by default | |||||
2017-07-05 | epee: don't send the body of the response to a HEAD HTTP request | Guillaume LE VAILLANT | 1 | -1/+1 | |
According to the HTTP spec: "The HEAD method is identical to GET except that the server MUST NOT return a message-body in the response". | |||||
2017-07-05 | Fix spelling errors | Erik de Castro Lopo | 6 | -9/+9 | |
2017-07-02 | epee: Remove unused variable | Erik de Castro Lopo | 1 | -1/+0 | |
2017-07-01 | Fix issue #2119 SEGV | Howard Chu | 1 | -15/+20 | |
Due to bad refactoring in PR #2073. timeout_handler() doesn't work as a virtual function. | |||||
2017-06-28 | monero-wallet-cli: hang on exit in readline code (#2117) | moneromooo-monero | 1 | -3/+2 | |
readline_buffer: move a local to local scope Also limit the select fd limit to what we use Signed-off-by: Jethro Grassie <jtg@xtrabass.com> | |||||
2017-06-28 | monero-wallet-cli: hang on exit in readline code (#2117) | moneromooo-monero | 1 | -2/+10 | |
readline_buffer: fix start/stop threads being starved by process process could run for quite some time re-acquiring the process lock, leaving start/stop starving. Yielding after unlock in process is much better but doesn't seem to be enough to reliably yield, so we sleep for a millisecond, which should be transparent for user input anyway. Signed-off-by: Jethro Grassie <jtg@xtrabass.com> | |||||
2017-06-28 | abstract_tcp_server2: guard against accessing lock on a destroyed object | moneromooo-monero | 1 | -3/+3 | |
2017-06-28 | Remove typeid use in network_address | moneromooo-monero | 1 | -3/+2 | |
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. | |||||
2017-06-26 | Fix #2071: remove declaration of unused variable "it" in epee | binaryFate | 1 | -1/+0 | |
2017-06-25 | Fix multiline wallet cli output with readline | Jethro Grassie | 1 | -1/+5 | |
monero-wallet-cli commands which have multine output sometimes causes issues with the readline support. This patch fixes show_transfers, payments and incoming_transfers. | |||||
2017-06-24 | Add readline improvements | Jethro Grassie | 2 | -3/+10 | |
Color prompt now working and no reprompting on exit command. | |||||
2017-06-23 | readline_buffer: fix busy wait | moneromooo-monero | 1 | -1/+1 | |
It'd eat up a core constantly, due to spending its time jumping back and forth between userland and kernel. We now wait for up to a millisecond in kernel, which will be transparent to the user and drop to idle most of the time. | |||||
2017-06-21 | readline: fix invalid memory access | moneromooo-monero | 1 | -1/+1 | |
m_cout_buf was not initialized | |||||
2017-06-21 | readline_buffer: add a couple const | moneromooo-monero | 2 | -3/+3 | |
2017-06-19 | net_utils_base: added missing template keyword | kenshi84 | 1 | -1/+1 | |
2017-06-18 | Add readline support to cli | jethro | 4 | -1/+283 | |
This PR adds readline support to the daemon and monero-wallet-cli. Only GNU readline is supported (e.g. not libedit) and there are cmake checks to ensure this. There is a cmake variable, Readline_ROOT_DIR that can specify a directory to find readline, otherwise some default paths are searched. There is also a cmake option, USE_READLINE, that defaults to ON. If set to ON, if readline is not found, the build continues but without readline support. One negative side effect of using readline is that the color prompt in the wallet-cli now has no color and just uses terminal default. I know how to fix this but it's quite a big change so will tackle another time. | |||||
2017-06-15 | Don't issue a new timedsync while one is already in progress | Howard Chu | 1 | -0/+3 | |
A timedsync is issued every minute on a connection, but the input tineout is 2 minutes. This means a new sync request could be issued while a slow sync request was already in progress. The additional request will further clog the network on a slow connection, and cause a premature timeout. | |||||
2017-06-15 | Don't timeout a slow operation that's making progress | Howard Chu | 1 | -9/+46 | |
If we got at least MIN_BYTES_WANTED (default 512) during any network poll, reset the timeout to allow more time for data to arrive. | |||||
2017-06-15 | Fix PR#2039 | Howard Chu | 1 | -1/+1 | |
Missed a crypto -> cncrypto rename | |||||
2017-06-04 | Fix PR#2039 | Howard Chu | 1 | -1/+1 | |
Missed a crypto -> cncrypto rename | |||||
2017-05-31 | Fix PR#2039 | Howard Chu | 1 | -1/+1 | |
Missed a crypto -> cncrypto rename | |||||
2017-05-27 | abstracted nework addresses | moneromooo-monero | 8 | -26/+122 | |
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. | |||||
2017-05-17 | shared libs build (i.e. make debug) | stoffu | 1 | -2/+0 | |
2017-04-25 | Removed some unused epee functions | Lee Clagett | 3 | -726/+2 | |
2017-04-11 | Simplified the implementation and features of span | Lee Clagett | 4 | -199/+142 | |
2017-04-11 | Improvements for epee binary to hex functions: | Lee Clagett | 6 | -49/+342 | |
- Performance improvements - Added `span` for zero-copy pointer+length arguments - Added `std::ostream` overload for direct writing to output buffers - Removal of unused `string_tools::buff_to_hex` | |||||
2017-04-10 | setThreadName moved in new version of easylogging++ | moneromooo-monero | 1 | -1/+1 | |
2017-04-10 | update easylogging++ to latest upstream | moneromooo-monero | 2 | -9/+1 | |
2017-04-01 | mlog: direct log category changes to file only | moneromooo-monero | 1 | -4/+9 | |
Because some people just won't even try to read what is written and freak out because the word FATAL is in here, despite the context making it clear it's not an error. | |||||
2017-03-21 | Fix freebsd build | Lee Clagett | 1 | -0/+1 | |
2017-03-19 | Revert "Increase the log level for the info about log levels" | moneromooo-monero | 1 | -2/+2 | |
We want to know which log categories are active. This reverts commit 4f7bce6d20c72a1384289f7c35b7fe0ee796ed41. | |||||
2017-03-18 | Removed boost/asio.hpp include from epee/string_tools.h | Lee Clagett | 6 | -33/+77 | |
2017-03-05 | http_client: allow cancelling a download | moneromooo-monero | 1 | -2/+10 | |
2017-03-05 | http_client: allow derived class to get headers at start | moneromooo-monero | 1 | -0/+11 | |
2017-02-26 | mlog: default net.cn to FATAL | moneromooo-monero | 1 | -1/+1 | |
Errors in this layer depend on how peers behave, and thus errors are expected | |||||
2017-02-25 | Increase the log level for the info about log levels | Nano Akron | 1 | -2/+2 | |
2017-02-24 | Updated default RPC timeout from 5 seconds to 15 seconds | Lee Clagett | 1 | -4/+4 | |
2017-02-21 | http_server_impl_base: set bind message to MGINFO | anonimal | 1 | -1/+1 | |
2017-02-21 | update copyright year, fix occasional lack of newline at line end | Riccardo Spagni | 4 | -4/+4 | |
2017-02-21 | mlog: restrict net.p2p to FATAL by default | moneromooo-monero | 1 | -1/+1 | |
2017-02-20 | mlog: only silence errors for net by default, not net.* | moneromooo-monero | 1 | -1/+1 | |
2017-02-20 | http_client: add a couple consts | moneromooo-monero | 1 | -2/+2 | |
2017-02-12 | epee: fix some log macros not printing context nicely | moneromooo-monero | 1 | -5/+5 | |
2017-02-12 | Fixup choice of easylogging++ vs libunwind stack trace code | moneromooo-monero | 1 | -2/+3 | |
2017-02-12 | mlog: move log level changes to global level | moneromooo-monero | 1 | -2/+2 | |
Makes it more likely to show up | |||||
2017-02-12 | mlog: s/Mew/New/ in log | moneromooo-monero | 1 | -2/+2 | |
2017-02-08 | extract some basic code from libcryptonote_core into libcryptonote_basic | kenshi84 | 1 | -1/+9 | |
2017-02-06 | Add server auth to monerod, and client auth to wallet-cli and wallet-rpc | Lee Clagett | 7 | -46/+86 | |
2017-02-06 | disable ELPP_STACKTRACE_ON_CRASH for android | MoroccanMalinois | 1 | -0/+2 | |
2017-02-04 | mlog: fix default logging being not verbose enough | moneromooo-monero | 1 | -27/+27 | |
2017-02-04 | Use easylogging++'s stack trace facility where possible | moneromooo-monero | 1 | -1/+2 | |
This avoids using libunwind, which often causes trouble. | |||||
2017-02-04 | mlog: probable fix for gmtime_r not being available on windows | moneromooo-monero | 1 | -1/+6 | |
2017-01-30 | GUI: Add install target for epee | Jaquee | 1 | -0/+10 | |
2017-01-25 | Updates to epee HTTP client code | Lee Clagett | 4 | -200/+80 | |
- http_simple_client now uses std::chrono for timeouts - http_simple_client accepts timeouts per connect / invoke call - shortened names of epee http invoke functions - invoke command functions only take relative path, connection is not automatically performed | |||||
2017-01-22 | mlog: allow using numerical level as default prefix | moneromooo-monero | 1 | -25/+37 | |
eg, 2,foo:ERROR,bar:INFO | |||||
2017-01-22 | mlog: fix default level/category mapping | moneromooo-monero | 1 | -2/+2 | |
It was not matching the LOG_PRINT_Lx mapping for 2/3/4 | |||||
2017-01-21 | Make stack trace show up in log file with default settings | moneromooo-monero | 1 | -2/+2 | |
2017-01-21 | undelete epee tests.cpp | moneroexamples | 1 | -0/+59 | |
2017-01-20 | removing some unsed epee files | moneroexamples | 6 | -787/+0 | |
2017-01-16 | mlog: allow overriding log format | moneromooo-monero | 1 | -2/+4 | |
using the MONERO_LOG_FORMAT environment variable. Default is: %datetime{%Y-%M-%d %H:%m:%s.%g}\t%thread\t%level\t%logger\t%loc\t%msg Field list in easylogging++ documentation. Don't forget to escape as needed. | |||||
2017-01-16 | Change logging to easylogging++ | moneromooo-monero | 32 | -1467/+603 | |
This replaces the epee and data_loggers logging systems with a single one, and also adds filename:line and explicit severity levels. Categories may be defined, and logging severity set by category (or set of categories). epee style 0-4 log level maps to a sensible severity configuration. Log files now also rotate when reaching 100 MB. To select which logs to output, use the MONERO_LOGS environment variable, with a comma separated list of categories (globs are supported), with their requested severity level after a colon. If a log matches more than one such setting, the last one in the configuration string applies. A few examples: This one is (mostly) silent, only outputting fatal errors: MONERO_LOGS=*:FATAL This one is very verbose: MONERO_LOGS=*:TRACE This one is totally silent (logwise): MONERO_LOGS="" This one outputs all errors and warnings, except for the "verify" category, which prints just fatal errors (the verify category is used for logs about incoming transactions and blocks, and it is expected that some/many will fail to verify, hence we don't want the spam): MONERO_LOGS=*:WARNING,verify:FATAL Log levels are, in decreasing order of priority: FATAL, ERROR, WARNING, INFO, DEBUG, TRACE Subcategories may be added using prefixes and globs. This example will output net.p2p logs at the TRACE level, but all other net* logs only at INFO: MONERO_LOGS=*:ERROR,net*:INFO,net.p2p:TRACE Logs which are intended for the user (which Monero was using a lot through epee, but really isn't a nice way to go things) should use the "global" category. There are a few helper macros for using this category, eg: MGINFO("this shows up by default") or MGINFO_RED("this is red"), to try to keep a similar look and feel for now. Existing epee log macros still exist, and map to the new log levels, but since they're used as a "user facing" UI element as much as a logging system, they often don't map well to log severities (ie, a log level 0 log may be an error, or may be something we want the user to see, such as an important info). In those cases, I tried to use the new macros. In other cases, I left the existing macros in. When modifying logs, it is probably best to switch to the new macros with explicit levels. The --log-level options and set_log commands now also accept category settings, in addition to the epee style log levels. | |||||
2017-01-14 | inline unused function (for unused-function warning) | Chris Vickio | 1 | -1/+1 | |
2017-01-11 | Added (not yet enabled) HTTP client authentication | Lee Clagett | 4 | -139/+487 | |
2017-01-05 | Build wallet with Android NDK | MoroccanMalinois | 1 | -1/+1 | |
2016-12-30 | Workarounds for gcc 4.8 | Lee Clagett | 1 | -3/+10 | |
2016-12-13 | Adding HTTP Digest Auth (but not yet enabled) | Lee Clagett | 7 | -6/+689 | |
2016-12-04 | Spelling in errors | taushet | 1 | -1/+1 | |
2016-11-28 | epee: add functions to convert from URL format (ie, %XX values) | moneromooo-monero | 1 | -0/+30 | |
2016-11-28 | epee: signal cond var before unlocking | moneromooo-monero | 1 | -1/+1 | |
This is more canonical, and avoids some helgrind spam | |||||
2016-11-23 | Fix DNS failures in offline mode preventing daemon startup | moneromooo-monero | 1 | -3/+3 | |
2016-11-17 | epee: blind attempt to fix exit hang on windows | moneromooo-monero | 1 | -0/+14 | |
Thanks to duckduckgo and the internet. This might even compile. | |||||
2016-11-12 | levin: fix wrong value passed as return code to remote call | moneromooo-monero | 1 | -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-10-31 | adding static_assert to pod functions in string tools | Lee Clagett | 1 | -0/+4 | |
2016-10-27 | Unkonown -> unknown | NanoAkron | 1 | -1/+1 | |
2016-10-03 | Removed all code related to fast_exit | NanoAkron | 2 | -14/+1 | |
2016-09-18 | epee: optionally restrict HTTP service to a configurable user agent | moneromooo-monero | 5 | -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-01 | epee: do not try network resolution if loopback worked | moneromooo-monero | 1 | -1/+1 | |
Fixes the wallet being unable to connect to the daemon when there is no NIC. | |||||
2016-07-03 | allow peers without port | moneromooo-monero | 1 | -4/+9 | |
The default port is then used | |||||
2016-06-22 | contrib: epee: add missing noexcept spec to class decl | redfish | 1 | -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-19 | Require 64/16 characters for payment ids | moneromooo-monero | 1 | -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-18 | contrib: epee: add exception spec to throwing destructors | redfish | 3 | -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-14 | Don't allow 'flush_txpool' and 'setbans' JSON_RPC methods when running in ↵ | osensei | 1 | -2/+4 | |
restricted mode. | |||||
2016-05-01 | core: move tx_extra parsing errors to log level 1 | moneromooo-monero | 1 | -1/+9 | |
They're not fatal, though indicate something wrong | |||||
2016-04-17 | abstract_tcp_server2: fix send queue limit warning spam | moneromooo-monero | 1 | -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-17 | abstract_tcp_server2: avoid deadlock waiting for send queue to drain | moneromooo-monero | 1 | -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-06 | Fix get_tick_count() on Windows | Howard Chu | 1 | -5/+7 | |
GetTickCount used in 52056dcfc480a126e06afaf209b1772b6aa77fb3 only has ~10-16ms resolution. Use higher rez timer to get 1ms rez. | |||||
2016-04-02 | epee: flush output after a message | moneromooo-monero | 1 | -0/+1 | |
This is equivalent to line buffering, as C++ seems to lack a setvbuf equivalent which alows line buffering. | |||||
2016-03-27 | abstract_tcp_server2: possible fix for exception in handle_accept | moneromooo-monero | 1 | -4/+17 | |
2016-03-25 | remove unecessary and bad std::move from portable_storage_template_helper.h | Riccardo Spagni | 1 | -2/+2 | |
2016-03-21 | Revert "Print stack trace upon exceptions" | moneromooo-monero | 3 | -4/+4 | |
Ain't nobody got time for link/cmake skullduggery. This reverts commit fff238ec94ac6d45fc18c315d7bc590ddfaad63d. | |||||
2016-03-20 | epee: fix potential hang on exit | moneromooo-monero | 1 | -0/+8 | |
Also close sockets on failure, just in case | |||||
2016-03-19 | Print stack trace upon exceptions | moneromooo-monero | 3 | -4/+4 | |
Useful for debugging users' logs | |||||
2016-03-12 | epee: fix bug deleting more than one connection at once | moneromooo-monero | 1 | -0/+1 | |
2016-03-11 | WIN32 thread_id is OS-dependent not compiler-dependent | Howard Chu | 1 | -1/+7 | |
2016-03-11 | Use boost::thread instead of std::thread | Howard Chu | 4 | -19/+19 | |
and all other associated IPC | |||||
2016-02-22 | move g_test_dbg_lock_sleep from a global to a function level static | moneromooo-monero | 1 | -5/+12 | |
This avoids the need to define that variable in every program which uses epee. | |||||
2016-02-18 | Fix crash in std::map for connections_map | Howard Chu | 1 | -1/+2 | |
Use boost::unordered_map instead. | |||||
2016-02-18 | std::condvar is broken on Win32 with gcc/g++ 4.8 too | Howard Chu | 1 | -6/+4 | |
Use boost... | |||||
2016-02-18 | Use boost::thread instead of std::thread | Howard Chu | 1 | -2/+3 | |
std::thread crashes on (at least) ARMv6 g++ 4.8/4.9 |