Feature/upgrade rewarding sandbox (#1167)

* Add init_epoch msg

* Use 64BE ctr variant

* Remove query_all_delegations

* Comment migration
This commit is contained in:
Drazen Urch
2022-03-25 10:57:49 +01:00
committed by GitHub
parent 13841e813b
commit 59056a22c5
10 changed files with 25 additions and 228 deletions
@@ -295,6 +295,9 @@ impl PacketPreparer {
let rand_l3 = l3.choose_multiple(&mut rng, n).collect::<Vec<_>>();
let rand_gateways = gateways.choose_multiple(&mut rng, n).collect::<Vec<_>>();
// let rand_gateways = gateways.iter().filter(|g| g.gateway.host == "109.74.196.254".to_string()).collect::<Vec<_>>();
// let rand_gateways = gateways.iter().filter(|g| g.gateway.host == "185.3.94.33".to_string()).collect::<Vec<_>>();
// the unwrap on `min()` is fine as we know the iterator is not empty
let most_available = *[
rand_l1.len(),