Logo
Explore Help
Sign In
Sweetbread/Alfis
1
0
Fork 0
You've already forked Alfis
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
b39f5fa7f05d36a3c57fcc0cd522383af9f6501d
Alfis/src/blockchain/constants.rs
T

10 lines
279 B
Rust
Raw Normal View History

Major refactoring. Changed mining algorithm to Blakeout. Changed keypair mining algorithm.
2021-03-10 22:21:50 +01:00
pub const CHAIN_VERSION: u32 = 1;
Tuned some constants adn options.
2021-03-07 17:47:33 +01:00
pub const BLOCK_DIFFICULTY: u32 = 24;
pub const LOCKER_DIFFICULTY: u32 = 18;
Major refactoring. Changed mining algorithm to Blakeout. Changed keypair mining algorithm.
2021-03-10 22:21:50 +01:00
pub const KEYSTORE_DIFFICULTY: usize = 25;
Tuned some constants adn options.
2021-03-07 17:47:33 +01:00
pub const LOCKER_BLOCK_START: u64 = 10;
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
pub const LOCKER_BLOCK_COUNT: u64 = 3;
pub const LOCKER_BLOCK_INTERVAL: i64 = 300;
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.26.4 Page: 19ms Template: 2ms
catppuccin-macchiato-green
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API