Sandbox: deactivate the minimal stamp of proof of work for bakers

This commit is contained in:
Grégoire Henry 2018-04-06 13:33:23 +02:00
parent 745aabcd22
commit 5f69ae87d2
5 changed files with 8 additions and 4 deletions

View File

@ -14,5 +14,6 @@
"blocks_per_cycle" : 128,
"blocks_per_roll_snapshot" : 32,
"preserved_cycles" : 1,
"first_free_baking_slot" : 4
"first_free_baking_slot" : 4,
"proof_of_work_threshold": -1
}

View File

@ -21,6 +21,7 @@ $client rpc call '/blocks/head/raw_context/non-existent?depth=0' | assert 'No se
$client bake for bootstrap1 -max-priority 512
sleep 1
key1=foo
key2=bar

View File

@ -13,5 +13,6 @@
"blocks_per_roll_snapshot" : 2,
"preserved_cycles" : 1,
"first_free_baking_slot" : 4,
"blocks_per_voting_period": 2
"blocks_per_voting_period": 2,
"proof_of_work_threshold": -1
}

View File

@ -12,5 +12,6 @@
"blocks_per_cycle" : 4,
"blocks_per_roll_snapshot" : 2,
"preserved_cycles" : 1,
"first_free_baking_slot" : 4
"first_free_baking_slot" : 4,
"proof_of_work_threshold": -1
}

View File

@ -249,7 +249,7 @@ let first_endorsement_slots
let check_hash hash stamp_threshold =
let bytes = Block_hash.to_bytes hash in
let word = MBytes.get_int64 bytes 0 in
Compare.Uint64.(word < stamp_threshold)
Compare.Uint64.(word <= stamp_threshold)
let check_header_hash header stamp_threshold =
let hash = Block_header.hash header in