Commit graph

245 commits

Author SHA1 Message Date
Nathaniel
8b50451373
Add support for auxiliary serialization data
To supplement the new custom serialization feature, we also would like
the ability to use standard reflection-based serialization, but also to
add some extra data in on the side. This is now possible as auxiliary
serialized data. A class can define auxiliary data serializers which will
add additional data to the serialized record generated by the usual
reflection-based serializers.
2022-03-16 20:41:15 -05:00
Nathaniel
907dc57fb6
Enable classes to customize their serialization
Add support for classes to define members to customize their
serialization from the default from reflection.
2022-03-16 15:47:17 -05:00
abitmore
4ffc77f9d6 Update boost version checks in time_test to macros 2020-07-02 09:18:11 -04:00
abitmore
82e3944ff2 Update time_test to get around a boost 1.60 issue 2020-07-02 08:47:45 -04:00
Abit
a876678008
Merge pull request #204 from bitshares/jmj_1256
Test to demonstrate fc::mutex and fc::thread
2020-06-22 17:07:13 +02:00
abitmore
ffbda4e161 Add test cases about on_http for websocket servers 2020-05-02 05:46:21 -04:00
abitmore
c58ae55f44 Update test cases about RPC logging level 2020-05-02 04:40:28 -04:00
abitmore
8ffe08f891 Merge 'master' branch 2020-05-01 18:01:55 -04:00
abitmore
9c506d050b Fix test cases 2020-05-01 17:46:19 -04:00
Abit
ed22e1e6d4
Merge pull request #200 from bitshares/merge-core-4.0.x-to-master
Merge changes done for bitshares-core 4.0 to master
2020-04-29 15:55:37 +02:00
Abit
377f843478
Fix static_variant_depth_test 2020-04-19 18:03:37 +02:00
Abit
c72d5d31cc
Merge branch 'master' into for-core-4.0.x 2020-04-19 10:55:50 +02:00
abitmore
bc60ea3fa9 Update run-parallel-tests.sh to support arguments 2020-04-18 13:15:53 -04:00
John Jones
9505342dbf improve hash160 performance 2020-04-14 11:25:00 -05:00
John Jones
dbf4b99e3e Merge remote-tracking branch 'upstream/for-core-4.0.x' into jmj_bsip64 2020-04-14 10:37:40 -05:00
Peter Conrad
005aa69c0a Attempt to fix tests 2019-11-18 17:19:19 +01: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
253c1d56b9 Added test for zero-initialized arrays 2019-09-20 09:27:57 +02:00
Peter Conrad
8c9f7151e1 Moved stuff into fc::test namespace 2019-09-16 12:30:32 +02:00
Nathan Hourt
292584ca59 Add static_variant::operator==
For real this time :)
2019-08-31 12:48:52 -05: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
45cb433d47 Fixes from code review 2019-08-30 11:52:05 -05:00
Nathan Hourt
9f7f1b4790 Replace improper static_variant operator overloads with comparators 2019-08-28 15:51:14 -05:00
abitmore
7b6c359a32 Update test case for optional API arguments
Reproduces https://github.com/bitshares/bitshares-core/issues/1898
2019-08-13 13:09:31 -04:00
Peter Conrad
cabab23e2c Replaced more array::begin() with data() 2019-08-02 17:31:07 +02:00
John Jones
5681dd1c0e Add hash160 test 2019-07-24 10:15:10 -05:00
Alfredo
e90742995b fix tests 2019-06-21 15:46:29 -03:00
Alfredo Garcia
550e092267
Merge branch 'master' into jmj_844b 2019-06-21 14:53:36 -03:00
Peter Conrad
632a90709e Replace fc::array with std::array 2019-06-06 14:41:47 +02:00
Peter Conrad
022c40dde2 Removed unused real128 2019-06-06 14:39:14 +02:00
Peter Conrad
7cf371736b Intermediate 2019-06-06 14:39:14 +02:00
John Jones
0df5f7e905 Use an api call instead of constructor 2019-05-24 11:15:02 -05:00
Peter Conrad
aa8870e793 Fixed JSONRPC error handling 2019-05-24 18:11:19 +02:00
John Jones
4906d8b2da Allow configurable proxy header for logging 2019-05-24 10:41:21 -05:00
John Jones
d821e865ed Add configurable header 2019-05-24 08:53:45 -05:00
John Jones
8b4ef5aa02 Fix bad_alloc 2019-05-23 16:05:05 -05:00
John Jones
82935acd86 Add host information to log messages 2019-05-23 09:56:11 -05:00
Nathan Hourt
6b7874e49a Rebase fixes 2019-05-13 17:26:32 -05:00
Nathan Hourt
afb96a0e7e Ref #126: Cleanup/revert unwanted changes 2019-05-13 17:25:49 -05:00
Nathan Hourt
0a50ac23e0 Remove websocket_server::synchronous_close
It doesn't work as expected, so get rid of it.
2019-05-13 17:25:08 -05:00
Nathan Hourt
b8a03d3a51 Fix failing test 2019-05-13 17:25:08 -05:00
Nathan Hourt
bb01f3e925 Use random port for API tests
Add missing functionality to websocket_client and websocket_server to
make API tests more reliable and to make it possible to use a random
port for the tests.
2019-05-13 17:25:08 -05:00
Nathan Hourt
94a18cfccc Roll API tests into all_tests 2019-05-13 17:24:11 -05:00
Nathan Hourt
a89e30187f API Tests
General cleanup of a lot of nonsense
Add tests of optional parameters
2019-05-13 17:24:10 -05:00
Abit
67e5a06035
Merge pull request #119 from bitshares/shared-ws-client-ptr
Use shared_ptr to WS connection in API connection
2019-05-10 15:24:15 +02:00
Peter Conrad
9a0d92820d Fixes for endianness 2019-04-23 16:45:44 +02:00
Peter Conrad
1daac3b4b5 Removed unused endian-dependent code 2019-04-23 16:44:44 +02:00
Peter Conrad
7f93f265c7
Merge pull request #120 from pmconrad/1584_simplification
1584 simplifications
2019-04-23 15:54:09 +02:00
John M. Jones
5f8f799185
Merge pull request #111 from bitshares/jmj_1593_variant
Equality check does not work on Windows
2019-04-10 05:33:33 -05:00
Peter Conrad
637226a2e4 Remove unused blowfish 2019-04-04 17:59:51 +02:00