Alpha: fix tests
This commit is contained in:
parent
0b31daeadc
commit
19d9ce1f64
@ -2,14 +2,15 @@
|
||||
"genesis_pubkey":
|
||||
"edpkuSLWfVU1Vq7Jg9FucPyKmma6otcMHac9zG4oU1KMHSTBpJuGQ2",
|
||||
"bootstrap_keys": [
|
||||
"edpkuBknW28nW72KG6RoHtYW7p12T6GKc7nAbwYX5m8Wd9sDVC9yav",
|
||||
"edpktzNbDAUjUk697W7gYg2CRuBQjyPxbEg8dLccYYwKSKvkPvjtV9",
|
||||
"edpkuTXkJDGcFd5nh6VvMz8phXxU3Bi7h6hqgywNFi1vZTfQNnS1RV",
|
||||
"edpkuFrRoDSEbJYgxRtLx2ps82UdaYc1WwfS9sE11yhauZt5DgCHbU",
|
||||
"edpkv8EUUH68jmo3f7Um5PezmfGrRF24gnfLpH3sVNwJnV5bVCxL2n"
|
||||
"edpkuBknW28nW72KG6RoHtYW7p12T6GKc7nAbwYX5m8Wd9sDVC9yav",
|
||||
"edpktzNbDAUjUk697W7gYg2CRuBQjyPxbEg8dLccYYwKSKvkPvjtV9",
|
||||
"edpkuTXkJDGcFd5nh6VvMz8phXxU3Bi7h6hqgywNFi1vZTfQNnS1RV",
|
||||
"edpkuFrRoDSEbJYgxRtLx2ps82UdaYc1WwfS9sE11yhauZt5DgCHbU",
|
||||
"edpkv8EUUH68jmo3f7Um5PezmfGrRF24gnfLpH3sVNwJnV5bVCxL2n"
|
||||
],
|
||||
"slot_durations" : [ 1, 0 ],
|
||||
"cycle_length" : 128,
|
||||
"block_per_roll_snapshot" : 32,
|
||||
"time_between_blocks" : [ 1, 0 ],
|
||||
"blocks_per_cycle" : 128,
|
||||
"blocks_per_roll_snapshot" : 32,
|
||||
"preserved_cycles" : 1,
|
||||
"first_free_baking_slot" : 4
|
||||
}
|
||||
|
@ -8,10 +8,10 @@
|
||||
"edpkuFrRoDSEbJYgxRtLx2ps82UdaYc1WwfS9sE11yhauZt5DgCHbU",
|
||||
"edpkv8EUUH68jmo3f7Um5PezmfGrRF24gnfLpH3sVNwJnV5bVCxL2n"
|
||||
],
|
||||
"slot_durations" : [ 1, 0 ],
|
||||
"cycle_length" : 4,
|
||||
"block_per_roll_snapshot" : 2,
|
||||
"voting_period_length" : 2,
|
||||
"time_before_reward" : 1,
|
||||
"first_free_baking_slot" : 4
|
||||
"time_between_blocks" : [ 1, 0 ],
|
||||
"blocks_per_cycle" : 4,
|
||||
"blocks_per_roll_snapshot" : 2,
|
||||
"preserved_cycles" : 1,
|
||||
"first_free_baking_slot" : 4,
|
||||
"blocks_per_voting_period": 2
|
||||
}
|
||||
|
@ -8,9 +8,9 @@
|
||||
"edpkuFrRoDSEbJYgxRtLx2ps82UdaYc1WwfS9sE11yhauZt5DgCHbU",
|
||||
"edpkv8EUUH68jmo3f7Um5PezmfGrRF24gnfLpH3sVNwJnV5bVCxL2n"
|
||||
],
|
||||
"slot_durations" : [ 1, 0 ],
|
||||
"cycle_length" : 4,
|
||||
"block_per_roll_snapshot" : 2,
|
||||
"time_before_reward" : 1,
|
||||
"time_between_blocks" : [ 1, 0 ],
|
||||
"blocks_per_cycle" : 4,
|
||||
"blocks_per_roll_snapshot" : 2,
|
||||
"preserved_cycles" : 1,
|
||||
"first_free_baking_slot" : 4
|
||||
}
|
||||
|
@ -92,7 +92,7 @@ let test_invalid_endorsement_slot contract block =
|
||||
Helpers.Endorse.endorse ~slot:16 contract block >>=? fun op ->
|
||||
Helpers.Baking.bake block contract [ op ] >>= fun res ->
|
||||
Assert.failed_to_preapply ~msg:__LOC__ ~op begin function
|
||||
| Baking.Invalid_endorsement_slot _ -> true
|
||||
| Operation.Invalid_signature -> true
|
||||
| _ -> false
|
||||
end res ;
|
||||
return ()
|
||||
@ -211,7 +211,7 @@ let run genesis =
|
||||
Assert.equal_bool ~msg:__LOC__ has_right_to_endorse true ;
|
||||
|
||||
Assert.balance_equal
|
||||
~block:block ~msg:__LOC__ b1 3_999_000_000_000L >>=? fun () ->
|
||||
~block:block ~msg:__LOC__ b1 3_999_488_000_000L >>=? fun () ->
|
||||
Assert.balance_equal
|
||||
~block:block ~msg:__LOC__ b2 4_000_000_000_000L >>=? fun () ->
|
||||
Assert.balance_equal
|
||||
|
Loading…
Reference in New Issue
Block a user