Commit Graph

59 Commits

Author SHA1 Message Date
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 9949d13e62 First commit of 0.5.* branch. 2021-05-02 12:55:51 +02:00
Revertron fcb920e0de Refactored Chain a lot to make it possible to test.
Added a CPU hard test for Chain, checking all current DB.
Added an option to config file to set a count of checked top blocks on start.
2021-04-26 21:49:01 +02:00
Revertron 04491e8558 Added environment variable ALFIS_DEBUG to set ALFIS to always run in debug mode. 2021-04-21 17:05:07 +02:00
Revertron edec631c39 Fixed database truncation. 2021-04-21 14:38:37 +02:00
Revertron 5c1c0630a6 Improved signing blocks operations. 2021-04-20 20:54:45 +02:00
Revertron 75125b971b Changed command flag -v to show version and exit. Selection of other log levels will be possible in config in the future. 2021-04-17 20:37:20 +02:00
Revertron f16a95f51e Added new option -l to write log messages to file. Changed old -l flag to -b. 2021-04-17 16:45:49 +02:00
Revertron c2712a1e3a Added an option to change working directory on start. Use '-w' flag. 2021-04-16 23:12:06 +02:00
Revertron 9b093a8172 Implemented presentation and editing for domains. 2021-04-15 12:21:41 +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 cde1ccb6f7 Added a profound error message in case DNS servers could not bind. 2021-04-03 21:09:55 +02:00
Revertron 7edc425bc6 Added commandline flags to genenerate and upgrade config files. 2021-04-03 14:57:56 +02:00
Revertron cb8b207f34 Fixed a warning. 2021-03-29 14:58:35 +02:00
Revertron f5949e6ec0 Reworked handling appropriate (mined) keys absence. Now that info handled in UI as well. It won't allow users without keys to mine domains or zones. 2021-03-23 18:55:11 +01:00
Revertron 046c06beeb First signed block number changed to 35 to be able to get more signers.
Refactored cloning of Arcs.
2021-03-23 11:41:50 +01:00
Revertron 0b5f5d0793 Implemented purging old disconnected peers. 2021-03-21 01:31:33 +01:00
Revertron fdc5b8f233 Added app_version to handshake. 2021-03-21 00:48:32 +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 57da059379 Fixed GUI/NoGUI logic in builds. 2021-03-19 15:20:18 +01:00
Revertron 8a19d02b1a Added features to control building with or without GUI, or use Edge engine on Windows. 2021-03-19 11:37:49 +01:00
Revertron 863854790f Updated WebView version, added support for Edge engine on Windows, fixed some HTML. 2021-03-18 15:09:26 +01:00
Revertron 1d9833db0f Implemented right way to constrain zone difficulty. 2021-03-17 14:55:05 +01:00
Revertron 96ec25c0d0 Added a decent reaction to a new block in chain in mining process. 2021-03-16 18:16:31 +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 5d57473122 Major refactoring. Changed mining algorithm to Blakeout. Changed keypair mining algorithm. 2021-03-10 22:21:50 +01:00
Revertron dddc540484 Fixed MacOS build. 2021-03-07 00:17:03 +01:00
Revertron ce212ab749 Changed format of DNS-listen options. Added DNS-thread count options to config. 2021-03-06 22:54:17 +01:00
Revertron ac915a1e92 Changed settings format file from JSON to Toml. 2021-03-06 22:40:19 +01:00
Revertron c5d20d2e00 Made all mining threads low-priority. 2021-03-06 21:56:54 +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 1045777ee5 Finished the work on status bar. All status information is in sync now. 2021-02-28 22:17:03 +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 f48f198c96 Implemented setting bind-host for DNS-resolver, fix. 2021-02-22 22:03:56 +01:00
Revertron d7911dfe04 Implemented mining zone screen. Added a lot of user input checks. 2021-02-22 21:45:32 +01:00
Revertron df19021c62 Fixed high CPU usage, duplicate peers from exchange and tab change code. 2021-02-22 14:55:23 +01:00
Revertron ecb58b9984 Fixed config path option. 2021-02-22 10:11:22 +01:00
Revertron 193275da7f Implemented rotating DNS upstreams from config. Fixed warnings. 2021-02-21 21:56:56 +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 2bea778e0f Fixed running with console on Windows when compiled as GUI app. 2021-02-19 22:04:58 +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 b4ae51088d Suppressed console errors from webview.
Fixes: https://github.com/Revertron/Alfis/issues/1
2021-02-17 14:54:55 +01:00
Revertron 1ec02381e8 Moved mining indicator to left-bottom corner, fixed mining canceling. 2021-02-17 13:06:24 +01:00
Revertron eddb4ffbce Fixed initial keystore display. 2021-02-16 15:14:29 +01:00
Revertron 364a969a53 Refactored key-management a lot. 2021-02-15 23:09:30 +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