Skip to content

Commit

Permalink
fixed config
Browse files Browse the repository at this point in the history
  • Loading branch information
idky137 committed Jan 22, 2025
1 parent 7ccca37 commit 9449ae9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions zaino-testutils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ impl TestManager {
network: network.to_string(),
no_sync: zaino_no_sync,
no_db: zaino_no_db,
no_state: false,
};
let handle = zainodlib::indexer::Indexer::new(indexer_config, online.clone())
.await
Expand Down
7 changes: 7 additions & 0 deletions zainod/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ pub struct IndexerConfig {
/// Disables FinalisedState.
/// Used for testing.
pub no_db: bool,
/// Disables internal mempool and blockcache.
///
/// For use by lightweight wallets that do not want to run any extra processes.
///
/// NOTE: Currently unimplemented as will require either a Tonic backend or a JsonRPC server.
pub no_state: bool,
}

impl IndexerConfig {
Expand Down Expand Up @@ -101,6 +107,7 @@ impl Default for IndexerConfig {
network: "Testnet".to_string(),
no_sync: false,
no_db: false,
no_state: false,
}
}
}
Expand Down
8 changes: 8 additions & 0 deletions zainod/zindexer.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,11 @@ no_sync = false
# Only used by the FetchServic.
# Used for testing.
no_db = false

# Disables internal mempool and blockcache.
#
# For use by lightweight wallets that do not want to run any extra processes.
#
# NOTE: Currently unimplemented as will require either a Tonic backend or a JsonRPC server.
# no_state = false

0 comments on commit 9449ae9

Please sign in to comment.