Apply new difficulty algo, remove configurable cuckoo size

Integrate the new difficulty calculation into the block chain
validation, the miner and tests. As the difficulty calculation
doesn't use varying Cuckoo sizes anymore and we narrowed down
reasonable final Cuckoo Cycle parameters, removed all Cuckoo
Cycle sizes from block headers.

Formalized easier Cuckoo Cycle sizes for testing (and possibly
testnet) by introducing a test mode in configuration. Updated
all tests.
This commit is contained in:
Ignotus Peverell
2017-06-19 08:59:56 -07:00
parent 163b1133a7
commit e8a6b61100
14 changed files with 166 additions and 138 deletions
+1 -1
View File
@@ -282,7 +282,7 @@ fn read_config() -> grin::ServerConfig {
fn default_config() -> grin::ServerConfig {
grin::ServerConfig {
cuckoo_size: 12,
test_mode: true,
seeding_type: grin::Seeding::WebStatic,
..Default::default()
}