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
5c2373b40d6a734e994fadc2c2555cfa7cee80ff
Alfis/src/blockchain/constants.rs
T

7 lines
234 B
Rust
Raw Normal View History

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;
Changed and refactored block and transaction structures. Moved signature from transaction scope to block.
2021-03-02 18:11:17 +01:00
pub const CHAIN_VERSION: u32 = 1;
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: 18ms 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