1
0
Fork 0
forked from lthn/blockchain
Commit graph

540 commits

Author SHA1 Message Date
cryptozoidberg
db53de3ab3
added clangformat file 2019-05-21 14:56:30 +02:00
0x914409F1
cca48ed718 contrib: update LMDB to 0.9.23, use submodule (#27)
Note: previous LMDB (0.9.18) is over 3 years old now.

Here is the changelog from 0.9.18 until now:

```
LMDB 0.9 Change Log

LMDB 0.9.23 Release (2018/12/19)
        ITS#8756 Fix loose pages in dirty list
        ITS#8831 Fix mdb_load flag init
        ITS#8844 Fix mdb_env_close in forked process
        Documentation
                ITS#8857 mdb_cursor_del doesn't invalidate cursor
                ITS#8908 GET_MULTIPLE etc don't change passed in key

LMDB 0.9.22 Release (2018/03/22)
        Fix MDB_DUPSORT alignment bug (ITS#8819)
        Fix regression with new db from 0.9.19 (ITS#8760)
        Fix liblmdb to build on Solaris (ITS#8612)
        Fix delete behavior with DUPSORT DB (ITS#8622)
        Fix mdb_cursor_get/mdb_cursor_del behavior (ITS#8722)

LMDB 0.9.21 Release (2017/06/01)
        Fix xcursor after cursor_del (ITS#8622)

LMDB 0.9.20 (Withdrawn)
        Fix mdb_load with escaped plaintext (ITS#8558)
        Fix mdb_cursor_last / mdb_put interaction (ITS#8557)

LMDB 0.9.19 Release (2016/12/28)
        Fix mdb_env_cwalk cursor init (ITS#8424)
        Fix robust mutexes on Solaris 10/11 (ITS#8339)
        Tweak Win32 error message buffer
        Fix MDB_GET_BOTH on non-dup record (ITS#8393)
        Optimize mdb_drop
        Fix xcursors after mdb_cursor_del (ITS#8406)
        Fix MDB_NEXT_DUP after mdb_cursor_del (ITS#8412)
        Fix mdb_cursor_put resetting C_EOF (ITS#8489)
        Fix mdb_env_copyfd2 to return EPIPE on SIGPIPE (ITS#8504)
        Fix mdb_env_copy with empty DB (ITS#8209)
        Fix behaviors with fork (ITS#8505)
        Fix mdb_dbi_open with mainDB cursors (ITS#8542)
        Fix robust mutexes on kFreeBSD (ITS#8554)
        Fix utf8_to_utf16 error checks (ITS#7992)
        Fix F_NOCACHE on MacOS, error is non-fatal (ITS#7682)
        Build
                Make shared lib suffix overridable (ITS#8481)
        Documentation
                Cleanup doxygen nits
                Note reserved vs actual mem/disk usage

LMDB 0.9.18 Release (2016/02/05)
        Fix robust mutex detection on glibc 2.10-11 (ITS#8330)
        Fix page_search_root assert on FreeDB (ITS#8336)
        Fix MDB_APPENDDUP vs. rewrite(single item) (ITS#8334)
        Fix mdb_copy of large files on Windows
        Fix subcursor move after delete (ITS#8355)
        Fix mdb_midl_shirnk off-by-one (ITS#8363)
        Check for utf8_to_utf16 failures (ITS#7992)
        Catch strdup failure in mdb_dbi_open
        Build
                Additional makefile var tweaks (ITS#8169)
        Documentation
                Add Getting Started page
                Update WRITEMAP description
```
2019-05-20 11:32:58 +02: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
55d169c926 daemon: implement CLI option to disable UPnP (#26)
Enhances local network privacy by disabling UPnP (discovery (SSDP),
etc.), and also speeds up the daemon on startup if UPnP is not needed.

In other words, allows the option to completely disable the use of UPnP.
2019-05-19 03:24:41 +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
cryptozoidberg
7b544f059b
removed PoS from diffictulty func on develop branch 2019-05-18 16:13:10 +02:00
cryptozoidberg
4b3cad52d2
added gpg key 2019-05-17 15:25:47 +02:00
cryptozoidberg
bee05a126e
removed unlock_time parameter for safity reasons 2019-05-17 15:24:52 +02:00
cryptozoidberg
544c1f67a0
Merge branch 'master' into develop 2019-05-17 14:49:44 +02:00
cryptozoidberg
9bf3558a41
Merge branch 'master' of github.com:hyle-team/zano 2019-05-17 14:49:25 +02:00
cryptozoidberg
8b04026d20
Merge branch 'develop' of github.com:hyle-team/zano into develop 2019-05-17 14:48:54 +02:00
wildkif
2603cf5080 Merge remote-tracking branch 'origin/frontend' into develop 2019-05-16 19:21:02 +03:00
wildkif
a31178a4db Merge remote-tracking branch 'origin/develop' into frontend 2019-05-16 19:20:28 +03:00
wildkif
18e9205283 update and wrong time notifications 2019-05-16 18:55:01 +03:00
crypro.zoidberg
8941ce100b Merge branch 'frontend' into develop 2019-05-15 20:25:40 +02:00
crypro.zoidberg
11900a2f3d Merge branch 'master' into develop 2019-05-15 20:25:07 +02:00
crypro.zoidberg
2320fe5099 added more stat in wallet logs 2019-05-15 20:24:54 +02:00
sowle
cc506d6a20 conn_tool: gcc warnings fixed 2019-05-15 19:10:51 +02:00
crypro.zoidberg
c0f7a2cf46 fixed typo 2019-05-14 20:03:51 +02:00
crypro.zoidberg
d4071a1662 Merge branch 'master' of github.com:hyle-team/zano 2019-05-14 20:00:16 +02:00
sowle
19c52a8344 conn_tool minor improvement 2019-05-14 19:01:45 +02:00
crypro.zoidberg
d9a8825690 Merge branch 'master' of github.com:hyle-team/zano 2019-05-14 05:28:36 +02:00
cr.zoidberg
cbfa1612b7 removed unused code 2019-05-14 04:25:14 +02:00
wildkif
1da6c5868c get rate zano from markets 2019-05-13 23:36:46 +03:00
wildkif
e43b4c84f2 Merge branch 'master' into frontend 2019-05-13 21:36:33 +03:00
sowle
eebda00e27 === build number: 28 -> 29 === 2019-05-11 00:28:58 +03:00
crypro.zoidberg
104c611400 Merge branch 'debug' 2019-05-10 23:27:56 +02:00
crypro.zoidberg
22ba650e4f prevalidate_relayed removed from log 2019-05-10 21:55:55 +02:00
crypro.zoidberg
e8e6c83fa8 attempt to fix broken PoS relay 2019-05-10 21:48:29 +02:00
crypro.zoidberg
67e900ec15 added extra check for unlock time 2019-05-09 21:37:30 +02:00
sowle
929e7e6521 munin: minor fix for sequence factor graph 2019-05-09 17:14:39 +02:00
sowle
fce3e24d47 === build number: 27 -> 28 === 2019-05-09 15:28:14 +03:00
crypro.zoidberg
fdc339ff8c Merge branch 'nocache' 2019-05-09 14:27:47 +02:00
crypro.zoidberg
c1d15aeabe enabled db cache 2019-05-09 14:27:28 +02:00
crypro.zoidberg
cdbe023198 dropped blockchain in case it broken 2019-05-09 13:44:14 +02:00
crypro.zoidberg
7c5b7b8bcb fixed bug with cache sync 2019-05-09 13:43:04 +02:00
crypro.zoidberg
53c1a45665 disabled cache for db 2019-05-09 12:37:17 +02:00
crypro.zoidberg
d5f5db199d updated alerts json 2019-05-09 12:35:20 +02:00
crypro.zoidberg
07639f46d5 Merge branch 'master' of github.com:hyle-team/zano 2019-05-09 02:12:26 +02:00
sowle
52dc0b498d === build number: 26 -> 27 === 2019-05-09 02:53:33 +03:00
crypro.zoidberg
0674ea51fe fixed alerts and fixed resync after daemon restart 2019-05-09 01:52:48 +02:00
crypro.zoidberg
31f3a89aeb removed ugly debug code 2019-05-09 00:35:56 +02:00
sowle
3482a82c2e === build number: 25 -> 26 === 2019-05-09 01:19:48 +03:00
crypro.zoidberg
c2f45ab000 disabled target cache 2019-05-09 00:19:13 +02:00
wildkif
89b1025449 Merge branch 'frontend' 2019-05-08 22:19:25 +03:00
wildkif
ecd2ca411c Merge branch 'master' into frontend
# Conflicts:
#	src/gui/qt-daemon/html/assets/i18n/en.json
2019-05-08 22:12:32 +03:00
sowle
0698e15d20 === build number: 24 -> 25 === 2019-05-08 22:02:38 +03:00
crypro.zoidberg
a2ffe1b9f6 Merge branch 'develop' 2019-05-08 21:00:33 +02:00
crypro.zoidberg
8d197e55f3 Main net launch 2019-05-08 20:59:47 +02:00