chore(executor): make allow_missing_host_functions could be configurable (#12015)

* make `with_instance` pub

* make `allow_missing_host_functions` could be configurable

* add method `allow_missing_host_functions`

* update usage

* update usage

* fix comments

* fix `with_instance`
This commit is contained in:
yjh
2022-08-19 16:50:12 +08:00
committed by GitHub
parent f36c3eefc0
commit 13fa566590
2 changed files with 25 additions and 16 deletions
@@ -46,10 +46,10 @@ use std::{
/// This works by either fetching the `slot_number` from the most recent header and dividing
/// that value by `slot_duration` in order to fork chains that expect this inherent.
///
/// It produces timestamp inherents that are increaed by `slot_duraation` whenever
/// It produces timestamp inherents that are increased by `slot_duration` whenever
/// `provide_inherent_data` is called.
pub struct SlotTimestampProvider {
// holds the unix millisecnd timestamp for the most recent block
// holds the unix millisecond timestamp for the most recent block
unix_millis: atomic::AtomicU64,
// configured slot_duration in the runtime
slot_duration: SlotDuration,