mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-05-29 22:39:26 -07:00
global: snapshot
This commit is contained in:
@@ -160,6 +160,7 @@ impl Query {
|
||||
total,
|
||||
start,
|
||||
end,
|
||||
height: *self.height(),
|
||||
})
|
||||
}
|
||||
|
||||
@@ -173,6 +174,7 @@ impl Query {
|
||||
total,
|
||||
start,
|
||||
end,
|
||||
..
|
||||
} = resolved;
|
||||
|
||||
let output = match format {
|
||||
|
||||
@@ -13,6 +13,7 @@ impl Query {
|
||||
total,
|
||||
start,
|
||||
end,
|
||||
..
|
||||
} = resolved;
|
||||
|
||||
if vecs.is_empty() {
|
||||
|
||||
@@ -10,11 +10,12 @@ pub struct ResolvedQuery {
|
||||
pub(crate) total: usize,
|
||||
pub(crate) start: usize,
|
||||
pub(crate) end: usize,
|
||||
pub(crate) height: u32,
|
||||
}
|
||||
|
||||
impl ResolvedQuery {
|
||||
pub fn etag(&self) -> Etag {
|
||||
Etag::from_metric(self.version, self.total, self.start, self.end)
|
||||
Etag::from_metric(self.version, self.total, self.start, self.end, self.height)
|
||||
}
|
||||
|
||||
pub fn format(&self) -> Format {
|
||||
|
||||
Reference in New Issue
Block a user