Commit Graph

10759 Commits

Author SHA1 Message Date
Jeffrey 21e43de0f3 Eliminate reliance of abstract_tcp_server2.inl on pragma_comp_defs.h
The GCC maybe-uninitialized warning was already taken care of, and
I don't think it's possible (or realistic) to compile monero in vanilla
VS anymore, and the warning 4355 is turned off by default anyways. Also,
on principal, warnings shouldn't be suppressed en masses like they were
before this change, especially for such an important file.
2022-03-06 11:15:29 -06:00
Jeffrey 36933c7f5c Eliminate portable_storage_to_bin.h reliance on pragma_comp_defs.h
The `-Wstrict-aliasing` warning issue was already fixed by someone earlier.
And for the `-Wtautological-constant-out-of-range-compare` (wordy) warning,
I replaced `val <= 4611686018427387903` assertion with `!(val >> 31 >> 31)`
expression. These expressions are equivalent but the latter is defined if
the size_t type is only 32-bits wide. Another way to think about it is that
the expression is checking if any bit after the 61st bit is set.
2022-03-06 00:48:38 -06:00
Jeffrey 6d4727c714 Remove contrib/epee/tests
These tests appear to never have been used in Monero's lifetime and it would take
a Herculean effort to refactor these files to the point where they will compile.
At many points, these tests include headers which no longer exist in EPEE.
2022-03-05 23:34:58 -06:00
Jeffrey 1b798a7042 Remove the only 4 non-UTF8 characters in codebase
AFAIK these 4 hyphens in these comments in local_ip.h are the only non-UFT8 characters in the entire monero repo.
It tripped up a dependency script I was writing for this codebase, so now its personal.
2022-03-05 21:43:29 -06:00
Jeffrey 7fa9e2817d Further refactor time_helper.h
Actions:
* Remove superfluous includes to boost/date_time, iostream, and pragma_comp_defs.h
* Include cstdio for snprintf
* Include string for std::string
* Move get_gmt_time to top of module for following step
* Use thread-safe get_gmt_time instead of unsafe gm_time in function get_internet_time_str()
* In get_time_interval_string(), add explicit (int) casts to git rid of VS4996 warnings
* In get_time_interval_string(), use snprintf instead of boost::lexical_casts and string concats
* In file epee_utils.cpp, include boost/range/iterator_range.hpp for boost::make_iterator_range.
  Previously, epee_util.cpp was including some file which was including time_helper which included
  a boost header which included iterator_range.hpp at some point, which allowed epee_util.cpp to
  compile without an explicit include of iterator_range.hpp. I added it because I removed the boost
  includes in the first step which broke epee_util.cpp.
2022-03-04 13:48:12 -06:00
Jeffrey 020531a813 Remove old defs of invoke_remote_command2() and notify_remote_command2() 2022-03-02 16:13:40 -06:00
Jeffrey 5b164ed0c1 Remove gzipped_inmemstorage.h 2022-03-02 15:57:41 -06:00
Jeffrey 9a59b131c4 Merge misc_os_dependent.h into time_helper.h
Actions:
* Move get_ns_count(), get_tick_count(), and get_gmt_time() from misc_os_dependent.h to time_helper.h. I did this because all those functions are time-related and under the same namespace
* Remove misc_os_dependent.h because it is now empty
* Change all includes of misc_os_dependent.h to time_helper.h where appropriate
* Remove get_time_string*() from time_helper.h b/c its unused
* Remove get_time_t_from_ole_date() from time_helper.h b/c its unused
* Remove odbc_time_to_oledb_taime() from time_helper.h b/c its unused
* Refactor get_ns_count() to use std::chrono instead of 4 different implementation-specific hacks
2022-03-02 00:32:22 -06:00
Jeffrey 4b3d9de65b Remove levin_client_async.* 2022-03-02 00:29:52 -06:00
Jeffrey 0da8bdc2e0 Remove crypted_storage.h 2022-03-01 10:37:35 -06:00
Jeffrey a9fbe52b02 Remove misc_os_dependent.cpp and unused functions from misc_os_dependent.h
Actions:
Remove call_sys_cmd() definition from misc_os_dependent.h b/c its unused
Remove get_thread_string_id() declaration from misc_os_dependent.h b/c its unused
Remove misc_os_dependent.cpp file b/c the only definition was get_thread_string_id()
Remove file reference to misc_os_dependent.cpp from epee/src/CMakeLists.txt b/c its now deleted
2022-03-01 10:25:55 -06:00
Jeffrey bb136b1fd4 Remove http_client_via_api_helper.h 2022-03-01 10:05:57 -06:00
Jeffrey f9d6504594 Remove http_server_thread_per_connect and its dependencies 2022-03-01 10:01:00 -06:00
Jeffrey bd0a511995 Move copyable_atomic to be a sub-class of cryptonote_connection_context
epee::copyable_atomic was only be used by one struct, cryptonote_connection_context.
This should probably eventually factored out of that class, so I left the following comment:

