Jeffrey
441c860738
Merge functionality of misc_os_dependent into time_helper.h
...
Actions:
1. Remove unused functions from misc_os_dependent.h
2. Move three remaining functions, get_gmt_time, get_ns_count, and get_tick_count into time_helper.h
3. Remove unused functions from time_helper.h
4. Refactor get_ns_count and get_internet_time_str and get_time_interval_string
5. Remove/add includes as needed
Relevant commits on the old PR:
a9fbe52b02
9a59b131c4
7fa9e2817d
2 years ago
Jeffrey
12b1b74d32
Trimming Fat
...
Remove unused include statements or unused definitions.
2 years ago
Jeffrey
690ce560b0
Boring Old Deletes
...
Here lies dozens of unused files. This commit is ONLY file deletions except
for the removing of a couple of #includes and removing filenames from CmakeLists
where appropriate.
2 years ago
moneromooo-monero
9f786f0550
epee: allow copying a rolling_median_t object
2 years ago
Jeffrey
d1cb9c393e
Remove serialization/enableable
...
Currently working on an EPEE [ser/de]ialization library for Rust and at first glance, EPEE seemed to have support for optional wrappers. However, after looking into it, this feature appears to be half-baked and unused. Furthermore, adding support for optional values would be better suited to implement at the storage level, in my opinion. That would make parsing DOMs easier and less error-prone. If anyone is currently using this code, please comment. Thanks!
At the time of writing, this PR has no merge conflicts with #8211
2 years ago
luigi1111
c11385591e
Merge pull request #8228
...
1ce9e9c
Remove dead code from parserse_base_utils and fix unit tests (Jeffrey)
2 years ago
luigi1111
bb093ec9a8
Merge pull request #8223
...
17772ef
Eliminate dependence on boost::interprocess #8223 (Jeffrey)
2 years ago
luigi1111
0eb1b570b6
Merge pull request #8197
...
da9aa1f
Copyright: Update to 2022 (mj-xmr)
2 years ago
Jeffrey
1ce9e9cda4
Remove dead code from parserse_base_utils and fix unit tests
...
* Remove `match_string()`, `match_number()`, and `match_word()`
* Remove `match_word_with_extrasymb()` and `match_word_til_equal_mark()`
* Adapt unit test for `match_number()` to `match_number2()`
* Adapt unit test for `match_string()` to `match_string2()`
Note: the unit tests were testing for the old version of the functions, and
the interfaces for these functions changed slightly, so I had to also edit
the tests.
As of writing, this PR has no merge conflicts with #8211
Additional changes during review:
* Explicitly set up is_[float/signed]_val to be changed before each call
* Structify the tests and fix uninitialized variables
2 years ago
Jeffrey
17772ef53e
Eliminate dependence on boost::interprocess #8223
...
In this repo, `boost::interprocess` was being used soley to make `uint32_t` operations atomic. So I replaced each instance of
`boost::interprocess::ipcdetail::atomic(...)32` with `std::atomic` methods. I replaced member declarations as applicable. For example,
when I needed to change a `volatile uint32_t` into a `std::atomic<uint32_t>`. Sometimes, a member was being used a boolean flag, so
I replaced it with `std::atomic<bool>`.
You may notice that I didn't touch `levin_client_async.h`. That is because this file is entirely unused and will be deleted in PR monero-project#8211.
Additional changes from review:
* Make some local variables const
* Change postfix operators to prefix operators where value was not need
2 years ago
Jeffrey
002bf9c4fd
Fix typo: SERIALIZE_TYPE_DUOBLE
2 years ago
mj-xmr
da9aa1f7f8
Copyright: Update to 2022
2 years ago
SChernykh
f68f92776b
Undefined behaviour fixes
...
Fixes issues reported in #8120
2 years ago
luigi1111
14e94c6918
Merge pull request #8016
...
b0ec9f8
epee: avoid ADL selecting C++14 std::quoted (selsta)
3 years ago
selsta
e106bdc1fc
epee: add missing header
3 years ago
selsta
b0ec9f85a1
epee: avoid ADL selecting C++14 std::quoted
3 years ago
selsta
4afd9a7a9e
cmake: set required C/C++ standard to 11
...
Co-authored-by: Jason Rhinelander <jason@imaginary.ca>
3 years ago
luigi1111
c278c97f1f
Merge pull request #7884
...
ec6b4cf
support cors wildcard (woodser)
3 years ago
luigi1111
aa8320671c
Merge pull request #7858
...
426dbf4
fix median overflow bug (koe)
3 years ago
luigi1111
3673a679e4
Merge pull request #7850
...
0ac9a04
epee: tidying post-incrementation -> pre-incrementation (mj-xmr)
3 years ago
woodser
ec6b4cf9e1
support cors wildcard
3 years ago
selsta
301355f88d
epee: link with Boost_SYSTEM_LIBRARY
3 years ago
koe
426dbf434b
fix median overflow bug
3 years ago
luigi1111
0b4e922159
Merge pull request #7812
...
bf96055
Make SSL key/cert storage backward-compatible (Nathan Dorfman)
3 years ago
mj-xmr
0ac9a04b4c
epee: tidying post-incrementation -> pre-incrementation
3 years ago
moneromooo-monero
7354ffb8a7
p2p: remove blocked addresses/hosts from peerlist
3 years ago
Nathan Dorfman
bf96055211
Make SSL key/cert storage backward-compatible
...
This is required to build on OpenBSD (which uses LibreSSL). It also allows building against versions of OpenSSL before 1.0.2.
3 years ago
mj-xmr
c19f0cbdea
Compil time: move epee storages/parserse_base_utils.h to parserse_base_utils.cpp
3 years ago
luigi1111
7499837a6f
Merge pull request #7661
...
08e4497
Improve cryptonote (block and tx) binary read performance (Lee Clagett)
3 years ago
luigi1111
25bbb26f63
Merge pull request #7416
...
b4fe7c2
epee linkage dynamic; move monero_add_library to main CMakeLists.txt (mj-xmr)
3 years ago
luigi1111
1c8e598172
Merge pull request #7735
...
44cc6d6
Fix boost 1.76.0 compatibility (loqs)
3 years ago
luigi1111
d51e0c38f9
Merge pull request #7712
...
d772f13
epee: include public openssl header in cmake (selsta)
3 years ago
loqs
44cc6d6762
Fix boost 1.76.0 compatibility
...
Add missing header boost/mpl/contains.hpp
monero-project/monero/issues/7728
3 years ago
luigi1111
b7ee587ddb
Merge pull request #7691
...
cbd54ea
cmake: set 3.5 as minimum version (selsta)
3 years ago
luigi1111
c1a1f2a6ea
Merge pull request #7688
...
451b5a5
clang: fix -Wrange-loop-analysis warnings (selsta)
3 years ago
luigi1111
ac87ac19b2
Merge pull request #7665
...
15e6275
CMake: new macro - finding all headers (extract from epee) (mj-xmr)
3 years ago
selsta
d772f1378b
epee: include public openssl header in cmake
3 years ago
selsta
cbd54ea524
cmake: set 3.5 as minimum version
3 years ago
selsta
451b5a510e
clang: fix -Wrange-loop-analysis warnings
3 years ago
mj-xmr
b4fe7c2401
epee linkage dynamic; move monero_add_library to main CMakeLists.txt
3 years ago
luigi1111
0a1ddc2eff
Merge pull request #7669
...
679d055
Remove payload copy in all outgoing p2p messages (Lee Clagett)
3 years ago
mj-xmr
dc81e23e60
Split epee/string_tools.h and encapsulate boost::lexical_cast
3 years ago
luigi1111
e45619e61e
Revert "Merge pull request #7136"
...
This reverts commit 63c7ca07fb
, reversing
changes made to 2218e23e84
.
3 years ago
luigi1111
63c7ca07fb
Merge pull request #7136
...
23aae55
Remove payload copy in all outgoing p2p messages (Lee Clagett)
3 years ago
luigi1111
2218e23e84
Merge pull request #7002
...
673c6d2
Reduce compilation time of epee/portable_storage_template_helper.h (mj-xmr)
3 years ago
mj-xmr
15e627569b
CMake: new macro - finding all headers (extract from epee)
3 years ago
luigi1111
08f6d0e185
Merge pull request #7439
...
0f2b5af
Reduced executable size; reduced call sequence to 'allowed' log function (Lee Clagett)
3 years ago
luigi1111
a2b046dafc
Merge pull request #7460
...
2935a0c
async_protocol_handler_config: fix deadlock (anon)
c877705
async_protocol_handler_config: add deadlock demo (anon)
3 years ago
mj-xmr
673c6d2d11
Reduce compilation time of epee/portable_storage_template_helper.h
3 years ago
luigi1111
f2f33f6230
Merge pull request #7402
...
240d382
Epee: add headers to project files (via glob), to be able to search for them easily. (mj-xmr)
3 years ago
luigi1111
4a7b729025
Merge pull request #7394
...
b900fa0
Fix compiler warning for in keyvalue_serialization.h (mj-xmr)
3 years ago
luigi1111
602926fe9d
Merge pull request #7366
...
9867a91
Store RPC SSL key/cert for consistent authentication between runs (Lee Clagett)
3 years ago
luigi1111
6e1b3d1e0b
Merge pull request #7274
...
daf023d
epee: don't log raw packet data (moneromooo-monero)
3 years ago
luigi1111
7bf89dcbd3
Merge pull request #7005
...
249eae5
Allow byte_stream->byte_slice conversion to shrink unused buffer space (Lee Clagett)
3 years ago
anon
2935a0c479
async_protocol_handler_config: fix deadlock
3 years ago
luigi1111
0b6bfb1fd8
Merge pull request #7399
...
556af11
epee: return HTTP error 400 (Bad request) on deserialization error (moneromooo-monero)
3 years ago
mj-xmr
240d382db4
Epee: add headers to project files (via glob), to be able to search for them easily.
...
Use case: IDEs
3 years ago
moneromooo-monero
556af11d3b
epee: return HTTP error 400 (Bad request) on deserialization error
...
It's better than 404 (Not found)
3 years ago
mj-xmr
b900fa03c1
Fix compiler warning for in keyvalue_serialization.h
3 years ago
anon
80125a2f77
async_protocol_handler_config: remove connection correctly
3 years ago
luigi1111
33004ded62
Merge pull request #7343
...
545b982
Remove unnecessary atomic operations in levin code (Lee Clagett)
3 years ago
luigi1111
9f6dcbd568
Merge pull request #7308
...
df2f00f
boosted_tcp_server: fix connection lifetime (anon)
3833624
boosted_tcp_server: add segfault demo (anon)
3 years ago
Lee Clagett
9867a913dc
Store RPC SSL key/cert for consistent authentication between runs
3 years ago
mj-xmr
dc48de74e8
Reduce compilation time of epee/portable_storage.h
3 years ago
Lee Clagett
08e4497c6e
Improve cryptonote (block and tx) binary read performance
3 years ago
anon
df2f00f44d
boosted_tcp_server: fix connection lifetime
4 years ago
Lee Clagett
545b9825d6
Remove unnecessary atomic operations in levin code
4 years ago
Lee Clagett
679d05567d
Remove payload copy in all outgoing p2p messages
4 years ago
Lee Clagett
0f2b5af0dd
Reduced executable size; reduced call sequence to "allowed" log function
4 years ago
Lee Clagett
23aae5571b
Remove payload copy in all outgoing p2p messages
4 years ago
luigi1111
218981eba1
Merge pull request #7137
...
f2ad539
readline_buffer: Avoid consecutive duplicates in the history (codesoap)
4 years ago
moneromooo-monero
372754a66e
storages: overridable limits for loading portable_storage from binary
4 years ago
luigi1111
e144dd5b15
Merge pull request #7281
...
b9092dd
epee: also limit number of strings in portable_storage (moneromooo-monero)
4 years ago
moneromooo-monero
b9092ddb5c
epee: also limit number of strings in portable_storage
...
They require at least 24 bytes
4 years ago
Alexander Blair
7264d64856
Merge pull request #7263
...
b652d598d
add a max levin packet size by command type (moneromooo-monero)
4 years ago
moneromooo-monero
daf023de6e
epee: don't log raw packet data
4 years ago
moneromooo-monero
b652d598d1
add a max levin packet size by command type
4 years ago
moneromooo-monero
5cd6fda1ee
portable_storage: better sanity checking
4 years ago
Alexander Blair
16c780d568
Merge pull request #7250
...
61b6e4cc6
Add aggressive restrictions to pre-handshake p2p buffer limit (Lee Clagett)
4 years ago
Alexander Blair
175aa2497a
Merge pull request #7243
...
8e2caf3fb
portable_storage: check object limit where appropriate (moneromooo)
4 years ago
Alexander Blair
5917aec4a1
Merge pull request #7220
...
20bdbd7aa
portable_storage: forbid unnamed sections (xiphon)
4 years ago
moneromooo
8e2caf3fb4
portable_storage: check object limit where appropriate
...
also fix pedantic off by one in check
4 years ago
Alexander Blair
88b7bc394e
Merge pull request #7218
...
353f93ee1
portable_storage: remove array element limit (moneromooo-monero)
4 years ago
Alexander Blair
d4636a9258
Merge pull request #7207
...
f7ab8bc6d
ssl: buffered handshake detection (anon)
4 years ago
xiphon
20bdbd7aab
portable_storage: forbid unnamed sections
4 years ago
moneromooo-monero
353f93ee1a
portable_storage: remove array element limit
...
some people don't want it
4 years ago
anon
f7ab8bc6d4
ssl: buffered handshake detection
4 years ago
moneromooo-monero
bc97eb8a33
portable_storage: remove overly aggressive cutoff
4 years ago
Alexander Blair
7438617bbf
Merge pull request #7192
...
95575cda6
epee: fix some issues using connections after shutdown (moneromooo-monero)
4 years ago
Alexander Blair
bc9fce0d32
Merge pull request #7190
...
7f407c027
portable_storage: add some sanity checks on data size (moneromooo-monero)
4 years ago
Alexander Blair
b9e444da5e
Merge pull request #7098
...
c0c75ac19
Fixed issues found by static analysis (SChernykh)
4 years ago
moneromooo-monero
95575cda6e
epee: fix some issues using connections after shutdown
4 years ago
moneromooo-monero
7f407c0274
portable_storage: add some sanity checks on data size
...
especially when allocated size is >> serialized data size
4 years ago
Lee Clagett
187b4d7521
Restrict duplicate keys in epee binary format
4 years ago
Lee Clagett
61b6e4cc67
Add aggressive restrictions to pre-handshake p2p buffer limit
4 years ago
Lee Clagett
4978f69d7a
Fix byte_stream::put_n
4 years ago
codesoap
f2ad539f5f
readline_buffer: Avoid consecutive duplicates in the history
4 years ago
Alexander Blair
1e9483a2d5
Merge pull request #7009
...
7414e2bac
Change epee binary output from std::stringstream to byte_stream (Lee Clagett)
4 years ago
Alexander Blair
6bddd54f9d
Merge pull request #7003
...
08eb0949f
Change to more efficient allocation strategy in byte_stream (Lee Clagett)
4 years ago
SChernykh
c0c75ac19d
Fixed issues found by static analysis
...
- rolling_median: tried to free uninitialized pointer in a constructor
- net_node.inl: erase-remove idiom was used incorrectly. remove_if doesn't actually remove elements, see http://cpp.sh/6fcjv
- bulletproofs.cc: call to sizeof() instead of vector.size(), luckily it only impacts performance and not code logic there
4 years ago