Commit graph

1828 commits

Author SHA1 Message Date
Nathan Hourt
6e22341d9f
Fix warning in zeroed_array.hpp
Only one template declaration is needed here, I think. Clang gives many, many warnings over it.
2019-11-01 15:14:46 -05:00
Peter Conrad
dd257e5c0b
Merge pull request #171 from pmconrad/obsolete_boost
Removed checks for obsolete boost version numbers
2019-09-25 07:33:19 +02:00
Peter Conrad
4bdab0bb0a Removed checks for obsolete boost version numbers 2019-09-24 17:24:38 +02:00
Abit
2f776301cd
Merge pull request #169 from bitshares/for-core-3-3
Merge 3.3.x branch to master branch
2019-09-23 17:02:18 +02:00
Peter Conrad
9593e5d3bb
Merge pull request #170 from pmconrad/node_crashes
Make for-core-3-3 branch mergable with master
2019-09-23 07:59:51 +02:00
Peter Conrad
ec77b4943c Added std::tuple_size for master compatibility 2019-09-22 10:03:29 +02:00
Peter Conrad
6d8d0307a2
Merge pull request #165 from pmconrad/node_crashes
Changes wrt recent crashes of nodes
2019-09-21 09:17:46 +02:00
Peter Conrad
ed479c8c3e Reformatting 2019-09-20 09:27:57 +02:00
Peter Conrad
afc0e00700 Added zero_initialized_array template to restore functionality of fc::array<unsigned char,N> 2019-09-20 09:27:57 +02:00
Peter Conrad
253c1d56b9 Added test for zero-initialized arrays 2019-09-20 09:27:57 +02:00
Peter Conrad
5c0b9ed4e3
Merge pull request #164 from pmconrad/1895_namespaces
Move stuff into namespaces
2019-09-19 16:15:43 +02:00
Peter Conrad
b986bab004
Merge pull request #167 from pmconrad/exception_format_fix
Exception format fix
2019-09-19 08:20:27 +02:00
Peter Conrad
2cc32d79ba Fixed assert 2019-09-18 15:12:27 +02:00
Peter Conrad
9077892d87 Log stacktrace instead of writing to stderr 2019-09-18 15:12:27 +02:00
Peter Conrad
4ce3775630 Clean up before returning 2019-09-18 15:12:27 +02:00
Peter Conrad
eb42ebb528 Add log message 2019-09-18 15:12:27 +02:00
Peter Conrad
ef52b39036 Preserve crash in debug mode 2019-09-18 15:12:27 +02:00
Peter Conrad
201b4b33f0 Print stacktrace when yielding within an exception handler 2019-09-18 15:12:27 +02:00
Peter Conrad
cd69d13348 Replaced spin_yield_lock with atomics 2019-09-18 15:12:27 +02:00
Peter Conrad
20c1688223 Removed superfluous return 2019-09-18 13:07:54 +02:00
Peter Conrad
164f1f68e6 Whitespace fixes 2019-09-18 13:07:54 +02:00
Peter Conrad
5b8a7c281c Partial revert "Changes to avoid conflict in following cherry-pick"
This reverts commit d729816b06.
2019-09-18 13:07:47 +02:00
Spartucus
3583ee6138 Fix non-void function return value
Since last catch insert exception string to `ss`, it should returns.
2019-09-18 12:59:37 +02:00
Kevin Heifner
2eb047a6f4 Add exception handling to to_string and to_detail_string 2019-09-18 12:59:37 +02:00
Peter Conrad
d729816b06 Changes to avoid conflict in following cherry-pick 2019-09-18 12:59:37 +02:00
Peter Conrad
bae416a446
Merge pull request #162 from pmconrad/1982_rotate_logs
Check + rotate logs while logging not by scheduled task
2019-09-17 17:37:04 +02:00
Peter Conrad
f052ac98fa
Merge pull request #166 from pmconrad/copy_safety
Copy safety
2019-09-17 15:59:01 +02:00
Peter Conrad
e168b6400b Avoid time calculation when not rotating 2019-09-17 13:46:02 +02:00
Peter Conrad
2b3611fa95 Delete copy constructor + copy assignment in tcp_socket 2019-09-16 14:44:55 +02:00
Peter Conrad
7b98c69c3b Delete copy constructor + copy assignment in openssl type wrappers 2019-09-16 14:38:45 +02:00
Peter Conrad
8c9f7151e1 Moved stuff into fc::test namespace 2019-09-16 12:30:32 +02:00
Peter Conrad
f4866b777e Move helper classes into fc::detail 2019-09-16 12:00:38 +02:00
Peter Conrad
f6fd6a7cf7 Avoid re-computing seconds 2019-09-15 14:18:57 +02:00
Peter Conrad
5cd9f7d631 Move log file deletion into separate task 2019-09-15 14:09:44 +02:00
Peter Conrad
2e50624b28 Check + rotate logs while logging not by scheduled task 2019-09-12 16:01:09 +02:00
Peter Conrad
869c75d070
Merge pull request #159 from pmconrad/314_windows_default_cas
Fix core #314 - Use windows default CAs for tls client connections
2019-09-06 08:09:13 +02:00
Nathan Hourt
9db1417b25
Merge pull request #160 from nathanhourt/master
Add FC_REFLECT_DERIVED_NO_TYPENAME
2019-09-02 11:52:18 -05:00
Nathan Hourt
dadfe189d4 Add FC_REFLECT_DERIVED_NO_TYPENAME
This is moved to FC from graphene/protocol/types.hpp
2019-09-02 10:02:51 -05:00
Nathan Hourt
7e69567dd0
Merge pull request #158 from nathanhourt/master
Fix build on G++ 7
2019-09-02 09:53:20 -05:00
Nathan Hourt
1699b0ac36 Fix build on updated G++ 2019-09-01 12:53:01 -05:00
Nathan Hourt
4b7bcb951d
Merge pull request #156 from nathanhourt/reflection-updates
Improve reflection system and static_variant
2019-09-01 10:33:40 -05:00
Peter Conrad
77a82903fc Fix core #314 - Use windows default CAs for tls client connections 2019-09-01 15:17:59 +02:00
Nathan Hourt
292584ca59 Add static_variant::operator==
For real this time :)
2019-08-31 12:48:52 -05:00
Nathan Hourt
94cb1858b8 Fix constexprs, unused code 2019-08-31 12:48:52 -05:00
Abit
78aaaac8e1
Merge pull request #157 from bitshares/for-core-3-3
Merge for-core-3-3 branch into master
2019-08-30 22:27:42 +02:00
Nathan Hourt
c69ea32613 Improve reflection system and static_variant
Previously, fc reflection generated visitor infrastructure capable of
visiting each field of a struct; however, this is only useful for run-
time operations on structures. No compile-time information was preserved
about the fields of a struct, making compile-time introspection of types
impossible.

