mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-29 09:09:58 -07:00
general: snapshot
This commit is contained in:
@@ -92,8 +92,13 @@ pub fn parse(
|
||||
let block_size = block.total_size();
|
||||
let block_weight = block.weight().to_wu();
|
||||
let block_vbytes = block.weight().to_vbytes_floor();
|
||||
let block_interval =
|
||||
previous_timestamp.map_or(0, |previous_timestamp| timestamp - previous_timestamp);
|
||||
let block_interval = previous_timestamp.map_or(0, |previous_timestamp| {
|
||||
if previous_timestamp <= timestamp {
|
||||
0
|
||||
} else {
|
||||
timestamp - previous_timestamp
|
||||
}
|
||||
});
|
||||
|
||||
states
|
||||
.date_data_vec
|
||||
|
||||
Reference in New Issue
Block a user