global: snapshot

This commit is contained in:
k
2024-10-04 19:09:09 +02:00
parent 1c9d118ba2
commit 068bb07d6e
57 changed files with 1799 additions and 295 deletions

View File

@@ -51,9 +51,12 @@ impl InputSubDataset {
}: &InsertData,
state: &InputState,
) {
let count = self.count.height.insert(height, state.count.round() as u64);
let count = self
.count
.height
.insert(height, state.count().round() as u64);
self.volume.height.insert(height, state.volume.to_btc());
self.volume.height.insert(height, state.volume().to_btc());
if is_date_last_block {
self.count.date.insert(date, count);