Skip to content

Commit

Permalink
Merge branch 'master' into delegation
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Dec 25, 2023
2 parents 108892a + 72ad9fc commit 8ee70c7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@ impl Index {
runes: statistic(Statistic::Runes)?,
sat_index: statistic(Statistic::IndexSats)? != 0,
started: self.started,
transaction_index: statistic(Statistic::IndexTransactions)? != 0,
unrecoverably_reorged: self.unrecoverably_reorged.load(atomic::Ordering::Relaxed),
uptime: (Utc::now() - self.started).to_std()?,
})
Expand Down
4 changes: 3 additions & 1 deletion src/subcommand/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2572,9 +2572,11 @@ mod tests {
<dd>.*</dd>
<dt>unrecoverably reorged</dt>
<dd>false</dd>
<dt>rune index</dt>
<dd>false</dd>
<dt>sat index</dt>
<dd>false</dd>
<dt>rune index</dt>
<dt>transaction index</dt>
<dd>false</dd>
<dt>git branch</dt>
<dd>.*</dd>
Expand Down
1 change: 1 addition & 0 deletions src/templates/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ pub(crate) struct StatusHtml {
pub(crate) runes: u64,
pub(crate) sat_index: bool,
pub(crate) started: DateTime<Utc>,
pub(crate) transaction_index: bool,
pub(crate) unrecoverably_reorged: bool,
pub(crate) uptime: Duration,
}
Expand Down
6 changes: 4 additions & 2 deletions templates/status.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ <h1>Status</h1>
<dd>{{ env!("CARGO_PKG_VERSION") }}</dd>
<dt>unrecoverably reorged</dt>
<dd>{{ self.unrecoverably_reorged }}</dd>
<dt>sat index</dt>
<dd>{{ self.sat_index }}</dd>
<dt>rune index</dt>
<dd>{{ self.rune_index }}</dd>
<dt>sat index</dt>
<dd>{{ self.sat_index }}</dd>
<dt>transaction index</dt>
<dd>{{ self.transaction_index }}</dd>
%% if !env!("GIT_BRANCH").is_empty() {
<dt>git branch</dt>
<dd>{{ env!("GIT_BRANCH") }}</dd>
Expand Down

0 comments on commit 8ee70c7

Please sign in to comment.