1
0
Fork 0
mirror of https://github.com/romanz/electrs.git synced 2025-02-24 06:57:53 +01:00

Merge pull request #515 from romanz/init-height-metric

Initialize chain height metric
This commit is contained in:
Roman Zeyde 2021-09-30 16:01:01 +03:00 committed by GitHub
commit ed574ab4c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,12 +86,15 @@ impl Index {
chain.load(headers, tip);
};
let stats = Stats::new(metrics);
stats.height.set(chain.height());
Ok(Index {
store,
batch_size,
lookup_limit,
chain,
stats: Stats::new(metrics),
stats,
})
}