untagged serde magic
This commit is contained in:
parent
bf26ea2b1a
commit
56db1eb13e
@ -74,7 +74,7 @@ response_cache_max_bytes = 10_000_000_000
|
||||
|
||||
[balanced_rpcs.ankr]
|
||||
display_name = "Ankr"
|
||||
block_data_limit.Limit = "64"
|
||||
block_data_limit = "64"
|
||||
http_url = "https://rpc.ankr.com/eth"
|
||||
soft_limit = 1_000
|
||||
|
||||
|
@ -280,6 +280,7 @@ pub fn average_block_interval(chain_id: u64) -> Duration {
|
||||
|
||||
#[derive(Clone, Debug, Derivative, Deserialize, PartialEq, Eq)]
|
||||
#[derivative(Default(bound = ""))]
|
||||
#[serde(untagged)]
|
||||
pub enum BlockDataLimit {
|
||||
/// archive nodes can return all data
|
||||
Archive,
|
||||
|
Loading…
Reference in New Issue
Block a user