Skip to content

Commit

Permalink
default for TransactionFilter config (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
CapCap authored Mar 5, 2024
1 parent 8a1f7ef commit c3f6e86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions rust/processor/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ pub struct IndexerGrpcProcessorConfig {
#[serde(default = "IndexerGrpcProcessorConfig::default_gap_detection_batch_size")]
pub gap_detection_batch_size: u64,
pub enable_verbose_logging: Option<bool>,
#[serde(default)]
pub transaction_filter: TransactionFilter,
}

Expand Down
1 change: 1 addition & 0 deletions rust/processor/src/transaction_filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use serde::{Deserialize, Serialize};
/// Criteria will be loaded from the config file
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
#[serde(deny_unknown_fields)]
#[serde(default)]
pub struct TransactionFilter {
// Only allow transactions from these contract addresses
focus_contract_addresses: Option<ahash::HashSet<String>>,
Expand Down

0 comments on commit c3f6e86

Please sign in to comment.