Now FC reflection generates rich compile-time information about the
members of structs, including types, names, and structure, allowing
code to be written to explore types in detail at compile-time and fetch
arbitrary fields at runtime without needing to iterate over the unwanted
fields.

To make this a reality, a new `typelist` type was added to store this
compile-time information. This type is also useful within the context of
`static_variant`, as SV previously used implementation detail types in a
private namespace to provide this functionality. Now `static_variant`
uses the reusable functionality of `typelist` to operate, dramatically
reducing the amount of code dedicated to `static_variant` and also
making `static_variant` types more flexible to work with since their
infrastructure is now based on the `typelist` public interface.
2019-08-30 14:21:36 -05:00
Nathan Hourt
5278a125df
Merge pull request #154 from nathanhourt/sv_overloads
Replace improper static_variant operator overloads with comparators
2019-08-30 14:19:06 -05:00
Peter Conrad
7a4758671f
Merge pull request #152 from pmconrad/1952_fix_assert
Possible fix for core #1952
2019-08-30 20:44:18 +02:00
Nathan Hourt
45cb433d47 Fixes from code review 2019-08-30 11:52:05 -05:00
Peter Conrad
9e81e1d5b6
Merge pull request #153 from crypto-ape/fix_for_msvc_broken_static_evaluation_in_array_declaration
Fix Compilation with MSVC
2019-08-30 18:04:17 +02:00