Commit Graph

16 Commits

Author SHA1 Message Date
Revertron 797584c516 Fixed multiple clippy warnings. 2021-12-25 18:40:36 +01:00
Revertron d513c29cfe Code reformatting. 2021-06-09 20:36:36 +02:00
Revertron 319051edbd Implemented P2P traffic encryption.
Changed serialization format of P2P messages.
Refactored P2P network code.
2021-05-30 00:33:13 +02:00
Revertron bc6d2fbae3 Added second keypair for encryption of domain names.
Changed keys file format to include second pair of keys, it will be in TOML now.
Made many adjustments to block and transaction structures.
Changed block serialization to binary format for hashing/mining.
Removed old build dependencies.
2021-05-04 16:47:03 +02:00
Revertron fab62bdfc8 Changed serialization of block to binary format. 2021-05-03 08:42:21 +02:00
Revertron 6d4dfb282f Added additional material for consensus. 2021-04-29 19:27:45 +02:00
Revertron 0d944ca1dc Fixed a problem with allowed mining while waiting for signers.
Sped up initial blocks downloading.
Changed block consensus a bit.
2021-04-23 01:09:38 +02:00
Revertron dee53887cb Added more block supremacy checks. 2021-04-22 16:31:42 +02:00
Revertron a74a0733ac Changed identity format in transactions, now it will be double Sha256.
Added new checks for forked blocks.
Added options table.
Added posibility to replace blocks in DB by more appropriate forks.
Divided transactions table to domains and zones tables.
Added a timestamp to domains and zones table, it will give us possibility to purge old domains.
Changed difficulty check to check head and tail (sum of them) of the hash.
Added encrypted (by Chacha20) domain name to DomainData, added contacts and owners vectors for it too.
Added yggdrasil flag to ZoneData - it will restrict all IPs for domains in particular zone to Yggdrasil only.
Changed difficulties of various block types.
Added a temporary (for a run) unique ID to all handshakes.
Start of signing blocks mining will be after 60 seconds after full block.
Added mining status to statusbar.
2021-04-10 09:47:21 +02:00
Revertron 1d9833db0f Implemented right way to constrain zone difficulty. 2021-03-17 14:55:05 +01:00
Revertron 5d57473122 Major refactoring. Changed mining algorithm to Blakeout. Changed keypair mining algorithm. 2021-03-10 22:21:50 +01:00
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 92ebefce91 Changed and refactored block and transaction structures. Moved signature from transaction scope to block. 2021-03-02 18:11:17 +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