This class was originally from the EPEE module. It is identical in function to std::atomic<uint32_t> except
that it has copy-construction and copy-assignment defined, which means that earliers devs didn't have to write
custom copy-contructors and copy-assingment operators for the outer class, cryptonote_connection_context.
cryptonote_connection_context should probably be refactored because it is both trying to be POD-like while
also (very loosely) controlling access to its atomic members.
2022-02-15 17:36:45 -06:00
Jeffrey bc6a7b6cbe Remove abstract_tcp_server_cp.* 2022-02-14 00:10:53 -06:00
Jeffrey 3c0d1ccb10 Remove levin_server_cp* 2022-02-13 23:54:42 -06:00
Jeffrey 8f492bf65d Remove net_fwd.h and #includes of said header 2022-02-13 23:34:40 -06:00
Jeffrey 5a09e84ed0 Remove http_server_cp*.h 2022-02-13 23:29:03 -06:00
Jeffrey 642e533edb Remove protocol_switcher.h 2022-02-13 23:22:46 -06:00
Jeffrey cd3186988b Remove rpc_method_name.h 2022-02-13 23:20:56 -06:00
Jeffrey 78f16d3299 Remove multiprotocols_server.h 2022-02-13 23:19:20 -06:00
Jeffrey f2f9bf82de Remove munin_connection_handler.h 2022-02-13 22:12:03 -06:00
Jeffrey 0e1e01395b Remove munin_node_server.h 2022-02-13 22:09:05 -06:00
Jeffrey 2499269696 Remove to_nonconst_iterator.h and Refactor
This was mostly the same as the other commits, but there was actually one reference to
the functions in to_nonconst_iterator.h in http_protocol_handler.inl. All the other
files modified in this commit were to remove extraneous includes of to_nonconst_iterator.h.

