mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
Configure Gas Price Oracle with CLI arguments (#2664)
Co-authored-by: Aditya Pandey <aditya.p@Aditya-P.local> Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -46,3 +46,11 @@ impl Default for EthConfig {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl EthConfig {
|
||||
/// Configures the gas price oracle settings
|
||||
pub fn with_gpo_config(mut self, gas_oracle_config: GasPriceOracleConfig) -> Self {
|
||||
self.gas_oracle = gas_oracle_config;
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ -349,6 +349,10 @@ impl RpcModuleConfig {
|
||||
pub fn builder() -> RpcModuleConfigBuilder {
|
||||
RpcModuleConfigBuilder::default()
|
||||
}
|
||||
/// Returns a new RPC module config given the eth namespace config
|
||||
pub fn new(eth: EthConfig) -> Self {
|
||||
Self { eth }
|
||||
}
|
||||
}
|
||||
|
||||
/// Configures [RpcModuleConfig]
|
||||
|
||||
Reference in New Issue
Block a user