Commit Graph

15 Commits

Author SHA1 Message Date
Revertron b0e78edb3d Changed origin block index to 1. Added "locker" blocks - mining, exchange etc. Removed unnecesarry creation of 'zones' directory on startup. Changed bind port of DNS-UDP socket to random (fixes inability to start several copies of Alfis). Sped up block exchange by sending additional pings when we have more blocks than other peers. Fixed unnecesarry double requests of blocks. Totally reworked block checking on arrival. Added target tags for logging in main. Added a commandline flag to list all blocks in DB and exit. 2021-03-06 21:28:06 +01:00
Revertron 59df68d7c7 Added hash of last block to Ping/Pong messages. 2021-03-02 19:35:12 +01:00
Revertron 92ebefce91 Changed and refactored block and transaction structures. Moved signature from transaction scope to block. 2021-03-02 18:11:17 +01:00
Revertron e53245315f Implemented status bar with some status information: sync process, connected nodes and blockchain height. 2021-02-27 18:57:15 +01:00
Revertron 46c49fe4c9 Fixed filtering of existing zones in blockchain. 2021-02-26 21:00:08 +01:00
Revertron 803b70fc25 Speedup initial blockchain receiving. 2021-02-22 12:49:36 +01:00
Revertron 193275da7f Implemented rotating DNS upstreams from config. Fixed warnings. 2021-02-21 21:56:56 +01:00
Revertron 38feb11cff Fixed DNS-records search. 2021-02-21 12:29:09 +01:00
Revertron 483be5215a Improved peer reconnection code. 2021-02-20 21:36:58 +01:00
Revertron 93d688c479 Added a decent logging. 2021-02-20 16:28:10 +01:00
Revertron d135204af7 Implemented DNS on blockchain. Beautified a lot of code, fixed some things. 2021-02-19 16:41:43 +01:00
Revertron 4c4493f797 Fixed block exchange and server reconnection. 2021-02-15 00:29:30 +01:00
Revertron abb2455d1c Implemented block adding check. Cleared many warnings, cleaned code. 2021-02-14 18:20:30 +01:00
Revertron 1331f44b0e Refactored block and transaction structure. Introduced a 'confirmation' entity to avoid block interceptions (at least make them pointless). 2021-02-13 23:37:44 +01:00
Revertron 9e7a1b8834 Implemented P2P network protocol. Refactored project structure. 2021-02-05 22:24:28 +01:00