Tuned up difficulty constant for comfortable use with new algo.

Mined new origin block to start over test network.
This commit is contained in:
Revertron
2021-03-22 22:57:54 +01:00
parent c5204aaed1
commit 4ddacd2f57
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
# Settings # Settings
origin = "0000000D48E05DAB6B26C58094A2AF65563D1DB4EECAF18663B01CE77152E56B" origin = "00000102C2F9BFD2803284D93327F089D60FC72A06F19AF2384567F2646B8348"
key_file = "default.key" key_file = "default.key"
listen = "[::]:4244" listen = "[::]:4244"
public = false public = false
+1 -1
View File
@@ -60,4 +60,4 @@ pub fn hash_is_good(hash: &[u8], difficulty: usize) -> bool {
let hash_int = BigUint::from_bytes_be(&hash); let hash_int = BigUint::from_bytes_be(&hash);
return hash_int < target; return hash_int < target;
} }
+5 -5
View File
@@ -1,12 +1,12 @@
pub const CHAIN_VERSION: u32 = 2; pub const CHAIN_VERSION: u32 = 2;
pub const ZONE_DIFFICULTY: u32 = 26; pub const ZONE_DIFFICULTY: u32 = 22;
pub const BLOCK_DIFFICULTY: u32 = 24; pub const BLOCK_DIFFICULTY: u32 = 20;
pub const LOCKER_DIFFICULTY: u32 = 18; pub const LOCKER_DIFFICULTY: u32 = 14;
pub const KEYSTORE_DIFFICULTY: usize = 23; pub const KEYSTORE_DIFFICULTY: usize = 23;
pub const LOCKER_BLOCK_START: u64 = 12; pub const LOCKER_BLOCK_START: u64 = 16;
pub const LOCKER_BLOCK_LOCKERS: u64 = 6; pub const LOCKER_BLOCK_LOCKERS: u64 = 7;
pub const LOCKER_BLOCK_SIGNS: u64 = 4; pub const LOCKER_BLOCK_SIGNS: u64 = 4;
pub const LOCKER_BLOCK_TIME: i64 = 300; pub const LOCKER_BLOCK_TIME: i64 = 300;
pub const LOCKER_BLOCK_INTERVAL: u64 = 50; pub const LOCKER_BLOCK_INTERVAL: u64 = 50;