mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-14 12:38:13 -07:00
global: snapshot
This commit is contained in:
@@ -2,13 +2,9 @@ use brk_traversable::Traversable;
|
||||
|
||||
#[derive(Clone, Traversable)]
|
||||
pub struct Windows<A> {
|
||||
#[traversable(rename = "24h")]
|
||||
pub _24h: A,
|
||||
#[traversable(rename = "1w")]
|
||||
pub _1w: A,
|
||||
#[traversable(rename = "1m")]
|
||||
pub _1m: A,
|
||||
#[traversable(rename = "1y")]
|
||||
pub _1y: A,
|
||||
}
|
||||
|
||||
|
||||
@@ -67,7 +67,6 @@ pub struct RollingWindow24h<T, M: StorageMode = Rw>
|
||||
where
|
||||
T: ComputedVecValue + PartialOrd + JsonSchema,
|
||||
{
|
||||
#[traversable(rename = "24h")]
|
||||
pub _24h: ComputedPerBlock<T, M>,
|
||||
}
|
||||
|
||||
@@ -114,11 +113,8 @@ pub struct RollingWindowsFrom1w<T, M: StorageMode = Rw>
|
||||
where
|
||||
T: ComputedVecValue + PartialOrd + JsonSchema,
|
||||
{
|
||||
#[traversable(rename = "1w")]
|
||||
pub _1w: ComputedPerBlock<T, M>,
|
||||
#[traversable(rename = "1m")]
|
||||
pub _1m: ComputedPerBlock<T, M>,
|
||||
#[traversable(rename = "1y")]
|
||||
pub _1y: ComputedPerBlock<T, M>,
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,6 @@ pub struct BlockRollingDistribution<T, M: StorageMode = Rw>
|
||||
where
|
||||
T: ComputedVecValue + PartialOrd + JsonSchema,
|
||||
{
|
||||
#[traversable(rename = "6b")]
|
||||
pub _6b: Distribution<Height, T, M>,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user