Updates from BitShares FC #22

Closed
nathanielhourt wants to merge 693 commits from dapp-support into latest-fc

693 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
ac40f449f8
Cleanup and organization
Delete a useless and unused overload of raw::unpack

Also, make the new custom serialization bit work for unreflected types
(they still need typename reflection)
2022-03-16 18:59:36 -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
Nathaniel
23fd3a3a41
Adjust tcp_socket allocation 2022-03-16 13:17:32 -05:00
serkixenos
bff16bbc3d Merge branch 'latest-fc' into 'dapp-support'
# Conflicts:
#   src/crypto/openssl.cpp
2022-02-11 20:02:33 +00:00
Nathaniel
b674c0f241
Add GitLab CI config from latest-fc 2022-02-08 17:42:19 -06:00
Nathaniel Hourt
a17b231acf
Merge pull request #1 from MichelSantos/dapp-support
Merge with latest-fc
2021-11-12 17:25:30 -06:00
Michel Santos
9ed3f6e338 Merge branch latest-fc into dapp-support 2021-11-11 15:19:50 -05:00
Nathaniel Hourt
21418ec46e
Compiler incompatibility
It broke again so poke it again. Perhaps all clang versions require `template` here? I'm not sure, haven't gotten around to testing all the different compilers on it yet.
2021-09-21 12:36:07 -05:00
Nathan Hourt
0248e20531
Add option to compile dynamic libraries
Also, fix build:
Clang 10.0.1 has incompatible rules with other compilers on whether
you must/cannot put the `template` keyword in part of the reflection
code. Add a special case to make it work all around.
2021-03-13 09:14:01 -06:00
Nathan Hourt
472ff6bf40
Restore pre-merge websocketpp
This is just a rote copy of vendor/websocketpp from two commits
ago, ie 0e9259486c
2020-12-02 11:34:54 -06:00
Nathan Hourt
74b0201049
Merge remote-tracking branch 'ppu/latest-fc' into bts-updates 2020-12-02 10:24:46 -06:00
Nathan Hourt
2f89e0812a
Use signed_int to serialize enums 2020-09-17 21:11:28 -05:00
Nathan Hourt
747567fbdc
Revert "Removed signed_int"
This reverts commit 1dcacbafc9.
2020-09-17 12:26:06 -05:00
Nathan Hourt
69ebbf4ba4
Link boost.serialization 2020-08-21 14:45:42 -05:00
Nathan Hourt
5b3eb3a355
websocket_server default empty XFF header
For some reason, the websocket_server types have been altered to require
an X-Forwarded-For header (???) which seems utterly unnecessary. AFAICT,
it's safe to just leave it empty (BitShares does), so add a default arg
to make it do so by default.
2020-08-21 11:47:14 -05:00
Nathan Hourt
4accfdd951
Fix warnings 2020-08-21 11:42:57 -05:00
Eric Frias
fde60bdbbc
Add a fc_[diwe]dump() function, analogous to fc_[diew]log() 2020-08-20 11:31:00 -05:00
Nathan Hourt
7bf5340a74
Add hash_ctr_rng.hpp
This file was originally added in ff099209b6
2020-08-20 10:52:08 -05:00
Abit
9e14f238f7
Merge pull request #206 from bitshares/github-auto-build
Add macOS to Github Autobuild
2020-07-02 17:04:17 +02: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
210e816897 Fix paths for macOS unit tests in github autobuild 2020-07-02 08:35:27 -04:00
Abit
d7c710edd5
Add macOS to Github Autobuild 2020-07-02 10:38:59 +02:00
Abit
a2b380d58e
Merge pull request #205 from bitshares/fix-websocket-close
Fix race condition in websocket server close
2020-06-24 15:27:28 +02:00
Abit
8b94976b79
Fix race condition in websocket server close
Note: the close() functions are not yet used in bitshares-core, but only in tests in FC.
The new code is not fully thread-safe either.
2020-06-24 12:08:55 +02: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
Abit
12777b8358
Merge pull request #201 from bitshares/ws-refactory
Websocket code refactory and bugfix
2020-06-22 16:27:42 +02:00
abitmore
0d9b127e34 Add missing functions to websocket_tls_server
These functions were in websocket_server class but not in websocket_tls_server class:
- get_listening_port
- stop_listening
- close
2020-06-20 13:01:22 -04:00
abitmore
aa671d61b5 Add promise to wait for closure of server socket
This may fix the issues that a websocket server may crash or hang when quitting
2020-06-20 11:36:21 -04:00
abitmore
9ae294293f Update coding style 2020-06-18 18:57:33 -04:00
Abit
6606806f31
Merge pull request #202 from bitshares/fix-tuple-size-warning
Fix Clang -Wmismatched-tags warning on tuple_size
2020-06-17 14:24:28 +02:00
abitmore
88a3b58651 Fix Clang -Wmismatched-tags warning on tuple_size 2020-06-14 21:53:47 +00:00
abitmore
4dd1319a9e Refactor destructor of websocket_server_impl 2020-05-06 13:25:23 -04:00
abitmore
c55b1fde3c Add notes 2020-05-06 13:25:23 -04:00
abitmore
b77fa2a651 Capture only required vars, update coding style
and replace an assertion with a check.
2020-05-06 12:22:07 -04:00
abitmore
04f5fae050 Refactor websocket_tls_server_impl with template
Removes unnecessary differences between websocket_server_impl and websocket_tls_server_impl.
2020-05-02 13:33:39 -04:00
abitmore
33ce80cc5f Remove unused types, wrap long lines 2020-05-02 11:36:05 -04:00
abitmore
bee73bd491 Refactor websocket_client, fix duplicate code
Fix duplicate code issue in websocket_client::connect() and
websocket_client::secure_connect(), and other minor issues
2020-05-02 11:21:50 -04:00
Abit
c00824a137
Merge pull request #134 from bitshares/jmj_844b
Log host information from websocket requests
2020-05-02 14:03:15 +02:00
abitmore
ea96a5a93b Fix websocket_client::secure_connect()
Code synced from connect(), added todo to refactor later
2020-05-02 06:35:56 -04:00
abitmore
aa54e3938c Remove unused websocket_tls_client class
The funcionality is already covered by the websocket_client class
2020-05-02 06:34:18 -04: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
c8fcefb901 Update RPC logging format 2020-05-02 04:17:44 -04:00
abitmore
3e07edf995 Remove unused header inclusion 2020-05-02 04:03:01 -04:00
abitmore
c6df78b0bb Rename a function to avoid accidental misuse 2020-05-01 20:51:47 -04:00
abitmore
8ddcc87ee1 Add todo 2020-05-01 19:43:29 -04:00
abitmore
e778cf1520 Revert to simple WS connection for clients 2020-05-01 19:11:09 -04:00
abitmore
8ffe08f891 Merge 'master' branch 2020-05-01 18:01:55 -04:00
abitmore
e50067d6ed Tweak code slightly 2020-05-01 17:57:21 -04:00
abitmore
9c506d050b Fix test cases 2020-05-01 17:46:19 -04:00
abitmore
ba394e05b3 Refactor code about logging remote host info 2020-05-01 17:35:52 -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
26c5bfc498
Merge pull request #199 from bitshares/abitmore-patch-1
Fix static_variant_depth_test
2020-04-19 18:32:19 +02:00
Abit
377f843478
Fix static_variant_depth_test 2020-04-19 18:03:37 +02:00
Abit
bb4fdb124f
Merge pull request #197 from bitshares/improve-testing
Update run-parallel-tests.sh to support arguments
2020-04-19 17:42:59 +02:00
Abit
c72d5d31cc
Merge branch 'master' into for-core-4.0.x 2020-04-19 10:55:50 +02:00
abitmore
480b17fdcd Show more messages in Travis CI 2020-04-18 14:42:12 -04:00
abitmore
a7bb22a9d1 Show more msgs when testing with Github Actions 2020-04-18 13:19:17 -04:00
abitmore
bc60ea3fa9 Update run-parallel-tests.sh to support arguments 2020-04-18 13:15:53 -04:00
Abit
73a7f08f00
Merge pull request #143 from bitshares/jmj_bsip64
Add Hash160 algorithm
2020-04-15 17:39:39 +02:00
John Jones
c554c7e56d add impl to hash160 2020-04-15 09:52:18 -05:00
John Jones
5070d8d2fc define hash160 reset method 2020-04-15 09:20:39 -05: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
Abit
23f0c6ab8e
Merge pull request #196 from bitshares/fix-static-variant-warning
Fix compiler warnings about static_variant
2020-04-06 19:31:42 +02:00
abitmore
ca3e76d226 Fix compiler warnings about static_variant 2020-04-06 15:16:12 +00:00
Abit
60d7946dbe
Merge pull request #194 from bitshares/update-variant-size-t-macos-openbsd
Update to_variant(size_t) for macOS and OpenBSD
2020-03-31 17:42:23 +02:00
Abit
907a81b434
Merge pull request #195 from bitshares/replace-int-in-static-variant
Replace int with 64-bit types in static_variant
2020-03-31 17:41:23 +02:00
Abit
3a2902e3c7
Merge pull request #193 from bitshares/fix-exception-to-string
Fix potential infinity loop in `exception::to_detail_string()`
2020-03-30 15:42:58 +02:00
abitmore
98a16ce397 Replace int with 64-bit types in static_variant 2020-03-29 20:40:51 +00:00
abitmore
34ddc2b859 Update to_variant(size_t) for macOS and OpenBSD
Fix to_variant(size_t) for OpenBSD, move implementation for macOS to cpp file
2020-03-28 17:30:42 +00:00
abitmore
cc1103fe45 Fix potential infinity loop
Fix exception::to_detail_string(...)
2020-03-28 16:05:03 +00:00
Abit
4bc1405643
Merge pull request #192 from bitshares/update-bool-pack
Update bool serialization
2020-03-28 16:54:56 +01:00
abitmore
9763d1c194 Update bool serialization
Make the logic clearer, to avoid issues on some compilers.
Thanks to @pureland and team.
2020-03-26 16:27:59 +00:00
Abit
9dbf944412
Merge pull request #190 from nathanhourt/fix-2
Fix Build
2020-03-19 00:39:22 +01:00
Abit
3f9c3f6ed2
Merge pull request #189 from nathanhourt/fix-1
Fix Build
2020-03-19 00:15:28 +01:00
Nathan Hourt
2b1980a30a
Fix Build
Definitely something strange going on here, as in my environment
the value of Boost_UNIT_TEST_FRAMEWORK_LIBRARY is
"Boost::unit_test_framework"... So this is my fix, but probably
something else should be done.