In http_protocol_handler.inl, to_nonsonst_iterator() (misspelled?) was used to convert a
string::const_iterator to a nonconst iterator in order to use it in a call to
string::erase(). However, this in not necessary as of C++11, so I removed the conversion
altogether.
2022-02-11 15:02:45 -06:00
Jeffrey dbf8e4a2d6 Remove soci_helper.h 2022-02-10 23:34:03 -06:00
Jeffrey 8cec449519 Remove serialize_base.h 2022-02-10 19:42:19 -06:00
Jeffrey 1018698830 Remove static_initializer.h 2022-02-10 19:31:22 -06:00
Jeffrey d009741cd4 Remove service_impl_base.h 2022-02-10 19:27:59 -06:00
Jeffrey f4721c0ca5 Removed reg_utils.h 2022-02-10 19:22:27 -06:00
Jeffrey e8e46bb210 Remove global_stream_operators.h
I think my commit message goes without saying
2022-02-10 18:54:39 -06:00
Jeffrey 10c3a3af95 Removed unused functions from file_io_utils
I removed three unused functions: `get_file_time`, `set_file_time`, and `append_string_to_file`.
I have recompiled on Ubuntu 20 with no issues.
2022-02-10 18:41:29 -06:00
Jeffrey 86d554cbae Remove ado_db_helper.h
Self-explanatory
2022-02-10 18:21:46 -06:00
Jeffrey c19f141942 Removed unused SMTP, tiny_ini, and SHA-1 files from EPEE
Combined commit of #8172, #8173, #8174
2022-02-10 11:56:47 -06:00
luigi1111 9aab19f349
Merge pull request #8135
2d0a518 Update Copyright year in README.md (IceCruelStuff)
2022-01-24 15:18:13 -05:00
luigi1111 357dbd2032
Merge pull request #8130
1051276 Update net_node.inl (Gingeropolous)
2022-01-24 15:16:52 -05:00
luigi1111 459a48352d
Merge pull request #8126
e73e1e7 Use CMD in Dockerfile (Kevin Thomas)
2022-01-24 15:16:27 -05:00
luigi1111 d94715fd71
Merge pull request #8123
4446cc8 wallet inits cache if file and blob missing (woodser)
2022-01-24 15:15:11 -05:00
luigi1111 c1e7e97cea
Merge pull request #8117
505b382 cmake: enable build on riscv{64, 32} (Xeonacid)
2022-01-24 15:14:38 -05:00
luigi1111 cb24b85bde
Merge pull request #8116
6366187 Fixed warnings for Clang (used as CMAKE_CXX compiler) (SerHack)
2022-01-24 15:14:08 -05:00
luigi1111 0f9fae5a96
Merge pull request #8112
fef0280 Fix docker instructions to account for non-root user (Kevin Thomas)
2022-01-24 15:13:37 -05:00
luigi1111 166c278057
Merge pull request #8101
6a46f8c Add copy commands for compiled binaries (Seth For Privacy)
52612e7 Add archive details to post-build section (Seth For Privacy)
03a256e Add git clone and cd commands for initial prep (Seth For Privacy)
cd76011 Add note on adding SSH keys for Github (Seth For Privacy)
9d02531 Update DOCKRUN.md (Seth For Privacy)
eeb0be4 Bump versions in DOCKRUN.md and add log commands (Seth For Privacy)
2022-01-24 15:11:51 -05:00
luigi1111 5283cf51ef
Merge pull request #8044
a02b342 Avoid unnecessary 'Invalid hashing blob' error message (rbrunner7)
2022-01-24 15:10:55 -05:00
luigi1111 e9d90de9e1
Merge pull request #8041
361f621 Fix typos (Dimitris Apostolou)
2022-01-24 15:09:30 -05:00
IceCruelStuff 2d0a5189d2
Update Copyright year in README.md 2022-01-07 20:27:24 -08:00
Gingeropolous 1051276425
Update net_node.inl 2022-01-04 16:31:59 -05:00
Kevin Thomas e73e1e7e6f Use CMD in Dockerfile
According to Dockerfile best practices
(https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#entrypoint)
the best use for ENTRYPOINT is to set the image’s main command and then
use CMD as the default flags. This makes it easier to change the flags
passed to monerod when running the Docker image.
2021-12-31 01:05:22 -08:00
woodser 4446cc88c3 wallet inits cache if file and blob missing 2021-12-24 09:22:57 -05:00
Xeonacid 505b38260c cmake: enable build on riscv{64, 32}
tested on Arch Linux RISC-V.
2021-12-22 15:43:44 +08:00
SerHack 6366187cf3 Fixed warnings for Clang (used as CMAKE_CXX compiler) 2021-12-19 03:16:53 -08:00
luigi1111 319b831e65
Merge pull request #8103
e9156d7 functional_tests: update uri test with external pid (selsta)
2021-12-15 20:24:37 -06:00