From 674a2fd9750ceb16186bbcd24a4c02b7959c8249 Mon Sep 17 00:00:00 2001 From: echevrier Date: Tue, 7 Sep 2021 12:29:33 +0200 Subject: [PATCH 1/3] Unregister silent workers: update teerex-pallet --- runtime/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 132d609..940b6d7 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -254,7 +254,7 @@ parameter_types! { impl pallet_timestamp::Config for Runtime { /// A timestamp: milliseconds since the unix epoch. type Moment = Moment; - type OnTimestampSet = Aura; + type OnTimestampSet = (Aura, Teerex); type MinimumPeriod = MinimumPeriod; type WeightInfo = (); } @@ -296,6 +296,7 @@ impl pallet_sudo::Config for Runtime { parameter_types! { pub const MomentsPerDay: Moment = 86_400_000; // [ms/d] + pub const SilenceDuration: Moment =172_800_000; // 48h } /// added by SCS @@ -303,6 +304,7 @@ impl pallet_teerex::Config for Runtime { type Event = Event; type Currency = pallet_balances::Pallet; type MomentsPerDay = MomentsPerDay; + type SilenceDuration = SilenceDuration; // currently we have only benchmarks there for the integritee-parachain type WeightInfo = pallet_teerex::weights::IntegriteeWeight; } From 4271815f34b434e28c820a692827df2685c90288 Mon Sep 17 00:00:00 2001 From: echevrier Date: Tue, 7 Sep 2021 15:01:03 +0200 Subject: [PATCH 2/3] Unregister silent workers: update teerex-pallet --- runtime/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 940b6d7..1635be0 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -296,7 +296,7 @@ impl pallet_sudo::Config for Runtime { parameter_types! { pub const MomentsPerDay: Moment = 86_400_000; // [ms/d] - pub const SilenceDuration: Moment =172_800_000; // 48h + pub const MaxSilenceTime: Moment =172_800_000; // 48h } /// added by SCS @@ -304,7 +304,7 @@ impl pallet_teerex::Config for Runtime { type Event = Event; type Currency = pallet_balances::Pallet; type MomentsPerDay = MomentsPerDay; - type SilenceDuration = SilenceDuration; + type MaxSilenceTime = MaxSilenceTime; // currently we have only benchmarks there for the integritee-parachain type WeightInfo = pallet_teerex::weights::IntegriteeWeight; } From 9721023141c5e2ff50ebc4caae8f418f3a073a3d Mon Sep 17 00:00:00 2001 From: echevrier Date: Tue, 7 Sep 2021 17:31:21 +0200 Subject: [PATCH 3/3] manually set the compatible pallet-teerex version --- Cargo.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ccbef08..a76bd3f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2327,7 +2327,7 @@ dependencies = [ [[package]] name = "ias-verify" version = "0.1.4" -source = "git+https://github.com/integritee-network/pallet-teerex.git?branch=master#323b3fbb3f91234d5cc53abf594d5eec677eed67" +source = "git+https://github.com/integritee-network/pallet-teerex.git?branch=master#fab14a05744034c7a29fd6dc6f4437cb2272a7aa" dependencies = [ "base64 0.11.0", "chrono", @@ -3991,7 +3991,7 @@ dependencies = [ [[package]] name = "pallet-teerex" version = "0.9.0" -source = "git+https://github.com/integritee-network/pallet-teerex.git?branch=master#323b3fbb3f91234d5cc53abf594d5eec677eed67" +source = "git+https://github.com/integritee-network/pallet-teerex.git?branch=master#fab14a05744034c7a29fd6dc6f4437cb2272a7aa" dependencies = [ "frame-benchmarking", "frame-support",