Skip to content

Commit

Permalink
Enable indexing runes on mainnet (#3236)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Mar 7, 2024
1 parent aaeb0e4 commit 2f957b9
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ impl Settings {
}

pub(crate) fn index_runes(&self) -> bool {
self.index_runes && self.chain() != Chain::Mainnet
self.index_runes
}

pub(crate) fn index_cache_size(&self) -> usize {
Expand Down Expand Up @@ -842,11 +842,9 @@ mod tests {
}

#[test]
fn index_runes_only_returns_true_if_index_runes_flag_is_passed_and_not_on_mainnnet() {
assert!(parse(&["--chain=signet", "--index-runes",]).index_runes());

assert!(!parse(&["--index-runes"]).index_runes());

fn index_runes() {
assert!(parse(&["--chain=signet", "--index-runes"]).index_runes());
assert!(parse(&["--index-runes"]).index_runes());
assert!(!parse(&[]).index_runes());
}

Expand Down

0 comments on commit 2f957b9

Please sign in to comment.