mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-20 15:38:11 -07:00
global: snapshot
This commit is contained in:
@@ -8,7 +8,6 @@ use crate::internal::{AmountPerBlock, RollingWindow24hAmountPerBlock};
|
||||
/// Amount per-block value (sats + cents) with 24h rolling sum (also amount).
|
||||
#[derive(Traversable)]
|
||||
pub struct AmountPerBlockWithSum24h<M: StorageMode = Rw> {
|
||||
#[traversable(flatten)]
|
||||
pub raw: AmountPerBlock<M>,
|
||||
pub sum: RollingWindow24hAmountPerBlock<M>,
|
||||
}
|
||||
|
||||
@@ -53,7 +53,6 @@ impl<C: CentsType> RollingWindow24hFiatPerBlock<C> {
|
||||
/// Fiat per-block value (cents + usd) with 24h rolling sum (also fiat).
|
||||
#[derive(Traversable)]
|
||||
pub struct FiatPerBlockWithSum24h<C: CentsType, M: StorageMode = Rw> {
|
||||
#[traversable(flatten)]
|
||||
pub raw: FiatPerBlock<C, M>,
|
||||
pub sum: RollingWindow24hFiatPerBlock<C, M>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user