Commit Graph

55 Commits

Author SHA1 Message Date
Revertron 47c398118a Optimized new block processing. Added quick-ban for those, who send wrong blocks. 2021-04-17 01:51:14 +02:00
Revertron 6a1aa6c0d5 Reworked p2p code, optimized a lot. 2021-04-16 16:53:31 +02:00
Revertron 9d51912733 Fixed #45, ability to work with old keys and domains. 2021-04-15 22:19:45 +02:00
Revertron 5994622f59 Fixed resolve of SOA records #40. 2021-04-15 12:33:47 +02:00
Revertron 9b093a8172 Implemented presentation and editing for domains. 2021-04-15 12:21:41 +02:00
Revertron 6c3135d1e3 Updated consensus code. 2021-04-14 14:09:41 +02:00
Revertron aef30818be Changed some logging. 2021-04-13 23:19:47 +02:00
Revertron 536515519a Refactored the work with signing blocks. 2021-04-13 18:49:26 +02:00
Revertron ee9b73b190 Fixed negative DNS responses. 2021-04-13 18:46:48 +02:00
Revertron ae77ee6780 Removed check_db() as not needed now. Maybe we will need it sometimes. 2021-04-11 17:52:54 +02:00
Revertron 92209689d6 Fixed parsing of DomainData, many other fixes. 2021-04-11 17:50:55 +02:00
Revertron f671de3746 Added some checks for "Yggdrasil only" zones. 2021-04-10 20:02:51 +02:00
Revertron 3900790f03 Returned low thread priorty as it seems after thorough tests that there is an impact afterall. But this functionality is now controlled by option 'mining.lower'. 2021-04-10 14:03:52 +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 9afedb50ed Changed log levels to make alfis less chatty. 2021-04-03 23:27:36 +02:00
Revertron 6dae3e41c0 Changed log levels to make alfis less chatty. 2021-04-03 18:29:41 +02:00
Revertron fba9a976ea Fixed duplicate zone names in GUI. 2021-04-03 12:07:44 +02:00
Revertron e1d0df33d5 Fixed resolve of CNAME records. 2021-04-02 03:24:53 +02:00
Revertron a4ecb1f0f7 Very important DNS resolver fix. 2021-03-30 20:50:20 +02:00
Revertron 7e742c1553 Fixed DNS answers for provided zones. 2021-03-30 19:10:26 +02:00
Revertron 4e0b0b3d1c Added mining threads count option. 2021-03-29 11:10:48 +02:00
Revertron fd6edce6b5 Remastered domain mining interface! 2021-03-26 18:22:43 +01:00
Revertron ffd03aa62e Updated Bulma CSS. Remastered whole GUI. 2021-03-24 19:06:22 +01:00
Revertron 4ddacd2f57 Tuned up difficulty constant for comfortable use with new algo.
Mined new origin block to start over test network.
2021-03-22 22:57:54 +01:00
Revertron c5204aaed1 Refactored a lot of cryptography. Moved from "rust-crypto" to https://github.com/RustCrypto 2021-03-22 19:20:51 +01:00
Revertron 0b5f5d0793 Implemented purging old disconnected peers. 2021-03-21 01:31:33 +01:00
Revertron dcf5bb72b0 Eliminated connection loops.
Optimized network processes.
Removed some unnecessary logging.
Fixed status bar info inconsistency.
2021-03-21 00:19:09 +01:00
Revertron 7e24383894 Major GUI refactoring. 2021-03-18 00:16:17 +01:00
Revertron 278f7a8c34 Fixed an important TODO. 2021-03-17 18:35:02 +01:00
Revertron d3d67b6d0e Small optimization. 2021-03-17 16:53:59 +01:00
Revertron 1d9833db0f Implemented right way to constrain zone difficulty. 2021-03-17 14:55:05 +01:00
Revertron d8ac1e3c32 Fixed wait for signing mode in miner. 2021-03-17 10:22:34 +01:00
Revertron c7e845af05 Made it possible to run ALFIS without settings file. It will be created if not found. 2021-03-16 14:00:14 +01:00
Revertron 394463ef15 Added more restriction for blocks and zone names. 2021-03-16 12:24:31 +01:00
Revertron 809256b955 Added more restriction by public key. Added alternative zones to restrictions. 2021-03-13 21:04:40 +01:00
Revertron b39f5fa7f0 Added restriction by public key, made some refactoring. 2021-03-12 01:36:54 +01:00
Revertron 5d57473122 Major refactoring. Changed mining algorithm to Blakeout. Changed keypair mining algorithm. 2021-03-10 22:21:50 +01:00
Revertron 5c2373b40d Small changes. 2021-03-08 10:41:22 +01:00
Revertron aa32599092 Added some more checks for block properties, moved them around. 2021-03-07 22:13:06 +01:00
Revertron 9718fa8a81 Tuned some constants adn options. 2021-03-07 17:47:33 +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 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