diff --git a/src/index.rs b/src/index.rs
index c9ee2f666b..8bdeab8c75 100644
--- a/src/index.rs
+++ b/src/index.rs
@@ -470,6 +470,10 @@ impl Index {
self.index_addresses
}
+ pub fn has_inscription_index(&self) -> bool {
+ self.index_inscriptions
+ }
+
pub fn has_rune_index(&self) -> bool {
self.index_runes
}
@@ -512,6 +516,7 @@ impl Index {
cursed_inscriptions,
height,
initial_sync_time: Duration::from_micros(initial_sync_time),
+ inscription_index: self.has_inscription_index(),
inscriptions: blessed_inscriptions + cursed_inscriptions,
lost_sats: statistic(Statistic::LostSats)?,
minimum_rune_for_next_block: Rune::minimum_at_height(
diff --git a/src/subcommand/server.rs b/src/subcommand/server.rs
index 3ab0c49753..267d7d338b 100644
--- a/src/subcommand/server.rs
+++ b/src/subcommand/server.rs
@@ -3556,6 +3556,8 @@ mod tests {
false
address index
false
+ inscription index
+ true
rune index
false
sat index
diff --git a/src/templates/status.rs b/src/templates/status.rs
index 043dff6da1..8efe0a2fef 100644
--- a/src/templates/status.rs
+++ b/src/templates/status.rs
@@ -8,6 +8,7 @@ pub struct StatusHtml {
pub cursed_inscriptions: u64,
pub height: Option,
pub initial_sync_time: Duration,
+ pub inscription_index: bool,
pub inscriptions: u64,
pub lost_sats: u64,
pub minimum_rune_for_next_block: Rune,
diff --git a/templates/status.html b/templates/status.html
index b2356c80f3..be47e68ea7 100644
--- a/templates/status.html
+++ b/templates/status.html
@@ -30,6 +30,8 @@ Status
{{ self.unrecoverably_reorged }}
address index
{{ self.address_index }}
+ inscription index
+ {{ self.inscription_index }}
rune index
{{ self.rune_index }}
sat index
diff --git a/tests/json_api.rs b/tests/json_api.rs
index 78420bae21..d4ef4de61b 100644
--- a/tests/json_api.rs
+++ b/tests/json_api.rs
@@ -499,6 +499,7 @@ fn get_status() {
cursed_inscriptions: 0,
height: Some(3),
initial_sync_time: dummy_duration,
+ inscription_index: true,
inscriptions: 1,
lost_sats: 0,
minimum_rune_for_next_block: Rune(99218849511960410),