Skip to content

Commit 466208c

Browse files
committed
not call AuthorInherent::on_finalize
1 parent c9a8bdd commit 466208c

File tree

2 files changed

+0
-4
lines changed
  • runtime

2 files changed

+0
-4
lines changed

runtime/moonbeam/tests/common/mod.rs

-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ pub fn rpc_run_to_block(n: u32) {
6464
pub fn run_to_block(n: u32, author: Option<NimbusId>) {
6565
// Finalize the first block
6666
Ethereum::on_finalize(System::block_number());
67-
AuthorInherent::on_finalize(System::block_number());
6867
while System::block_number() < n {
6968
// Set the new block number and author
7069
match author {
@@ -91,7 +90,6 @@ pub fn run_to_block(n: u32, author: Option<NimbusId>) {
9190

9291
// Finalize the block
9392
Ethereum::on_finalize(System::block_number());
94-
AuthorInherent::on_finalize(System::block_number());
9593
ParachainStaking::on_finalize(System::block_number());
9694
}
9795
}

runtime/moonriver/tests/common/mod.rs

-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ pub fn rpc_run_to_block(n: u32) {
6565
pub fn run_to_block(n: u32, author: Option<NimbusId>) {
6666
// Finalize the first block
6767
Ethereum::on_finalize(System::block_number());
68-
AuthorInherent::on_finalize(System::block_number());
6968
while System::block_number() < n {
7069
// Set the new block number and author
7170
match author {
@@ -92,7 +91,6 @@ pub fn run_to_block(n: u32, author: Option<NimbusId>) {
9291

9392
// Finalize the block
9493
Ethereum::on_finalize(System::block_number());
95-
AuthorInherent::on_finalize(System::block_number());
9694
ParachainStaking::on_finalize(System::block_number());
9795
}
9896
}

0 commit comments

Comments
 (0)