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.
This commit is contained in:
Revertron
2021-04-26 21:49:01 +02:00
parent 5677b860e4
commit fcb920e0de
10 changed files with 142 additions and 123 deletions
+1
View File
@@ -32,6 +32,7 @@ pub const DOMAIN_LIFETIME: i64 = 86400 * 365; // One year
pub const ZONE_MAX_LENGTH: usize = 10;
pub const MAX_RECONNECTS: u32 = 5;
pub const DB_NAME: &str = "blockchain.db";
pub const CLASS_ZONE: &str = "zone";
pub const CLASS_DOMAIN: &str = "domain";
pub const ALFIS_DEBUG: &str = "ALFIS_DEBUG";