Boost 1.72.0
2020-03-17 14:49:46 -05:00
Nathan Hourt
cb06e42e80
Fix Build
This is necessary to build in my environment for both clang and g++

Clang 9.0.1
G++ 9.2.1
Boost 1.72.0
2020-03-17 14:42:13 -05:00
Abit
bbf17f8a40
Merge pull request #188 from bitshares/for-core-4.0.x
Merge 4.0.x changes to master
2020-02-24 19:10:22 +01:00
Abit
5768c6d884
Merge pull request #186 from bitshares/abitmore-patch-1
Return a user-friendly message on RPC execution error
2020-02-24 18:49:17 +01:00
Abit
52f90d6392
Merge pull request #187 from bitshares/fix-github-autobuild
Fix Github auto-build
2020-02-24 18:17:22 +01:00
Abit
142b7eb4c6 Return a user-friendly msg on RPC execution error 2020-02-24 12:11:59 -05:00
Abit
f221ca3210
Fix Github auto-build
Remove the predefined boost related environment variables.
2020-02-24 18:00:03 +01:00
Abit
3970ca178b
Merge pull request #185 from bitshares/for-core-4.0.x
Merge 4.0.x changes to master
2020-02-21 12:14:35 +01:00
Peter Conrad
463380d64a
Merge pull request #184 from pmconrad/2078_file_appender
Fixed busy-wait in delete_files
2019-12-11 07:38:39 +01:00
Peter Conrad
3b7e67a3dc Fixed busy-wait in delete_files 2019-12-10 15:41:08 +01:00
Peter Conrad
c851de8caa
Merge pull request #180 from pmconrad/2054_github_autobuild
Add GitHub autobuild
2019-11-30 09:03:55 +01:00
Peter Conrad
6e5fe1f550 Fixed badge 2019-11-29 17:45:19 +01:00
Peter Conrad
1d8b63bdb1
Merge pull request #182 from bitshares/for-core-4.0.x
bring macos build fix to master
2019-11-27 08:05:49 +01:00
Alfredo Garcia
8474e84997
Merge pull request #181 from pmconrad/2070_osx_fix
Fix for OSX build
2019-11-26 10:21:25 -03:00
Peter Conrad
56d9e4d968 Fix for OSX build 2019-11-26 08:26:16 +01:00
Peter Conrad
7981ab08f5 Added badge to README 2019-11-25 15:03:46 +01:00
Peter Conrad
005aa69c0a Attempt to fix tests 2019-11-18 17:19:19 +01:00
Peter Conrad
f7f64ee1fd Add ccache 2019-11-18 17:19:19 +01:00
Peter Conrad
540a99670b Build and run in parallel 2019-11-18 17:16:59 +01:00
Peter Conrad
453345cedf Install boost 2019-11-18 17:16:22 +01:00
Peter Conrad
0e0bc44651 Added initial workflow 2019-11-18 17:16:22 +01:00
Abit
2568867f2f
Merge pull request #178 from bitshares/abitmore-patch-1
Fix potential out-of-bounds access
2019-11-08 16:23:38 +01:00
Abit
1d028b3c15
Fix potential out-of-bounds access
Thanks to Beosin(https://github.com/Lianantech)
2019-11-08 12:13:36 +01:00
Peter Conrad
ad3c881aa2
Merge pull request #13 from bitshares/oxarbitrage-patch-2
add license mit
2019-11-07 17:44:01 +01:00
Peter Conrad
61f16df040 Replaced "regime" 2019-11-07 13:18:49 +01:00
Peter Conrad
ca43b6c6df License clarification 2019-11-06 18:39:03 +01:00
Peter Conrad
0633515d7b Fixed stacktrace license 2019-11-06 18:39:03 +01:00
Peter Conrad
8c9b8a95f5 Updated license file 2019-11-06 18:39:03 +01:00
abitmore
9c3428096a Update copyright notice 2019-11-06 18:39:03 +01:00
Peter Conrad
35b3c0336c Document licensing and history 2019-11-06 18:39:03 +01:00
oxarbitrage
2ae775bdb3 add license mit 2019-11-06 18:39:03 +01:00
Peter Conrad
e5ab69acff
Merge pull request #176 from bitshares/bloom_update
Updated bloom_filter.hpp…
2019-11-06 18:38:14 +01:00
Peter Conrad
41aaa6cb1f
Merge pull request #177 from bitshares/cmake_simplification
Get rid of most extra cmake modules
2019-11-06 15:50:18 +01:00
Peter Conrad
cdbe881996 Removed unused reflection 2019-11-06 15:49:16 +01:00
Nathan Hourt
e48941b87e
Merge pull request #175 from bitshares/nathanhourt-fix-warnings
Fix warning in zeroed_array.hpp
2019-11-05 11:06:47 -06:00
Peter Conrad
7e07bc4514 Get rid of most extra cmake modules 2019-11-04 08:21:57 +01:00
Peter Conrad
1d59bb3d47 Updated bloom_filter.hpp from c89c2912c4/bloom_filter.hpp 2019-11-04 08:18:34 +01:00
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
Nathan Hourt
7954c4a9c0
Merge pull request #155 from bitshares/nathanhourt-fix-logger-warnings
Fix warnings (ref bitshares/bitshares-core#1584)
2019-08-29 13:11:25 -05:00
Nathan Hourt
cce644f686
Fix warnings
The `appender` class is intended to be inherited and used polymorphically, but does not have a virtual destructor, which causes warnings. This adds a virtual destructor to fix these warnings.
2019-08-29 11:26:34 -05:00
Nathan Hourt
9f7f1b4790 Replace improper static_variant operator overloads with comparators 2019-08-28 15:51:14 -05:00
crypto-ape
5bb0254d83 fix array declaration for broken msvc static expression evaluation 2019-08-26 14:10:43 +02:00
Peter Conrad
78ffb6dbd3 Possible fix for core #1952 2019-08-22 11:11:17 +02:00
Peter Conrad
1d2d9bf2a4
Merge pull request #151 from pmconrad/1948_fix_editline
Fix editline build on non-win32
2019-08-21 14:10:19 +02:00
Peter Conrad
ea85954e17 Adjust whitespace 2019-08-21 11:31:41 +02:00
Peter Conrad
81cc84c172 Fix core #1948 - editline does not build 2019-08-21 11:31:09 +02:00
John M. Jones
1eebd3c692
Merge pull request #149 from bitshares/jmj_cmake
Remove custom FindBoost.cmake
2019-08-20 14:52:38 -05:00
Peter Conrad
71f5348101
Merge pull request #150 from pmconrad/tcp_socket_size
Fix core #1935
2019-08-20 15:43:39 +02:00
Peter Conrad
7b37cd6eff Fix core #1935 2019-08-19 12:09:53 +02:00
Peter Conrad
699238f08f Fix build with older cmake 2019-08-17 10:23:15 +02:00
Peter Conrad
c94abf71a3
Merge pull request #148 from crypto-ape/support_building_on_open_bsd
Support Building on OpenBSD
2019-08-17 10:09:05 +02:00
John Jones
3f1096d23e Remove custom FindBoost.cmake 2019-08-16 13:24:28 -05:00
crypto-ape
727e09ebe7 support openbsd // implement tcp keep-alive polling 2019-08-15 12:22:59 +02:00
crypto-ape
4ac6887deb support openbsd // compile with libressl 2019-08-15 12:22:59 +02:00
crypto-ape
cb5f7d3cdd support openbsd // get rid of alloca 2019-08-15 12:22:59 +02:00
crypto-ape
a1c2ff9943 support openbsd // make code compliant with clang 2019-08-15 12:22:54 +02:00
John M. Jones
91d8772b7b
Merge pull request #147 from bitshares/jmj_winfix
Increase size for Boost 1.70
2019-08-13 14:02:18 -05:00
Abit
f7a1e532ca
Merge pull request #146 from bitshares/optional-api-fix
Fix optional API arguments
2019-08-13 20:12:59 +02:00
John Jones
8426b45d6c Increase size for Boost 1.70 2019-08-13 13:11:36 -05:00
Abit
17c46399ed
Merge pull request #145 from nathanhourt/bts_1898
Resolves issue https://github.com/bitshares/bitshares-core/issues/1898: Fix crash in API
2019-08-13 19:24:18 +02: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
John M. Jones
82af8b55bd
Merge pull request #140 from pmconrad/1584_more_simplification
Fix simplifications
2019-08-13 06:09:51 -05:00
Nathan Hourt
06f88979a0 Resolve #1898: Fix crash in API
We were getting the moral equivalent of a null pointer dereference by
incrementing an iterator past its past-the-end position, then
dereferencing it. This is now fixed.
2019-08-11 13:51:08 -05:00
Peter Conrad
d3c85a8415 Fix cmake warning 2019-08-11 12:15:54 +02:00
John M. Jones
24f747863d
Merge pull request #144 from bitshares/jmj_ws_boost170
Bump websocketpp for Boost 1.70
2019-08-07 13:37:22 -05:00
Peter Conrad
e45a449701 Fixed type of chr37 2019-08-05 21:28:12 +02:00
Peter Conrad
d8bec3d847 Resolved another begin/data inconsistency 2019-08-05 21:27:53 +02:00
Peter Conrad
2dc5ad8bac Try to work around __int128 problem on mac 2019-08-05 21:18:17 +02:00
John Jones
fd0b197900 bump websocketpp for Boost 1.70 2019-08-05 10:24:12 -05:00
Peter Conrad
42be69c3f7 Removed unused var 2019-08-02 17:31:28 +02:00
Peter Conrad
cabab23e2c Replaced more array::begin() with data() 2019-08-02 17:31:07 +02:00
Peter Conrad
a9a6cb94d1 Replaced more begin() with data() 2019-07-29 12:21:15 +02:00
Peter Conrad
ce79181dcf Replaced more instances of array::begin with array::data 2019-07-26 15:03:22 +02:00
Peter Conrad
6008c96c1a Allow more space for windows sockets due to fc::future changes 2019-07-26 15:02:17 +02:00
Peter Conrad
c8f3e452d3 Use array::data instead of array::begin 2019-07-26 15:02:17 +02:00
Peter Conrad
e160afce16 Attempt to fix uint128 for mac 2019-07-26 15:02:17 +02:00
Peter Conrad
451ed46ecc Replace one more "new promise" with "promise::create" 2019-07-26 15:02:17 +02:00
Abit
966e9ea64e
Merge pull request #121 from crypto-ape/master_mingw
CMake cleanup & MinGW support
2019-07-25 09:44:37 +02:00
John Jones
5681dd1c0e Add hash160 test 2019-07-24 10:15:10 -05:00
John Jones
55e2abe7d5 Fix spacing 2019-07-23 17:32:29 -05:00
John Jones
ea9128257c Remove unnecessary predeclarations 2019-07-23 17:25:02 -05:00
John Jones
94f77ffc85 Add hash160 md algo 2019-07-23 17:14:01 -05:00
Alfredo Garcia
a461d2f5ae
Merge pull request #141 from bitshares/abitmore-patch-1
Update a comment to avoid confusing doxygen
2019-07-21 10:41:23 -03:00
John M. Jones
cd49944222
Merge pull request #142 from bitshares/fix-api-close
Correctly close websocket API connection
2019-07-19 16:33:15 -05:00
abitmore
2c5c30848a Correctly close websocket API connection 2019-07-19 16:00:18 -04:00
Abit
e4b35e4a42
Update a comment to avoid confusing doxygen 2019-07-18 23:15:22 +02:00
crypto-ape
b2c2a47521 CheckLibcxxAtomic after Boost 2019-07-08 13:42:51 +02:00
crypto-ape
dfc0a357d3 Updated Boost Lockfree compilation test 2019-07-08 11:46:26 +02:00
crypto-ape
ab617200a5 Removed unneeded definitions 2019-07-08 11:46:26 +02:00
crypto-ape
86b025007a Bumped Boost version 2019-07-08 11:46:26 +02:00
crypto-ape
241f1f2f0d Legacy/CMakeLists.txt EOF newline 2019-07-08 11:46:26 +02:00
crypto-ape
a2303d3528 Updated CMake for MinGW 2019-07-08 11:46:26 +02:00
crypto-ape
b8a87bde76 BoostConfig EOF newline 2019-07-08 11:46:26 +02:00
crypto-ape
c453db886b CMake version bump 2019-07-08 11:46:26 +02:00
crypto-ape
8d33bb844d Fixed pthread dependency 2019-07-08 11:46:26 +02:00
crypto-ape
c9b3d57b0e Updated Boost searching 2019-07-08 11:46:19 +02:00
crypto-ape
e0dd942875 Update build system for MinGW 2019-07-08 10:43:02 +02:00
Alfredo
e336649b8f lambda capture only whats required 2019-06-21 16:03:00 -03:00
Alfredo
7ec8ead573 chanmge comment from hostname to IP 2019-06-21 15:48:48 -03:00
Alfredo
e90742995b fix tests 2019-06-21 15:46:29 -03:00
Alfredo Garcia
5d8e9e110e
fix remove appender() 2019-06-21 15:05:47 -03:00
Alfredo Garcia
550e092267
Merge branch 'master' into jmj_844b 2019-06-21 14:53:36 -03:00
Peter Conrad
6ed94317ab
Merge pull request #137 from pmconrad/1584_more_simplification
More simplifications
2019-06-19 18:34:59 +02:00
Peter Conrad
deb9d4f0a6 Make task internal storage private 2019-06-19 17:40:22 +02:00
Peter Conrad
491fd31734 Replace 0 with nullptr 2019-06-19 17:39:45 +02:00
Peter Conrad
3fa4fa6148 Fixed typo 2019-06-19 17:31:54 +02:00
crypto-ape
d5fb99b41f SSE intrinsic rename 2019-06-19 16:06:40 +02:00
Abit
a87a99bbeb
Merge pull request #139 from pmconrad/1791_fix_linking_order
Fixes https://github.com/bitshares/bitshares-core/issues/1791
2019-06-12 16:27:32 +02:00
Peter Conrad
2e98d5cc2b Fixes https://github.com/bitshares/bitshares-core/issues/1791 2019-06-12 13:15:41 +02:00
Alfredo Garcia
4cfb54fd56
Merge pull request #138 from crypto-ape/issue_1769-extend_static_variant_with_is_type_method
extend static_variant with is_type() method
2019-06-11 13:34:18 -03:00
crypto-ape
f29248d139 extend static_variant with is_type() method 2019-06-11 18:00:01 +02:00
Peter Conrad
ed7eefec67 Avoid array copy 2019-06-11 13:32:04 +02:00
Peter Conrad
1bda001b8c Use common inline functions for splitting/combining uint128 to/from two uint64 values 2019-06-11 08:51:59 +02:00
Peter Conrad
b16bf00a10 Made task_base destructor virtual 2019-06-10 23:25:56 +02:00
Peter Conrad
f1746b705a Make data_size static in hash classes 2019-06-10 23:24:09 +02:00
Peter Conrad
40797b1026 Fixed typo 2019-06-10 18:52:46 +02:00
Peter Conrad
79b2a0d634 Add support for native 128bit types 2019-06-08 10:25:52 +02:00
Peter Conrad
7649f1f47d Removed broken http_server + unused http_api 2019-06-06 14:54:48 +02:00
Peter Conrad
8196eb98c8 Added fc::int128_t 2019-06-06 14:41:47 +02:00
Peter Conrad
a11a50d4e1 Replaced true_type, false_type, is_class, is_enum with std type_traits 2019-06-06 14:41:47 +02:00
Peter Conrad
f732a587d7 Replace NO_RETURN with [[noreturn]] standard attribute 2019-06-06 14:41:47 +02:00
Peter Conrad
1025c36153 Replaced fc::nullptr_t with std::nullptr_t 2019-06-06 14:41:47 +02:00
Peter Conrad
8ad041cea0 Replaced fc::deduce with std::remove_reference<std::remove_const<>> 2019-06-06 14:41:47 +02:00
Peter Conrad
0aac8a4afc Replaced fc::forward with std::forward 2019-06-06 14:41:47 +02:00
Peter Conrad
a8337ecc42 Added constexpr where applicable 2019-06-06 14:41:47 +02:00
Peter Conrad
632a90709e Replace fc::array with std::array 2019-06-06 14:41:47 +02:00
Peter Conrad
a3e2410091 Replace fc::uint128 with boost::multiprecision::uint128_t 2019-06-06 14:41:09 +02:00
Peter Conrad
648d969fb9 Remove unused header 2019-06-06 14:39:14 +02:00
Peter Conrad
022c40dde2 Removed unused real128 2019-06-06 14:39:14 +02:00
Peter Conrad
7506aaefe7 Moved retain/release to task_base 2019-06-06 14:39:14 +02:00
Peter Conrad
19bbc4080e Added retain where applicable 2019-06-06 14:39:14 +02:00
Peter Conrad
7cf371736b Intermediate 2019-06-06 14:39:14 +02:00
Peter Conrad
e2c5160eba
Merge pull request #97 from cogutvalera/issue_1171_hiding_secret
Safer way to handle secret information of cli_wallet #1171
2019-06-05 12:57:54 +02:00
Valera Cogut
720805493f Fixed conflicts & rebased 2019-06-02 14:26:47 +03:00
Valera Cogut
73ae27e0b8 Added little improvements: free line_read before re-using it & check for nullptr read_line before using it 2019-06-02 12:38:15 +03:00
Valera Cogut
59ad7300ec Safer way to handle secret information of cli_wallet #1171 2019-06-02 12:37:44 +03:00
Peter Conrad
58e16e543d Replaced most fc::shared_ptr with std::shared_ptr 2019-05-29 11:28:40 +02:00
Peter Conrad
ab9b4a234e
Merge pull request #133 from pmconrad/1738_compile_time
Improve build time
2019-05-28 21:50:09 +02:00
Peter Conrad
3b3cadf7d5 Separate exception declaration and implementation 2019-05-28 17:22:57 +02:00
Peter Conrad
9069e05cb0 Get rid of some inlines 2019-05-28 17:20:57 +02:00
Peter Conrad
de46823a99 Dont inline generic pack/unpack to enable externalized serialization 2019-05-28 17:20:57 +02:00
Peter Conrad
8d0693304e
Merge pull request #135 from pmconrad/1688_websocket_errors
Fixed JSONRPC error handling
2019-05-28 14:45:00 +02:00
jmjatlanta
99d7e63636 revert adjustment to capture 2019-05-27 15:26:33 -05:00
Abit
9ce24c2feb
Merge pull request #136 from bitshares/ws-client-fix
Fix websocket client crash on quit
2019-05-27 21:02:28 +02:00
jmjatlanta
94200c1b57 clarify method name, cache value 2019-05-27 10:25:19 -05:00
Peter Conrad
e5869b2800 Amended some error codes 2019-05-27 11:55:03 +02:00
abitmore
debc4bd6c3 Wrap a long line 2019-05-25 10:24:03 -04:00
abitmore
c870cd8e27 Refactor websocket_tls_client_impl with template
Removes unnecessary differences between websocket_client_impl and websocket_tls_client_impl.
2019-05-25 10:01:34 -04:00
abitmore
8aa729da68 Fix websocket_client crash on close 2019-05-25 08:30:05 -04: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
Abit
397830b8ef
Merge pull request #130 from openledger/thread_d_memory_leak
Fix memory leak. Not all tasks are deleted in thread_d dtor.
2019-05-21 21:34:45 +02:00
Abit
ab6aa05574
Merge pull request #131 from bitshares/jmj_847b
Update CMake to C++14
2019-05-21 21:33:50 +02:00
Abit
8176f39806
Merge pull request #132 from bitshares/jmj_win_ifndef
Add #ifndef for Windows
2019-05-21 18:31:11 +02:00
John Jones
461b15acb4 Add #ifndef for Windows 2019-05-21 07:11:17 -05:00
John Jones
868fb93518 Add c++14, remove c++11 settings 2019-05-20 13:16:36 -05:00
Dmitry Yakovitsky
55ad023d94 Fix memory leak. Not all tasks are deleted in thread_d dtor. 2019-05-14 17:31:28 +03:00
Nathan Hourt
6bee7ff30b
Merge pull request #126 from nathanhourt/api-optionals
Add API support for optional arguments
2019-05-14 06:52:07 -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
09e4f573ce Improve websocket server close code 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
Nathan Hourt
eb48480246 Do optional API args without hana
So sad... the hana version was way more expressive... But hey, I'm kinda
proud I actually got this working! :D
2019-05-13 17:11:43 -05:00
Nathan Hourt
24eff3ab6d Add API support for optional arguments
FC_API now supports optional arguments! Any trailing arguments of
an fc::optional type are now optional, and do not need to be
supplied. If omitted, they will be inferred to be null optionals.
2019-05-13 17:11:43 -05:00
Abit
7e612bee5d
Merge pull request #129 from bitshares/quit-cli
Set `cli_quitting` to true in cli::cancel()
2019-05-13 15:08:42 +02:00
abitmore
30ea9b4a1d Let rl_getc() always return EOF when quitting
even if got an EOL or CTRL+C or etc
2019-05-12 19:44:22 -04:00
abitmore
2056a35b44 Set cli_quitting to true in cli::cancel() 2019-05-12 18:23:04 -04:00
Peter Conrad
869ad45242
Merge pull request #118 from crypto-ape/valgrind-inspired-fixes
valgrind inspired fixes
2019-05-12 11:01:20 +02: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
abitmore
3d39a51cdc Capture only this in cli::start() 2019-05-09 14:15:34 -04:00
abitmore
b562d81a65 Let CLI be able to restart 2019-05-09 14:15:34 -04:00
abitmore
9605f4826b Bump editline submodule 2019-05-09 13:22:24 -04:00
Peter Conrad
2cf1510d81
Merge pull request #122 from pmconrad/1196_serialization
1196 serialization
2019-05-08 17:32:35 +02:00
abitmore
301f582002 Handle SIGINT when searching in editline 2019-05-08 06:46:36 -04:00
abitmore
51747090a8 Minor function name change 2019-05-08 05:23:33 -04:00
abitmore
bac31e3822 Temporarily comment out check_secret in CLI
due to editline bump
2019-05-08 05:10:50 -04:00
abitmore
c5c94c45f8 Bump editline submodule 2019-05-08 05:00:57 -04:00
abitmore
382970bfa4 Suppress error message when CLI is quitting 2019-05-08 03:51:40 -04:00
abitmore
ed3f1c86dd Fix signal handling in CLI 2019-05-07 19:43:37 -04:00
abitmore
127aadbffc Add function to send signals to threads 2019-05-07 19:21:43 -04:00
abitmore
635cbc24e7 Return the signal_set when setting signal handler 2019-05-07 19:21:43 -04:00
crypto-ape
95ca36d02d properly cleanup previous current thread object 2019-05-07 13:59:56 +02:00
crypto-ape
918502e29e invalidate pointer to deleted object 2019-05-07 13:59:56 +02:00
crypto-ape
a188a95f2c extend openssl cleanup 2019-05-06 14:21:03 +02:00
crypto-ape
e82b327605 sanitize shared_ptr 2019-05-06 14:21:03 +02:00
abitmore
bd3036df8a Increase CLI command history buffer size to 256 2019-05-03 09:46:13 -04:00
abitmore
a71893adba Improve CLI tab completion feature
For example, if there are 3 commands: "gethelp", "get_account" and "get_account_name",
input "ge" then press TAB, the command will be completed to "get";
press TAB again, a list with all 3 commands will show;
input "get_ac" then press TAB, the command will be completed to "get_account";
press TAB again, a list with "get_account" and "get_account_name" will show.
2019-05-02 22:11:43 -04:00
Peter Conrad
bf63236e09
Merge pull request #125 from cwyyprog/tmp
Disable editline in mingw
2019-05-02 12:49:09 +02:00
cwyyprog
34c8fa4f3b clean CMakeLists 2019-04-30 13:51:29 +08:00
Nathan Hourt
e003fec4cd
Merge pull request #123 from nathanhourt/support-1506
Add missing serialization for sha1
2019-04-26 14:24:17 -05:00
John M. Jones
1947a14d4a
Merge pull request #114 from bitshares/jmj_847
Use c++14
2019-04-23 14:44:29 -05:00
Peter Conrad
379e59f661 Moved delete declaration to raw_fwd 2019-04-23 16:49:25 +02:00
Peter Conrad
1ae9169d08 Removed log_test from travis because it no longer exists 2019-04-23 16:49:24 +02:00
Peter Conrad
532093bda5 Added missing serialization for std::shared_ptr<T> 2019-04-23 16:49:24 +02:00
Peter Conrad
9568948350 Back hashes with boost endian buffers 2019-04-23 16:49:24 +02:00
Peter Conrad
5a9cf32696 Fixed AES IV handling 2019-04-23 16:48:17 +02:00
Peter Conrad
006f048ac5 Fixed cityhash endianness 2019-04-23 16:48:17 +02:00
Peter Conrad
cb9a96755d Add proper serialization for boost::endian::endian_buffer 2019-04-23 16:48:17 +02:00
Peter Conrad
89796afb01 Adapted + integrated libatomic check 2019-04-23 16:48:17 +02:00
Peter Conrad
8cbc2a2e22 Pulled CMake check for -latomic 2019-04-23 16:45:44 +02:00
Peter Conrad
f0c6976aea Removed superfluous return statement 2019-04-23 16:45:44 +02:00
Peter Conrad
9a0d92820d Fixes for endianness 2019-04-23 16:45:44 +02:00
Peter Conrad
8f1abdd4be Delete unused backup(?) file 2019-04-23 16:44:44 +02:00
Peter Conrad
41bdac7d58 Removed bitutil because architecture-independent byte order reversal rarely makes sense, and boost::endian provides a better alternative 2019-04-23 16:44:44 +02:00
Peter Conrad
1daac3b4b5 Removed unused endian-dependent code 2019-04-23 16:44:44 +02:00
Peter Conrad
b75f29438b Avoid endian-dependent access to hash value in key checksum test 2019-04-23 16:44:44 +02:00
Peter Conrad
0c69c9b61b Removed architecture-dependent hash64 method 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
Nathan Hourt
cac38b39b6 Add missing serialization for sha1 2019-04-14 15:45:03 -05:00
cwyyprog
7453657591 Disable editline in mingw 2019-04-13 13:26:57 +08:00
John M. Jones
6b1fdd513d
Merge pull request #113 from bitshares/jmj_1646
Help compiler infer correct templated method
2019-04-10 05:34:22 -05: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
4511300081 Minor fixes for Windows 2019-04-09 08:46:56 +02:00
Peter Conrad
bfe7904485 Removed obsolete test from travis.yml 2019-04-04 18:48:42 +02:00
Peter Conrad
cf502aab92 Added missing include 2019-04-04 18:22:23 +02:00
Peter Conrad
8a5cbac788 Added missing include 2019-04-04 18:16:23 +02:00
Peter Conrad
a063b8d41b Removed openssl ECC implementation 2019-04-04 17:59:51 +02:00
Peter Conrad
406f1bdd61 Remove unused json_connection 2019-04-04 17:59:51 +02:00
Peter Conrad
d5b817817a Remove unused bstate 2019-04-04 17:59:51 +02:00
Peter Conrad
183a81ba94 Remove unused pke 2019-04-04 17:59:51 +02:00
Peter Conrad
637226a2e4 Remove unused blowfish 2019-04-04 17:59:51 +02:00
Peter Conrad
d2b7354c24 Remove unused base36 2019-04-04 17:59:51 +02:00
Peter Conrad
579914c84d Removed unused stuff 2019-04-04 17:59:51 +02:00
abitmore
3655fe148b Minor code refactory 2019-04-03 12:06:02 -04:00
abitmore
03cc93d0e4 Update WS API test cases due to param type change 2019-04-03 12:06:02 -04:00
abitmore
15d751c3d0 Wrap long lines 2019-04-03 12:06:01 -04:00
abitmore
623d96fe9a Use shared_ptr to WS connection in API connection 2019-04-03 12:06:01 -04:00
Nathan Hourt
af572ba7d0
Merge pull request #117 from nathanhourt/typename-reflect
Add missing typename reflection for flat_map
2019-03-30 09:47:05 -05:00
Nathan Hourt
df01faa1ab Add missing typename reflection for flat_map 2019-03-29 17:36:24 -05:00
Nathan Hourt
cab0a4e8db
Merge pull request #116 from nathanhourt/warnings
Ref bitshares-core#1584 Fix some warnings
2019-03-26 08:43:05 -05:00
Nathan Hourt
4d4ec62f5d
Merge pull request #115 from nathanhourt/support-bts-1670
Support for BTS #1670: allow serializing shared_ptr<const T>
2019-03-25 09:30:27 -05:00
Nathan Hourt
2d0122f1ed More tweaks vis-a-vis warnings
Move crc_c fake usage out of strange main() function in a library
Convert manual string formatting to FC string formatting
2019-03-25 09:26:35 -05:00
Nathan Hourt
04c393a53a Add self-assignment test, sans the compiler warning 2019-03-25 09:18:21 -05:00
John Jones
843e000b74 value initialize result 2019-03-25 08:25:43 -05:00
Nathan Hourt
79886b2e35 Fix warning
Not sure what the story is with this file, but it's making a
warning and this fixes it.
2019-03-24 19:45:30 -05:00
Nathan Hourt
84c16aeebb Fix some warnings 2019-03-24 10:44:03 -05:00
Nathan Hourt
6665406f83 Requested changes for #115 2019-03-24 09:54:57 -05:00
Nathan Hourt
ba96174e7f Support for BTS #1670: allow serializing shared_ptr<const T> 2019-03-23 11:35:40 -05:00
John Jones
7497cb39f6 Use c++14 2019-03-22 16:02:20 -05:00
John Jones
7b07f84f51 Fix spacing 2019-03-22 09:38:51 -05:00
John Jones
aa50364b57 help compiler infer correct templated method 2019-03-22 09:17:01 -05:00
Nathan Hourt
a0ca5ab29d
Merge pull request #112 from nathanhourt/static_variant_fix
Make static_variant::tag_type public
2019-03-19 16:38:21 -05:00
Nathan Hourt
c59c36e006 Make static_variant::tag_type public
It's used in the public interface, so it needs to be a publicly
defined type
2019-03-19 13:06:46 -05:00
John Jones
d22f9ed634 whitespace fix 2019-03-05 13:04:44 -05:00
John Jones
d9634f8755 assist MSVC with comparison 2019-03-05 13:03:09 -05:00
John Jones
d5b2be2782 Equality check does not work on Windows 2019-03-04 17:02:14 -05:00
John M. Jones
6a5ba93fa9
Merge pull request #110 from bitshares/jmj_zlib
Allow zlib to be optional
2019-03-04 16:03:25 -05:00
John Jones
2fa5777038 Allow zlib to be optional 2019-02-26 13:55:42 -05:00
John M. Jones
063be69d07
Merge pull request #109 from bitshares/jmj_1548
Removal of smart_ref
2019-02-18 14:48:54 -05:00
John Jones
19590fd413 Removal of smart_ref 2019-02-15 08:23:05 -05:00
Abit
1a411b813a
Merge pull request #108 from bitshares/pr106
Enable websocket permessage-deflate (follow-up of #106)
2019-02-14 18:52:36 +01:00
abitmore
abdef068b9 Bump websocketpp version 2019-02-13 15:31:50 -05:00
Abit
11caddc13f
Merge pull request #106 from btsabc/enable-permessage
enable websocket permessage-deflate
2019-02-13 21:29:19 +01:00
Alfredo Garcia
66e97393ab
Merge pull request #107 from bitshares/missing-overloads
Add missing operator overloads for fc::unsigned_int
2019-02-13 15:48:01 -03:00
Nathan Hourt
25ae3222f8 Add missing operator overloads for fc::unsigned_int
Turns out that bitshares/bitshares-core#1506 is easier if you can
do greater-than comparisons on fc::unsigned_int. Go ahead and add
the complement of missing operators.
2019-02-13 12:21:30 -06:00
Your Name
b29da15d51 enable websocket permessage-deflate 2019-02-12 09:27:06 +08:00
John M. Jones
8ebd99b786
Merge pull request #105 from bitshares/jmj_1560
fix std::min parameter conversion
2019-02-05 16:53:04 -05:00
jmjatlanta
6fece96eae fix std::min parameter conversion 2019-02-05 15:44:06 -05:00
Peter Conrad
9e6c5ab6e2
Merge pull request #104 from bitshares/build_simplification
Build simplifications
2019-01-30 17:37:38 +01:00
Peter Conrad
4843502c48 travis: added ccache 2019-01-30 14:45:49 +01:00
Peter Conrad
0bbbb5eabf travis: Install only required stuff 2019-01-30 14:39:31 +01:00
Peter Conrad
3633cb4ac9 Switch to xenial build environment 2019-01-30 14:32:21 +01:00
Peter Conrad
98c9e62581 Remove unused boost dependencies serialization + locale 2019-01-30 14:31:08 +01:00
John Jones
29c0e5a0d8 Test to demonstrate fc::mutex and fc::thread 2019-01-22 21:11:46 -05:00
John M. Jones
87260fe0e1
Merge pull request #103 from bitshares/jmj_995
Remove unnecessary asserts
2019-01-22 18:16:27 -05:00
John Jones
7de33aa33a whitespace only 2019-01-21 09:15:56 -05:00
John Jones
fa07984234 fix overly agressive cleanup 2019-01-21 09:11:11 -05:00
John Jones
be4d480174 Remove unnecessary asserts 2019-01-18 12:29:38 -05:00
John M. Jones
2bf93ec086
Merge pull request #102 from bitshares/jmj_macwarn
Fix some macOS warnings
2019-01-17 12:28:56 -05:00
John Jones
9ba95190c4 make assert message more standard 2019-01-15 12:19:00 -05:00
Peter Conrad
b2e738af09
Merge pull request #100 from bitshares/fix_limits
Fix limits
2019-01-08 17:33:28 +01:00
Peter Conrad
72eeb62535 Changed MAX_PREALLOC_SIZE to 2^8 2019-01-07 19:01:33 +01:00
jmjatlanta
f7e5f7396b unneccesary capture 2019-01-07 11:18:14 -05:00
jmjatlanta
310bec6dce Fix warning adding int to string literal 2019-01-07 11:13:48 -05:00
John M. Jones
2baa7df47e
Merge pull request #101 from bitshares/jmj_1512
Remove boost signals
2019-01-06 15:51:21 -05:00
John Jones
e751cf2f2d Removed boost signals (no longer used) 2019-01-04 07:53:37 -05:00
John M. Jones
df7b4e6b52
Merge pull request #99 from bitshares/jmj_1246
Fix some compiler warnings
2019-01-02 05:25:04 -05:00
John Jones
1ed9b4f98f Revert -Wno-??? change 2019-01-01 10:25:57 -05:00
John Jones
51f27f1fcd Fix stacktrace test 2018-12-28 14:49:17 -05:00
Peter Conrad
90f8ad5722 Ported test case from STEEM 2018-12-28 20:36:34 +01:00
Peter Conrad
fb75dc9bb5 Added limits for resize() / reserve() 2018-12-28 20:36:29 +01:00
John Jones
e1bb7c6e14 Add compiler switches to squelch some warnings 2018-12-28 14:19:49 -05:00
John Jones
3f5205ad6b Fix warnings in tests 2018-12-28 14:19:19 -05:00
John M. Jones
0468884ea6
Merge pull request #92 from bitshares/mac_stacktrace
boost stacktrace does not play well with mac
2018-11-21 06:35:44 -05:00
John M. Jones
ec0de9802b
Merge pull request #90 from nathanhourt/patch-1
Fix build against boost 1.68+
2018-11-21 06:35:11 -05:00
John M. Jones
e9886b0628
Merge pull request #95 from bitshares/jmj_readsome
mac fc::io::readsome fix
2018-11-21 06:31:53 -05:00
Peter Conrad
1aecf3ccc8
Merge pull request #85 from crypto-ape/static-variant-memory-optimizations
Memory optimization of static_variant
2018-11-17 10:43:03 +01:00
Peter Conrad
460e7cccc8
Merge pull request #78 from bitshares/multithreading_improvements
Multithreading improvements
2018-11-17 10:41:49 +01:00
John Jones
84318f8d28 readsome instead of read 2018-11-15 13:46:07 -08:00
John Jones
f4dec89dc3 mac fc::io::readsome fix 2018-11-15 03:53:55 -08:00
Peter Conrad
ed775a594f Added missing include 2018-11-14 17:54:09 +01:00
John Jones
fd345e5bc2 fix #if for boost versions > 2 2018-11-13 16:06:59 -05:00
John Jones
5c0ee5d6b7 clarify comment 2018-11-12 20:57:58 -05:00
Peter Conrad
5b99b41a44 Added missing include 2018-11-10 21:29:32 +01:00
John M. Jones
0f110c3219
Merge pull request #91 from nathanhourt/patch-2
Update CMakeLists.txt
2018-11-09 19:27:59 -05:00
John Jones
0090777f34 boost stacktrace does not play well with mac 2018-11-09 14:44:41 -05:00
Nathan Hourt
d3984dd00d
Update CMakeLists.txt
On my Archlinux systems, linking fails unless this change is made.
2018-11-07 11:13:21 -06:00
Nathan Hourt
2e0a03ac1f
Fix build against boost 1.68+
In Boost 1.68, the `boost/context/all.hpp` header was removed.
Ref: 2e37599461
If building against Boost 1.68+, use `boost/context/continuation_fcontext.hpp` instead.
2018-11-07 11:07:34 -06:00
Peter Conrad
9cce60c917
Merge pull request #88 from HarukaMa/patch-1
Silence wrong tag warning
Still requires bumping fc in core.
2018-11-07 14:33:12 +01:00
Haruka Ma
bf36c189c2
Silence wrong tag warning 2018-11-07 16:41:20 +09:00
Peter Conrad
12e4962891
Merge pull request #87 from bitshares/reimprove_compilation_time
Use function pointers instead of std::function objects in static variant visitors
2018-11-05 16:22:03 +01:00
Peter Conrad
ed4a300fd5 Added missing include 2018-11-04 21:14:29 +01:00
Peter Conrad
3c3b76920e Use function pointers instead of std::function objects in static variant visitors 2018-11-04 13:54:05 +01:00
Peter Conrad
9fa03c6786
Merge pull request #86 from cogutvalera/issue_1171
Safer way to handle unlock command of cli_wallet #1171
2018-11-01 14:57:42 +01:00
crypto-ape
f8b86fc757 added testcase types_edge_cases_test for static_variant 2018-10-31 10:59:51 +01:00
crypto-ape
384d4f14c4 Replaced assert with FC_ASSERT 2018-10-31 10:59:40 +01:00
crypto-ape
93a0316607 Dynamic memory allocation of static_variant & other small changes. 2018-10-31 10:59:26 +01:00
Valera Cogut
079de9e177 Check if boost::regex is empty 2018-10-30 22:05:31 +02:00
Valera Cogut
157273fb40 Check if exists regex expression 2018-10-30 11:46:57 +02:00
Peter Conrad
acfe075c5d
Merge pull request #82 from cogutvalera/issue_1171
Safer way to handle unlock command of cli_wallet #1171
2018-10-28 10:51:22 +01:00
Valera Cogut
edd6fa8ded Removed pointer for regex expression 2018-10-27 19:06:24 +03:00
Valera Cogut
44896485d1 Optimized regex expression and other little improvements 2018-10-25 23:52:36 +03:00
Abit
8b6a2dd450
Merge pull request #84 from bitshares/jmj_1383
Fix Compiler Warnings
2018-10-25 10:41:45 +02:00
Abit
bcdaaaa651
Merge pull request #79 from bitshares/for-custom-auth
Changes for BSIP40 custom authorities
2018-10-25 10:40:29 +02:00
Valera Cogut
e14b7c6fc6 bump editline to latest upstream master 2018-10-25 00:01:43 +03:00
Valera Cogut
e00bbdaf72 removed not required output to console 2018-10-25 00:01:43 +03:00
Valera Cogut
c9d95c0c9a Safer way to handle unlock command of cli_wallet #1171 2018-10-25 00:01:43 +03:00
John Jones
c298917b85 Added warning back to avoid additional logic 2018-10-22 19:02:43 -05:00
John Jones
0156023680 Fix Compiler Warnings 2018-10-22 07:38:08 -05:00
Abit
a1d84f22c0
Merge pull request #83 from bitshares/log-obj-depth
Initialize max_object_depth in appender config
2018-10-19 22:11:20 +02:00
abitmore
9f43902b2c Remove empty lines 2018-10-19 15:48:36 +00:00
abitmore
d35e296d29 Initialize max_object_depth in appender config
by setting a default value, for file_appender and gelf_appender.
For issue https://github.com/bitshares/bitshares-core/issues/1392
2018-10-19 15:37:55 +00:00
Peter Conrad
19356497d3
Merge pull request #81 from bitshares/flat_set_serialization
Generalize flat_set serialization templates to allow different sorting and/or allocators
2018-10-13 09:33:27 +02:00
Peter Conrad
01e6ae357a Generalize flat_set serialization templates to allow different sorting and/or allocators 2018-10-12 20:35:50 +02:00
Peter Conrad
62ebc67cb3
Merge pull request #80 from oxarbitrage/remove_exotic_parser
remove WITH_EXOTIC_JSON_PARSERS
2018-10-10 14:44:24 +02:00
Peter Conrad
8174d63fb4 More line wrapping 2018-10-10 14:36:19 +02:00
Peter Conrad
bcce353b8f Check tag >= 0, shortened long lines 2018-10-10 00:07:21 +02:00
Peter Conrad
018642659d Fixed some new code smells 2018-10-09 23:42:03 +02:00
Peter Conrad
d0b280aca7 Fixed possible deadlock 2018-10-09 23:28:02 +02:00
Alfredo
53d3f729ea reduce number of changes 2018-10-09 16:41:51 -03:00
Peter Conrad
b4da12643f Replaced visitors with constant-time implementations 2018-10-09 17:55:34 +02:00
Peter Conrad
72a8168b2b Added a test for static_variant visitor call depth 2018-10-09 17:54:30 +02:00
Alfredo
67d2eb9b63 remove WITH_EXOTIC_JSON_PARSERS 2018-10-08 19:35:56 -03:00
Peter Conrad
8eff001655 Initialize queues properly 2018-10-06 11:07:11 +02:00
Peter Conrad
fc61ef3d04 Improved error handling on thread exit 2018-10-06 11:06:35 +02:00
Peter Conrad
08a66f52d3 Add option --pool-threads for easier testing 2018-10-06 11:05:45 +02:00
Peter Conrad
e336b0bb5c Added serial_valve 2018-10-05 15:02:31 +02:00
Peter Conrad
b0f4e55aee --list-content doesnt work properly until boost-1.59 2018-10-04 14:29:59 +02:00
Peter Conrad
afcb1e3543 Moved do_parallel to fc::thread-based worker pool implementation 2018-10-03 21:25:10 +02:00
Peter Conrad
9d54742741 Added a mechanism to get notifications when a thread is idle 2018-10-03 21:25:10 +02:00
Peter Conrad
fa7f6af01f Delete broken (wrt fc::current_thread()) move stuff 2018-10-03 21:17:37 +02:00
Peter Conrad
7e8debbad4 Want to see thread names also in RelWithDebInfo build 2018-10-03 21:17:37 +02:00
Peter Conrad
21724face7 Give asio threads separate names for better debugging 2018-10-03 21:17:33 +02:00
Peter Conrad
9954a3775c Added constructor for auto-fulfillment 2018-10-03 21:08:42 +02:00
Peter Conrad
ef3d36547e Removed unused file 2018-10-03 21:08:42 +02:00
Peter Conrad
34a2820c90 Added warning 2018-10-03 21:08:42 +02:00
Peter Conrad
6fe8f1d6e6 Added parallel sign/verify test 2018-10-03 21:08:42 +02:00
Peter Conrad
40b2843d15 Added test case for parallel hashing 2018-10-03 21:08:42 +02:00
Peter Conrad
3131c1df43 Implement helper function for real parallel execution 2018-10-03 10:51:15 +02:00
Peter Conrad
8e1b47a460
Merge pull request #76 from cogutvalera/issue_985
Log console output during replay to file #985
2018-10-01 15:05:47 +02:00
abitmore
70dbcc11e3 Added visit_local_member(...) methods to reflector 2018-09-30 10:11:28 -04:00
abitmore
b83108c41a Added static visit(...) methods to static_variant 2018-09-30 10:11:28 -04:00
abitmore
0fb65e4d38 Added to_variant(bool, ...) 2018-09-30 10:11:28 -04:00
Valera Cogut
fa7faee633 fc::create_directories before rotate_files 2018-09-24 22:09:22 +03:00
Valera Cogut
c544b384da Log console output during replay to file #985 2018-09-21 12:14:33 +03:00
Peter Conrad
2405081a18
Merge pull request #64 from bitshares/1088_unsigned_int
64 bits unsigned int
2018-08-22 17:12:15 +02:00
Peter Conrad
02a4516610 Handle b<0 2018-08-21 16:48:00 +02:00
Peter Conrad
79ff75423f Throw overflow_exception instead of silently cutting off data 2018-08-19 18:51:45 +02:00
Peter Conrad
1dcacbafc9 Removed signed_int 2018-08-19 18:26:46 +02:00
Peter Conrad
4b61f3ca3d Fixed alleged c&p bug 2018-08-19 11:01:05 +02:00
Peter Conrad
0c22469090 #993 - unit test 2018-08-19 11:01:05 +02:00
Peter Conrad
a39e0d1a8f Expanded tests for unsigned_int to 64 bits 2018-08-19 11:01:05 +02:00
Peter Conrad
72bcc8a926 Fix #993 - limit unpacking length of signed_int and unsigned_int 2018-08-19 11:01:05 +02:00
Peter Conrad
58ac6ae208 Changed some casts to uint64_t 2018-08-19 11:01:05 +02:00
Peter Conrad
9483935d64 Support 64 bit values in unsigned_int object 2018-08-19 11:01:05 +02:00
Peter Conrad
f8940a686a Added unit test for serialization/deserialization of unsigned_int 2018-08-19 11:01:05 +02:00
John M. Jones
7ac533b0c3
Merge pull request #73 from bitshares/fix-file-copy
Get around boost 1.67 boost::filesystem::copy null pointer dereferencing issue
2018-08-17 06:57:46 -05:00
John M. Jones
46ba4cca5e
Merge pull request #74 from bitshares/jmj_issue_1271
Missing FC Typenames (core issue #1217)
2018-08-13 09:17:19 -05:00
John Jones
9ba8886c8b Change string to static 2018-08-12 19:57:43 -05:00
John Jones
e896188875 additional templates for get_typename 2018-08-10 20:40:21 -05:00
John Jones
da33edc384 additional typenames 2018-08-10 15:33:25 -05:00
John Jones
48901cd1a4 correct templating of static variant 2018-08-10 14:40:47 -05:00
abitmore
64b4bd4900 Wrap system_error::what() in a string 2018-08-09 16:31:56 -04:00
abitmore
35cb63d3ea Call FC wrappers of copy and remove in rename()
to get around boost 1.67 boost::filesystem::copy() null pointer dereferencing issue
2018-08-09 12:57:08 -04:00
BITSG-Jerry
ce7cb0dd06 Check error after called boost::filesystem::copy()
and rethrow if found an error. This is to get around boost 1.67 issue https://svn.boost.org/trac10/ticket/13585
2018-08-09 12:38:09 -04:00
liukunyu
1eca4959e7 fix import_key crash for wallet 2018-08-09 10:38:26 +00:00
Abit
1a457caf33
Merge pull request #70 from cogutvalera/valera_issue_1193
Capture Ctrl+C in cli_wallet when not in daemon mode #1193
2018-07-30 15:00:05 +00:00
Valera Cogut
ec41a06300 reverting throw exception instead of raising SIGINT in order not to terminate cli_test early 2018-07-30 17:53:57 +03:00
Abit
8174558041
Merge pull request #68 from cogutvalera/valera_issue_1193
Capture Ctrl+C in cli_wallet when not in daemon mode #1193
2018-07-30 14:37:57 +00:00
Valera Cogut
40d928e57c raise SIGINT instead of throwing exception in cli_wallet quit command 2018-07-30 16:48:37 +03:00
John M. Jones
e310159ede
Merge pull request #67 from cogutvalera/valera_issue_597
fc::time_point_sec::to_iso_string is broken #597
2018-07-27 07:12:31 -05:00
Valera Cogut
0077926a7c removed comment 2018-07-27 15:00:10 +03:00
Valera Cogut
9e043fb7bc fc::time_point_sec::to_iso_string is broken - issue #597 2018-07-27 10:27:28 +03:00
Peter Conrad
5469bb960a
Merge pull request #63 from cogutvalera/valera_issue_1050
add quit command to cli_wallet #1050
2018-07-25 16:42:33 +02:00
John M. Jones
7080cf44ac
Merge pull request #66 from bitshares/jmj_stacktrace
Add missing header
2018-07-25 05:20:33 -05:00
Abit
f1e48d392e
Merge pull request #56 from nanomobile/valera_issue_809
Log file of current hour gets overwritten by default #809
2018-07-25 00:11:29 +00:00
jmjatlanta
2105bc0ee7 Add header 2018-07-23 19:50:54 -05:00
Abit
0604a5e184
Merge pull request #65 from bitshares/jmj_issue_999
Bump for websocketpp, bitshares-core issue 999
2018-07-23 22:16:10 +00:00
jmjatlanta
82987bb55e Bump for websocketpp, bitshares-core issue 999 2018-07-23 16:26:54 -05:00
Abit
ed168a4844
Merge pull request #62 from cogutvalera/valera_issue_929
RPC logging level inconsistency #929
2018-07-23 21:06:28 +00:00
Valera Cogut
18206552fc throwing fc:canceled_exception for quit cli wallet command 2018-07-20 16:44:31 +03:00
Valera Cogut
535fc869b5 remove hard coded method check to result check from quit command 2018-07-19 09:49:03 +03:00
Valera Cogut
0486a5f1e9 fixed issue #1050 2018-07-19 09:49:03 +03:00
Valera Cogut
ee25279db6 added idump for websocket_tls_server_impl 2018-07-17 20:50:32 +03:00
Valera Cogut
da5f2c3914 fixed issue #929 2018-07-17 20:50:32 +03:00
Valera Cogut
1169c2d966 removed using statement from header file 2018-07-17 19:46:43 +03:00
Peter Conrad
d679377312
Merge pull request #60 from bitshares/jmj_issue_1127
fix editline sigsev
2018-07-17 18:45:12 +02:00
Peter Conrad
996dc14588
Merge pull request #58 from RichardWeiYang/master
Trivial code refine
2018-07-17 18:44:50 +02:00
Peter Conrad
4dc373254a
Merge pull request #59 from cwyyprog/cwyy1
Fix compile error / make OPENSSL_CONF_SOURCE configurable
2018-07-17 18:44:21 +02:00
jmjatlanta
ce2e62f535 fix editline sigsev 2018-07-16 06:37:25 -05:00
Valera Cogut
20724f7ecc fixed issue #809 2018-07-09 17:17:32 +03:00
cwyy
650c0a3c62 fix hardcode of OPENSSL_CONF_SOURCE in CMakeLists.txt 2018-07-05 17:56:45 +08:00
Wei Yang
6d3184ff44 Fix two typo in variant.hpp 2018-07-05 13:50:40 +08:00
Wei Yang
e609d70334 Remove unnecessary structure definition in static_variant.hpp 2018-07-05 13:50:40 +08:00
cwyy
ac982cae2a fix compile error with vs2017 and boost 1.67 2018-06-30 14:10:38 +08:00
John M. Jones
d8437ac286
Merge pull request #54 from bitshares/jmj_issue_992
adjust asserts in fc/crypto
2018-06-07 04:27:43 -07:00
Peter Conrad
0dbf7ffc23
Merge pull request #49 from bitshares/travis_sonar
Modifications to run sonar-scanner during travis build
2018-06-05 15:05:11 +02:00
Alfredo Garcia
ea18aca0e2
Merge pull request #52 from bitshares/bz2-unused-linkage
Remove fc bz2 unused linkage
2018-06-04 10:35:27 -03:00
John Jones
59f503d643 adjust asserts in fc/crypto 2018-06-01 19:00:48 -05:00
Alfredo Garcia
0a90eff697
Merge pull request #7 from bitshares/openssl-1.1-support
Openssl 1.1 support
2018-05-31 17:32:21 -03:00
Alfredo Garcia
64aa56559d
Remove fc bz2 unused linkage 2018-05-30 21:59:06 -03:00
John M. Jones
36359f5895
Merge pull request #50 from bitshares/jmj_issue_762
Add parameterized constructor (part of Issue 762)
2018-05-29 12:46:25 -07:00
Peter Conrad
cff8e9694f
Merge pull request #51 from pmconrad/core_986_cleanup
Remove unused "smaz" compression
2018-05-29 20:22:26 +02:00
Peter Conrad
0fc569cbfc Remove unused "smaz" compression 2018-05-29 16:36:31 +02:00
John Jones
89106809d8 add parameterized constructor 2018-05-28 08:38:38 -05:00
John M. Jones
0d689a4894
Remove hard coded number of IO threads (#47)
This allows for control of the number of IO threads before their creation
2018-05-16 09:44:23 -07:00
Peter Conrad
a6671d6af4
Merge pull request #44 from pmconrad/dh_fix
Fixed diffie-hellman shared key computation
2018-05-15 18:47:13 +02:00
Peter Conrad
b3285b3bc2 Parallelize unit test execution 2018-05-13 10:52:37 +02:00
Peter Conrad
bb626649eb Conditional build with sonar 2018-05-11 22:14:24 +02:00
Peter Conrad
93d3362709 Modifications to run sonar-scanner during travis build 2018-05-11 21:57:19 +02:00
Peter Conrad
29ace9b07d Added specific test case for short secret 2018-05-11 18:13:15 +02:00
Peter Conrad
f0dfc64261 Fixed diffie-hellman shared key computation 2018-05-10 15:24:04 +02:00
Abit
d14daf861b
Merge pull request #41 from pmconrad/openssl-1.1-support
Ripped out unused blinding stuff
2018-05-08 11:18:39 +02:00
Abit
ccc213b72d
Merge pull request #43 from jmjatlanta/Issue_socket
Memory leak on socket destruction
2018-05-06 00:09:16 +02:00
John Jones
3661e835f8 Removed unused parameter 2018-05-04 11:05:20 -05:00
John Jones
cb2965991f Added comment to clarify test purpose 2018-05-04 07:47:37 -05:00
John Jones
58ef1c2c5d Merge remote-tracking branch 'upstream/master' into Issue_socket 2018-05-04 07:40:05 -05:00
Peter Conrad
a3272e4f9e Ripped out unused blinding stuff 2018-04-26 17:35:45 +02:00
Abit
9037ca3fbd
Merge pull request #40 from pmconrad/openssl-1.1-support
Fixed DH memory handling with openssl-1.1
2018-04-26 12:42:39 +02:00
Abit
51688042b0
Merge pull request #38 from jmjatlanta/Issue_727c
Add Boost::Stacktrace to Bitshares
2018-04-26 12:39:34 +02:00
Abit
000ef9a118
Merge pull request #36 from jmjatlanta/boost_1.66
Upgrade to Boost 1.65
2018-04-26 12:37:17 +02:00
Abit
056a326268
Merge pull request #39 from ihla/fix_project_editline_cmakelists
fix incorrect project_editline-build path
2018-04-26 12:08:29 +02:00
Peter Conrad
fccabf1eb6 Fixed blinding test + implementation 2018-04-21 21:42:45 +02:00
Peter Conrad
5706d58cdc Fixed DH memory handling with openssl-1.1 2018-04-21 20:39:40 +02:00
lubos.ilcik
b4fac94858 fix incorrect project_editline-build path 2018-04-18 13:54:20 +02:00
Fabian Schuh
c0db16bf3b Fix erros in unittest 2018-04-13 11:28:51 +02:00
Fabian Schuh
6b81aab6ef [websocketpp] update submodule and provide patched version via separate repository 2018-04-13 11:28:51 +02:00
Fabian Schuh
ef27d4b3a1 Initial work for openssl-1.1 support 2018-04-12 14:58:13 +02:00
Nathan Hourt
13d98e2cad Add OpenSSL 1.1.0 support
These changes should add support for openssl 1.1.0 while maintaining
compatibility with 1.0.2
2018-04-12 14:58:13 +02:00
John Jones
7db8176624 Moved headers within #if macro for cleanliness 2018-04-09 17:29:57 -05:00
John Jones
5383d5b481 boost::hash<fc::sha256> not used, removed 2018-04-09 10:14:00 -05:00
John Jones
133fe62048 Add comment to clarify 2 sections of code. 2018-04-09 08:59:58 -05:00
John Jones
a6738e3265 Added boost stacktrace to segfault handler 2018-04-09 08:11:38 -05:00
John Jones
b01ddeb35f Merge remote-tracking branch 'upstream/master' into boost_1.66 2018-04-09 07:35:08 -05:00
John M. Jones
18640e46e3
Add special handling for mac size_t and variant (#35) 2018-04-02 14:23:31 -05:00
John Jones
38191dcc00 added boost hash header 2018-03-29 15:34:15 -05:00
John Jones
652389644c removed boost_1.51 and interprocess class 2018-03-28 11:38:20 -05:00
Abit
4441e14807
Merge pull request #32 from bitshares/abitmore-patch-1
Remove -std=c++14 flag from CMakeLists.txt
2018-03-27 18:51:39 +02:00
Abit
4dbf6ee080
Merge pull request #34 from bitshares/msvc-editline
Skip editline when building in MSVC
2018-03-27 18:45:06 +02:00
abitmore
6dc06cd598 Skip editline when building in MSVC 2018-03-27 04:08:42 -04:00
Abit
91d294feca
Remove -std=c++14 flag from CMakeLists.txt 2018-03-25 20:27:09 +02:00
oxarbitrage
88d371b0fa
Merge pull request #31 from bitshares/fix-travis-logging
Pipe output to get around logging ANSI color issue
2018-03-23 20:02:11 -03:00
abitmore
52a5956106 Pipe output to get around logging ANSI color issue 2018-03-23 18:43:29 -04:00
John Jones
f84de73e66 added test to demonstrate issue 2018-03-23 17:34:07 -05:00
Abit
d286375e23
Merge pull request #27 from bitshares/oxarbitrage-patch-1
add travis build status
2018-03-23 23:20:02 +01:00
Abit
7e7e3e5fec
Merge pull request #30 from oxarbitrage/time_test
Add travis to FC
2018-03-23 23:15:30 +01:00
oxarbitrage
377235a401
comment out another test 2018-03-23 17:32:01 -03:00
oxarbitrage
6fae537fad
add notes to commented tests 2018-03-23 17:21:15 -03:00
oxarbitrage
eb9cc0be06
add note to commented test 2018-03-23 17:20:13 -03:00
Abit
0fe2e61b21
Merge pull request #28 from bitshares/variant_test
Logging fix
2018-03-23 21:11:08 +01:00
abitmore
5dcebe7b1f Suppress logging when testing mass logging 2018-03-23 14:31:46 -04:00
abitmore
f92671e1b5 Try to avoid throwing exception when logging 2018-03-23 13:19:52 -04:00
abitmore
a57879b3a9 Update test case for variant conversions 2018-03-23 12:46:14 -04:00
abitmore
1b3d53114f Add test case for variant conversions 2018-03-23 08:23:50 -04:00
Alfredo
8a96790c78 remove test 2018-03-22 21:49:27 -03:00
Alfredo
636a50f1f6 comment some failing tests 2018-03-22 21:36:28 -03:00
oxarbitrage
c2d1cfd999
add travis build status 2018-03-22 20:44:40 -03:00
abitmore
a3f8f2f004 Fix websocket_test 2018-03-22 12:42:24 -04:00
abitmore
0065cf00e1 Fix .travis.yml 2018-03-22 12:02:09 -04:00
abitmore
51ba34c586 Add .travis.yml 2018-03-22 11:52:01 -04:00
Abit
0a0d41e9a5
Merge pull request #25 from bitshares/jmjatlanta-patch-1
fixed macOS build
2018-03-22 16:33:16 +01:00
jmjatlanta
956085d72f fixed macOS build 2018-03-22 09:57:06 -05:00
Abit
3e7e0aa969
Merge pull request #24 from bitshares/abitmore-patch-1
Fix redefinition of default arg under macOS
2018-03-22 15:27:36 +01:00
Abit
6e42194f72
Fix redefinition of default arg under macOS 2018-03-22 15:08:56 +01:00
Abit
d5024e85f9
Merge pull request #12 from bitshares/oxarbitrage-patch-1
Add Doxyfile
2018-03-19 17:42:26 +01:00
Abit
2bb93c8b5d
Merge pull request #21 from pmconrad/variant_fix
Variant fix
2018-03-19 17:35:57 +01:00
Peter Conrad
1eb7b9d5c6 Added some missing checks, fixed indentation, handle different meanings of max_depth 2018-03-19 15:49:07 +01:00
Abit
efa4a504de
Merge pull request #22 from abitmore/fix-class-serialization
Fix class serialization
2018-03-18 14:48:20 +01:00
Peter Conrad
a91822616e Added max_depth to remaining variant conversions 2018-03-18 10:49:44 +01:00
abitmore
d9ac2691a1 Remove default pack/unpack functions for class 2018-03-14 17:20:48 -04:00
abitmore
85ea20e2c9 Deprecate default pack/unpack functions for class 2018-03-14 06:25:14 -04:00
abitmore
769dd980b7 Add tests for nested class object serialization 2018-03-14 06:15:01 -04:00
Peter Conrad
2f5f599e0d Moved LOG_*_DEPTH variable to new config.hpp 2018-03-13 22:33:21 +01:00
Peter Conrad
271a8377a6 Adapted API conversions, incomplete 2018-03-13 22:00:18 +01:00
Peter Conrad
dd9197c9d5 Added missing depth check 2018-03-13 22:00:18 +01:00
Peter Conrad
81c8d89341 Added max_depth parameter to variant conversions 2018-03-13 22:00:18 +01:00
Peter Conrad
32869351c9
Merge pull request #11 from openledger/sanitize
sanitizer issues
2018-03-13 21:45:53 +01:00
Peter Conrad
fca5058464
Merge branch 'master' into sanitize 2018-03-13 21:39:40 +01:00
Abit
67e60367a5
Merge pull request #15 from pmconrad/json_parsing_fix
JSON parsing fix from steem PR 2178
2018-03-13 21:36:15 +01:00
Peter Conrad
8f08591e46
Merge pull request #20 from abitmore/fix-serialization
Fix pack/unpack serialization
2018-03-13 21:13:45 +01:00
abitmore
43ac0b0520 Slightly improve performance for pack/unpack 2018-03-13 13:06:00 -04:00
abitmore
86e18663a0 Add max_depth parameter to pack/unpack functions 2018-03-11 17:31:55 -04:00
abitmore
782e7d687b Add test case for nested-object serialization 2018-03-11 17:21:44 -04:00
Peter Conrad
527daab6b7 Moved format_string from variant.cpp to string.cpp (it is declared in string.hpp), added handling of recursion errors 2018-03-09 18:52:01 +01:00
Peter Conrad
d24bee8bf4 Added test case for exception in exception handling 2018-03-09 18:51:48 +01:00
Peter Conrad
1331485c08 Stringify numbers >MAXINT or <MININT 2018-03-08 22:33:54 +01:00
Peter Conrad
f9802f6860 Added max_depth parameter to all to_/from_ methods 2018-03-08 22:33:41 +01:00
Peter Conrad
1412df18d1 Make broken_nul_parser usable 2018-03-08 22:33:27 +01:00
Abit
628548ca02
Merge pull request #17 from jmjatlanta/Issue_673
correctly handle list of methods
2018-03-08 19:39:11 +01:00
John Jones
9ee2bcf0a5 avoid double free 2018-03-08 11:05:34 -05:00
John Jones
2017ed911a fix memory leak 2018-03-08 10:46:23 -05:00
John Jones
43b81cb69b assuring that malloc gets freed 2018-03-08 07:40:20 -05:00
Peter Conrad
66ed9fc3dc Minor fixes 2018-03-07 22:42:43 +01:00
Abit
5f6e4d8523
Merge pull request #16 from bitshares/editline-build
Build editline
2018-03-07 20:51:30 +01:00
John Jones
5b5190a55c changed const to const ref 2018-03-07 09:44:35 -05:00
Peter Conrad
2bacd5fda8 Added broken_nul_parser to preserve previous behaviour 2018-03-07 15:44:18 +01:00
Peter Conrad
90137d400d Fix for recursion depth limitation 2018-03-07 15:44:10 +01:00
Peter Conrad
a7e0c887db Added test case for recursion depth 240 2018-03-07 15:44:01 +01:00
Peter Conrad
d336af82a6 Applied variant_from_stream fix from regular to relaxed 2018-03-07 15:43:49 +01:00
Peter Conrad
4bb8bf7832 Fixed relaxed parser wrt "" input 2018-03-07 15:43:38 +01:00
Peter Conrad
b4f3947cb1 Include variants_from_string in parser test 2018-03-07 15:43:25 +01:00
Peter Conrad
1ae3cc2fad Make unused parsers compile-time optional 2018-03-07 15:43:14 +01:00
Peter Conrad
cb9c61fa2d Avoid legacy_generator 2018-03-07 15:43:05 +01:00
Peter Conrad
43fabf618f Code deduplication 2018-03-07 15:42:46 +01:00
Peter Conrad
e37d9a5051 Code cleanups and simplifications 2018-03-07 15:42:35 +01:00
Peter Conrad
8c09ff09fc Added json write/validate/read test 2018-03-07 15:42:19 +01:00
John Jones
b3053d0421 adjust spacing, add const, remove unnecessary variable, bad malloc check 2018-03-07 02:55:59 -05:00
John Jones
c225488cd4 replace tabs with spaces 2018-03-06 17:17:09 -05:00
Abit
b8e5640238
Merge pull request #19 from bitshares/abitmore-patch-1
Correctly set default C++ standard to c++11
2018-03-06 20:39:42 +01:00
Abit
d810971c83
Merge pull request #18 from bitshares/fork-websocketpp
Update websocketpp submodule to a forked and patched version
2018-03-06 20:38:56 +01:00
Abit
ebdb5eacea
Correctly set default C++ standard to c++11 2018-03-06 20:37:23 +01:00
John Jones
1fe7d4be46 Trying to get the #$%@$ tabs to disappear 2018-03-06 11:44:00 -05:00
abitmore
b5fec06152 Update websocketpp to a forked and patched version 2018-03-06 16:28:20 +00:00
abitmore
0242a05111 Remove FindEditline.cmake 2018-03-06 16:16:52 +00:00
John Jones
f5d68e9336 Adjusting for formatting guidelines 2018-03-06 09:25:38 -05:00
abitmore
d33092f86c More changes on cmake file for editline 2018-03-06 13:47:45 +00:00
Peter Conrad
4d782e894f Deduplicate some code 2018-03-06 14:46:34 +01:00
Peter Conrad
52f6810735 Fixed from_file 2018-03-06 14:46:20 +01:00
Peter Conrad
72e96e3c1d Added first json test case 2018-03-06 14:43:35 +01:00
Peter Conrad
0c75709488 Added unit tests for stringstream, [io]fstream and buffered_[io]stream 2018-03-06 14:43:17 +01:00
abitmore
4258f4f98b Update cmake file for editline 2018-03-06 13:41:40 +00:00
John Jones
5f3ace5ca3 Added space at end of completed command 2018-03-06 08:06:18 -05:00
John Jones
e766ea9429 correctly handle list of methods 2018-03-05 14:37:14 -05:00
abitmore
ade96c1213 Build editline
TODO: the cmake script is copied from the secp256k1 part in the
      same file, may need to review/fix the MSVC and MinGW part.
2018-03-05 00:48:11 +00:00
Peter Conrad
b12205caf6 Minor optimization 2018-03-02 21:13:03 +01:00
Peter Conrad
bbe2a8b289 JSON parsing fix from steem PR 2178 2018-03-01 18:58:23 +01:00
Abit
48dbc096aa
Merge pull request #14 from jmjatlanta/Issue_673
Replace Readline, bitshares-core issue 673
2018-02-28 21:42:36 +01:00
John Jones
046c65016b Replaced tab with spaces 2018-02-26 16:54:32 -05:00
John Jones
9d5a32c536 Moved assignment from within a loop 2018-02-26 16:47:38 -05:00
John Jones
79cf3d2b3a code cleanup 2018-02-26 16:43:54 -05:00
John Jones
abb4b9b0ab Added editline as submodule 2018-02-20 15:18:47 -05:00
oxarbitrage
4818776987
Add Doxyfile 2018-02-06 18:36:07 -03:00
Anton Autushka
7d7872cb7b some minor fixes 2018-02-06 15:37:14 +03:00
Anton Autushka
bf86466be1 In static_variant use int64_t as a tag type 2018-02-06 13:00:51 +03:00
Alexey Frolov
1ae7f6bb02 FIXES:
- 'bloom_test_1': infinite loop if file not exists
- 'websocket_test': uncatched exceptions
- 'fc_crypto*' test_stream<>: uninitialized variable (hash)
- 'blowfish_chain_test': using memory after allocated heap
- memcmp: passing nullptr, when non-null expected
- undefined behavior: return value from function
- static_variant: member alignment - performance issue on 64-bit arch
- memory leak: fc::thread cleanup in asio thread
- warning: signed-unsigned comparison
- warning: unused variables
2018-02-05 12:19:06 +03:00
Alexey Frolov
5138c58e09 sanitize, remove warnings 2018-02-02 15:29:46 +03:00
Abit
226391bbbc
Merge pull request #10 from pmconrad/core_597
Added unit test to demonstrate problem with time_point_sec::to_iso_string
2018-01-23 18:24:52 +01:00
Peter Conrad
c02fe0aaf6 Added unit test to demonstrate problem with time_point_sec::to_iso_string 2018-01-23 17:58:37 +01:00
oxarbitrage
a1e1599f97
Merge pull request #9 from bitshares/abitmore-patch-1
static_variant::set_which() rejects negative param
2018-01-21 09:34:55 -03:00
Abit
dffe2a444e
static_variant::set_which() rejects negative param 2018-01-20 16:54:09 +01:00
oxarbitrage
7cd9f1c7a4
Merge pull request #6 from cwyyprog/master
Fix compile error
2017-11-14 17:46:05 -03:00
oxarbitrage
2a5dd4f45d
Merge pull request #5 from aautushka/master
Boost 1.61/1.62/1.63 compatibility fix
2017-11-14 16:49:39 -03:00
cwyyprog
56d5d45b08
Merge pull request #2 from cwyyprog/cwyyprog-fix-for-build-with-gcc7.2-2
fix compile error
2017-11-14 17:23:19 +08:00
cwyyprog
1296ebb485
Merge pull request #1 from cwyyprog/fix-for-build-with-gcc-7.2-1
Update static_variant.hpp
2017-11-14 17:23:01 +08:00
cwyyprog
d157c2c756
Update typename.hpp 2017-11-14 17:11:24 +08:00
cwyyprog
e754b4940e
Update static_variant.hpp 2017-11-14 17:09:08 +08:00
Anton Autushka
20836338d2 Suppress coroutines deprecation warning in boost 1.62 2017-11-09 15:41:44 +03:00
Anton Autushka
c2a37a83bd Boost 1.61 compatibility fix 2017-11-09 15:18:58 +03:00