1
0
Fork 0
forked from lthn/blockchain
Commit graph

62 commits

Author SHA1 Message Date
cryptozoidberg
c19ee435fc
Merge branch 'develop' into txpool_optimisation 2019-12-05 16:05:01 +01:00
cryptozoidberg
98636c52a1
CIRITCAL_OPERATION macro compatible with *nix 2019-12-03 04:30:40 +01:00
cryptozoidberg
86d98d3e67
fixed linux compilation issue 2019-12-03 03:16:54 +01:00
cryptozoidberg
e82bd6b575
added new test, fixed multiple bugs 2019-11-29 21:43:17 +01:00
sowle
3455811cc3
core: CATCH_ENTRY_NO_RETURN made parameterless, CATCH_ENTRY_NO_RETURN_CUSTOM added 2019-11-21 16:44:42 +03:00
cryptozoidberg
57e0aa063d
pool code modificated to work with onboard transactions 2019-11-16 20:26:40 +01:00
sowle
f67ad76f38
1) LOCAL_FUNCTION_DEF__ made less verbose for gcc 2) fixed gcc compilation 2019-11-14 03:12:22 +03:00
sowle
c1e75c3445
epee: syncobj & try-catch macros: fix & minor refactoring 2019-11-13 16:28:21 +03:00
cryptozoidberg
360c8bf6bd
exception safe destructor(CID 273246 (#5-1 of 5): Uncaught exception (UNCAUGHT_EXCEPT)) 2019-11-12 21:54:19 +01:00
sowle
470cde7948
epee: improved logs for abstract_tcp_server (warn about potential issue) and http_client (less drama when unable to connect) 2019-11-12 11:30:27 +03:00
sowle
2fd120f201
add LOCATION_CSTR macro 2019-11-12 11:28:09 +03:00
cryptozoidberg
215a0b1786
CID 273225 (#1 of 1): Using invalid iterator (INVALIDATE_ITERATOR) 2019-11-11 03:25:40 +01:00
cryptozoidberg
cf7dc36cf7
added return value check(coverity STREAM_FORMAT_STATE) 2019-11-11 02:04:49 +01:00
cryptozoidberg
2cde1c530d
fixed uninitialized member in idle_callback_conext_base 2019-11-11 01:55:00 +01:00
cryptozoidberg
6e456458bb
made log messages exception safe 2019-11-10 19:15:17 +01:00
sowle
b398de6e9f
minor log improvements in currency protocol and epee's net_utils_base 2019-10-19 06:38:21 +03:00
cryptozoidberg
f2b8562813
fix of the levin(stolen from @moneromooo-monero) 2019-10-16 22:53:58 +02:00
cryptozoidberg
5dabc72bda
added huge comment to prevent future shoot in the foot 2019-10-13 01:38:55 +02:00
cryptozoidberg
fdddf58ebf
attempt to fix #127 2019-10-13 01:27:03 +02:00
sowle
c29c7a6a5f
fix gcc compilation for older boost versions 2019-10-05 15:12:02 +03:00
cryptozoidberg
a38032d39a
Merge branch 'develop' into der_hint_improve 2019-09-27 17:24:41 +02:00
cryptozoidberg
a5c02c7d8c
improvements over wallet balance caclulations algo 2019-09-27 17:16:18 +02:00
sowle
4b2b8bc273
filesystem unicode refactoring: many fixes and improvements for #121 2019-09-26 03:13:36 +03:00
sowle
d66e07ef1a
filesystem unicode refactoring WIP3 2019-09-25 17:09:38 +03:00
sowle
ceb1739f23
filesystem unicode support: WIP2 2019-09-25 06:22:00 +03:00
sowle
7706f0d6ac
filesystem unicode support: WIP 2019-09-24 17:49:04 +03:00
sowle
f5dbbfd1d4
some warning fixed 2019-09-11 13:30:56 +03:00
sowle
d6e8ecb86f
callstack trace for win64 implemented and integrated into epee 2019-08-29 04:23:16 +03:00
sowle
483f673c0d
warnings fixed 2019-08-15 06:17:03 +03:00
cryptozoidberg
2662abea6d
fixed compilation problem 2019-08-14 20:51:49 +02:00
cryptozoidberg
3cf4b87a07
Merge branch 'develop' into pos_impr 2019-08-14 10:23:56 +02:00
cryptozoidberg
4a1bd84c71
added api for importing contacts from file 2019-08-09 22:12:32 +02:00
sowle
a6ab2adf86
zlib_helper::pack() fixed for small amount of data + unit test added (resolves #62) 2019-08-05 17:07:10 +03:00
cryptozoidberg
292437c05c
fixed compilation issues 2019-07-24 00:37:24 +02:00
cryptozoidberg
cda2dda44f
implemented comparing function fo altchains 2019-07-15 20:10:50 +02:00
cryptozoidberg
216ce4d90d
Merge branch 'develop' into pos_impr 2019-07-13 17:02:14 +02:00
cryptozoidberg
97e721f5f5
fixed bug with payment id visualisation 2019-06-29 00:39:50 +03:00
cryptozoidberg
667a4dec8a
inital implementation of PoS improvements: comparing function, diff tracing, block version 2019-06-18 01:15:33 +03:00
cryptozoidberg
4acab07028
added more diagnostic logs for protocol 2019-06-05 15:51:15 +03:00
cryptozoidberg
8c065fd974
added notice for pos_mining in wallet, removed warnings with new boost 2019-05-24 15:51:10 +02:00
sowle
33a002982e formatting/whitespace fixes 2019-05-21 19:53:20 +03:00
0x914409F1
950f9c16f6 Coverity (#28)
* stratum_server: resolve CID 210144 (UNINIT_CTOR)

* stratum_server: resolve CID 210042/210085/210104 (UNCAUGHT_EXCEPT)

The potential to throw exists within the logger,
remove_blockchain_update_listener, and any paths involving the logger
(including CATCH_ENTRY_*).

* epee: misc_log_ex: create CATCH_ENTRY_NO_RETURN macro

A temporary substition for what I hope will eventually be a full-fledged
exception-dispatcher (class-based, not macro).

* stratum_server: resolve CID 210080/210084/210089 (UNCAUGHT_EXCEPT)

The potential to throw exists within the logger,
remove_protocol_handler, and any paths involving the logger
(including CATCH_ENTRY_*).

* epee: levin_protocol_handler_async: resolve CID 210140/210182/210165 (UNCAUGHT_EXCEPT)

The potential to throw exists within guarded_critical_region_t, and any
paths involving the logger (including CATCH_ENTRY_*).

* epee: levin_protocol_handler_async: resolve CID 210110/210119/210155 (UNCAUGHT_EXCEPT)

The potential to throw exists within the logger, del_connection, and any
paths involving the logger (including CATCH_ENTRY_*).

* epee: misc_log_ex: move macros to *top* of file

so they can be used *within* this file.

* daemon: resolve CID 210069/210092/210166 (UNCAUGHT_EXCEPT)

The potential to throw exists within log_space, and any paths involving
the logger (including CATCH_ENTRY_*).

* daemon: return cstdlib proper types in main

* simplewallet: resolve 6 different CIDs (UNCAUGHT_EXCEPT)

CID: 210082
CID: 210086
CID: 210096
CID: 210147
CID: 210149
CID: 210150

The potential to throw exists throughout various paths in main.

* simplewallet: return cstdlib proper types in main

* simplewallet: resolve CID 210128/210160 (UNCAUGHT_EXCEPT)

The potential to throw exists within various paths, and any paths
involving the logger (including CATCH_ENTRY_*).

* conn_tool: resolve 5 different CIDs (UNCAUGHT_EXCEPT)

CID: 210038
CID: 210047
CID: 210108
CID: 210122
CID: 210157

The potential to throw exists throughout various paths in main.

* conn_tool: return cstdlib proper types in main

* miniupnp_helper: resolve CID 210050 (UNCAUGHT_EXCEPT)

The potential to throw exists within deinit, including any paths
involving the logger (including CATCH_ENTRY_*).

* epee: profile_tools: resolve CID 210055 (UNCAUGHT_EXCEPT)

The potential to throw exists within boost microsec_clock::localtime(),
and any paths involving the logger (including CATCH_ENTRY_*).

* db_backend_lmdb: resolve CID 210056/210133 (UNCAUGHT_EXCEPT)

The potential to throw exists within close(), including any paths
involving the logger (including CATCH_ENTRY_*).

* epee: misc_log_ex: resolve CID 210060/210124 (UNCAUGHT_EXCEPT)

The potential to throw exists within several paths, including any paths
involving the logger (including CATCH_ENTRY_*).

* epee: misc_language: resolve 4 CIDs (UNCAUGHT_EXCEPT)

CID: 210064
CID: 210093
CID: 210136
CID: 210139

The potential to throw exists within m_func(), including any paths
involving the logger (including CATCH_ENTRY_*).

* db_abstract_accessor: resolve 4 CIDs (UNCAUGHT_EXCEPT)

CID: 210072
CID: 210094
CID: 210116
CID: 210141

The potential to throw exists within m_cache.clear(), including any
paths involving the logger (including CATCH_ENTRY_*).

* epee: net_helper: resolve CID 210100 (UNCAUGHT_EXCEPT)

The potential to throw exists within shutdown(), including any
paths involving the logger (including CATCH_ENTRY_*).

* epee: syncobj: resolve CID 210123 (UNCAUGHT_EXCEPT)

The potential to throw exists within unlock(), including any
paths involving the logger (including CATCH_ENTRY_*).

* epee: profile_tools: resolve CID 210145/210154 (UNCAUGHT_EXCEPT)

The potential to throw exists within various paths, including any paths
involving the logger (including CATCH_ENTRY_*).

* epee: http_base: resolve CID 210176 (UNINIT_CTOR)

* p2p: net_node: resolve CID 210173 (UNINIT_CTOR)

* epee: net_helper: resolve CID 210138 (UNINIT_CTOR)

* p2p: net_peerlist: resolve CID 210137 (UNINIT_CTOR)

* currency_basic: resolve CID 210117 (UNINIT_CTOR)

* epee: abstract_tcp_server2: resolve 3 CIDs (UNINIT_CTOR)

CID: 210040
CID: 210090
CID: 210105

* simplewallet: resolve CID 210103 (UNINIT_CTOR)

* epee: levin_protocol_handler_async: resolve CID 210091 (UNINIT_CTOR)

* json_archive: resolve CID 210087 (UNINIT_CTOR)

* epee: levin_protocol_handler_async: resolve CID 210073 (UNINIT_CTOR)

* miniupnp_helper: resolve CID 210037 (UNINIT_CTOR)

* crypto: ge_frombytes_vartime: resolve CID 210142 (CHECKED_RETURN)

* wallet2: resolve CID 210041 (CHECKED_RETURN)

* epee: misc_log_ex: resolve CID 210127 (DEADCODE)

* epee: levin_protocol_handler_sync: resolve 3 CIDs (PASS_BY_VALUE)

CID: 210167
CID: 210170
CID: 210180

* p2p: net_node: resolve CID 210065 (PASS_BY_VALUE)

* epee: levin_abstract_invoke2: resolve CID 210049 (PASS_BY_VALUE)

* epee: abstract_tcp_server2: resolve CID 210045 (PASS_BY_VALUE)

* epee: misc_log_ex: add NESTED_*_ENTRY macros

* simplewallet: use NESTED_*_ENTRY in message_writer dtor

* stratum_protocol_handler_config: use NESTED_*_ENTRY in dtor

* stratum_protocol_handler: use NESTED_*_ENTRY in dtor

* lmdb_db_backend: use NESTED_*_ENTRY in dtor

* epee: abstract_tcp_server2: resolve 4 CIDs (UNCAUGHT_EXCEPT)

CID: 210088
CID: 210106
CID: 210164
CID: 210179

The potential to throw exists within various paths, including any
paths involving the logger (including CATCH_ENTRY_*).

* db_abstract_accessor: use NESTED_*_ENTRY in dtor

* miniupnp_helper: use NESTED_*_ENTRY in dtor

* epee: misc_log_ex: use NESTED_*_ENTRY in log_frame dtor

* epee: levin_protocol_handler_async: use NESTED_*_ENTRY in dtors

* epee: net_helper: use NESTED_*_ENTRY in dtor

* epee: profile_tools: use NESTED_*_ENTRY in dtors

* epee: misc_language: use NESTED_*_ENTRY in dtor

* epee: syncobj: use NESTED_*_ENTRY in dtor

* zano: license contact w/ zano.org email instead of sekreta.org email
2019-05-20 11:32:36 +02:00
0x914409F1
1c9ae19ec4 epee: portable_storage_base: implement array_entry_t copyctor (#25)
"Manually initialize the array_entry_t iterator to ensure it points
to the correct m_array, thereby preventing a potential use-after-free
situation."

Credit to Guido Vranken: https://hackerone.com/reports/511317
2019-05-19 03:09:31 +02:00
cryptozoidberg
4db26f48a5
fixed latest boost compatibility 2019-05-18 19:41:17 +02:00
sowle
02576ab740 minor operator<< refactoring & related stuff 2019-05-01 16:03:12 +02:00
sowle
6702b53662 Merge branch 'master' into offsig 2019-04-23 02:07:41 +03:00
sowle
408fab65a4 dump as json now supports different line endings + fixed logging for main_window 2019-04-23 02:03:09 +03:00
crypro.zoidberg
f408f93344 be sure that connection is closed on sentque overflow 2019-04-22 18:43:48 +02:00
sowle
d51664e5dc Merge branch 'master' into offsig
# Conflicts:
#	tests/unit_tests/epee_levin_protocol_handler_async.cpp
2019-04-19 15:46:53 +03:00
crypro.zoidberg
d846d26bf4 more preformance logs 2019-04-18 02:45:53 +02:00