Skip to content

Commit

Permalink
pallet-ethereum: kill Pending storage when finalizing block (#638)
Browse files Browse the repository at this point in the history
Signed-off-by: koushiro <koushiro.cqx@gmail.com>
  • Loading branch information
koushiro committed Apr 19, 2022
1 parent 73efff6 commit 7afad9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frame/ethereum/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,10 @@ pub mod pallet {
UniqueSaturatedInto::<u32>::unique_saturated_into(to_remove),
));
}
Pending::<T>::kill();
}

fn on_initialize(_: T::BlockNumber) -> Weight {
Pending::<T>::kill();
let mut weight = T::SystemWeightInfo::kill_storage(1);

// If the digest contain an existing ethereum block(encoded as PreLog), If contains,
Expand Down

0 comments on commit 7afad9a

Please sign in to comment.