Commit Graph

31 Commits

Author SHA1 Message Date
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 a9f2193fce Implemented resolve of PTR records. 2021-05-16 16:05:22 +02:00
Revertron 92222dd51b Refactored event bus to lazy_static. 2021-05-10 00:49:01 +02:00
Revertron f9c1bf1679 Added some tests and text in readme. 2021-05-09 16:58:14 +02:00
Revertron fe92983945 Added record constraints. 2021-05-05 09:11:23 +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 c3576d62d8 Removed old constants. 2021-05-02 20:46:27 +02:00
Revertron 64f5f1027b Removed all external zones. 2021-05-02 16:02:14 +02:00
Revertron 9949d13e62 First commit of 0.5.* branch. 2021-05-02 12:55:51 +02:00
Revertron f5423f8463 Added Limited Confidence to work with forks. 2021-04-30 12:27:24 +02:00
Revertron 5afd9906b3 Added a failsafe mechanism, that will restart all swarm connections if network is stale. 2021-04-26 23:18:00 +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 6c5e374408 Fixes for previous release. 2021-04-24 23:32:08 +02:00
Revertron c0e49bbab5 Optimized p2p connections a bit. 2021-04-24 19:02:24 +02:00
Revertron 640e2a0619 Fixed ping processing.
Changed the limit of active connections from 10 to 15.
2021-04-23 21:22:22 +02:00
Revertron 520f485899 Optimized p2p connections.
Added a limit for 10 active connections to save bandwidth and CPU.
2021-04-23 13:20:26 +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 04ef49764a Optimized signing blocks scheduler. 2021-04-19 21:19:00 +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 6c3135d1e3 Updated consensus code. 2021-04-14 14:09:41 +02:00
Revertron 536515519a Refactored the work with signing blocks. 2021-04-13 18:49:26 +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 e806cf5612 Added config option to ignore all nodes except from Yggdrasil. 2021-03-31 16:50:22 +02: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 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 0d719324a9 Removed setting mining threads priority, as it seems that it has no effect.
Changed monitoring for chain changes in miner to support MIPS architecture (needs testing).
2021-03-21 14:34:32 +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