mirror of
https://github.com/wownero/diff-chart.git
synced 2026-10-21 00:58:34 +02:00
bc-size: account for blockheader size
This commit is contained in:
+2
-1
@@ -1,4 +1,4 @@
|
||||
function get_chart(chartData, offset) {
|
||||
function get_chart(chartData, cryptonote_config, offset) {
|
||||
if (offset === undefined)
|
||||
chartData.shift();
|
||||
|
||||
@@ -10,6 +10,7 @@ function get_chart(chartData, offset) {
|
||||
chartData[i].bc_size += offset.bc_size;
|
||||
if (i > 0)
|
||||
chartData[i].bc_size += chartData[i - 1].bc_size;
|
||||
chartData[i].bc_size += cryptonote_config.get_blockheader_size(chartData[i].height);
|
||||
chartData[i].bc_size_str = formatBytes(chartData[i].bc_size, 3);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user