Sandbox: deactivate the minimal stamp of proof of work for bakers
This commit is contained in:
parent
745aabcd22
commit
5f69ae87d2
@ -14,5 +14,6 @@
|
|||||||
"blocks_per_cycle" : 128,
|
"blocks_per_cycle" : 128,
|
||||||
"blocks_per_roll_snapshot" : 32,
|
"blocks_per_roll_snapshot" : 32,
|
||||||
"preserved_cycles" : 1,
|
"preserved_cycles" : 1,
|
||||||
"first_free_baking_slot" : 4
|
"first_free_baking_slot" : 4,
|
||||||
|
"proof_of_work_threshold": -1
|
||||||
}
|
}
|
||||||
|
@ -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
|
$client bake for bootstrap1 -max-priority 512
|
||||||
|
sleep 1
|
||||||
|
|
||||||
key1=foo
|
key1=foo
|
||||||
key2=bar
|
key2=bar
|
||||||
|
@ -13,5 +13,6 @@
|
|||||||
"blocks_per_roll_snapshot" : 2,
|
"blocks_per_roll_snapshot" : 2,
|
||||||
"preserved_cycles" : 1,
|
"preserved_cycles" : 1,
|
||||||
"first_free_baking_slot" : 4,
|
"first_free_baking_slot" : 4,
|
||||||
"blocks_per_voting_period": 2
|
"blocks_per_voting_period": 2,
|
||||||
|
"proof_of_work_threshold": -1
|
||||||
}
|
}
|
||||||
|
@ -12,5 +12,6 @@
|
|||||||
"blocks_per_cycle" : 4,
|
"blocks_per_cycle" : 4,
|
||||||
"blocks_per_roll_snapshot" : 2,
|
"blocks_per_roll_snapshot" : 2,
|
||||||
"preserved_cycles" : 1,
|
"preserved_cycles" : 1,
|
||||||
"first_free_baking_slot" : 4
|
"first_free_baking_slot" : 4,
|
||||||
|
"proof_of_work_threshold": -1
|
||||||
}
|
}
|
||||||
|
@ -249,7 +249,7 @@ let first_endorsement_slots
|
|||||||
let check_hash hash stamp_threshold =
|
let check_hash hash stamp_threshold =
|
||||||
let bytes = Block_hash.to_bytes hash in
|
let bytes = Block_hash.to_bytes hash in
|
||||||
let word = MBytes.get_int64 bytes 0 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 check_header_hash header stamp_threshold =
|
||||||
let hash = Block_header.hash header in
|
let hash = Block_header.hash header in
|
||||||
|
Loading…
Reference in New Issue
Block a user