Skip to content

Commit cc9176e

Browse files
committed
cleanup
1 parent 2eb2245 commit cc9176e

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

demo/runtime/src/test_helper_pallet.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -64,18 +64,6 @@ pub mod pallet {
6464
}
6565
}
6666

67-
impl<T: Config> Pallet<T> {
68-
pub fn should_release_participation_data(
69-
slot: sidechain_slots::Slot,
70-
) -> Option<sidechain_slots::Slot> {
71-
if (*slot).is_multiple_of(ParticipationDataReleasePeriod::<T>::get()) {
72-
Some(slot)
73-
} else {
74-
None
75-
}
76-
}
77-
}
78-
7967
impl<T: Config> sp_sidechain::OnNewEpoch for Pallet<T> {
8068
fn on_new_epoch(
8169
_old_epoch: ScEpochNumber,

e2e-tests/tests/delegator_rewards/test_block_production_log.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,8 @@ def test_block_production_log_pallet(api: BlockchainApi, config: ApiConfig):
1515
f"(blocks {block_range})"
1616
)
1717
block_production_log.reverse()
18-
for timestamp, block_producer_id in block_production_log:
19-
timestamp_from_storage = api.get_block_timestamp(block)
20-
assert (timestamp == timestamp_from_storage), "Incorrect timestamp in block production log"
21-
18+
for slot, block_producer_id in block_production_log:
2219
committee = api.get_validator_set(block)
23-
slot = api.get_block_slot(block)
2420

2521
author_aura_key = committee[slot % len(committee)]["keys"]["aura"]
2622
expected_node = next(x for x in config.nodes_config.nodes.values() if x.aura_public_key == author_aura_key)

0 commit comments

Comments
 (0)