Skip to content

Commit

Permalink
fixed merge artifact (typo fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
valdok committed Jul 6, 2024
1 parent 6e1557e commit a973068
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions explorer/adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2146,15 +2146,15 @@ class Adapter : public Node::IObserver, public IAdapter {
{
Block::SystemState::Full m_Hdr;

uint64_t get_ChainSize(bool bArchieve) const
uint64_t get_ChainSize(bool bArchive) const
{
// size estimation
uint64_t ret =
static_cast<uint64_t>(sizeof(Block::SystemState::Sequence::Element)) * (m_Hdr.m_Height - Rules::HeightGenesis + 1) +
m_Totals.m_Kernels.m_Size +
m_Totals.m_MW.m_Outputs.m_Size;

if (bArchieve)
if (bArchive)
ret += m_Totals.m_MW.m_Inputs.m_Count * sizeof(ECC::Point);
else
ret -= m_Totals.m_MW.m_Inputs.m_Size;
Expand Down Expand Up @@ -2241,10 +2241,10 @@ class Adapter : public Node::IObserver, public IAdapter {
void OnData_ContractCalls_Abs() { m_json.push_back(m_This.MakeDecimal(m_pThis->m_Totals.m_Contract.get_Sum()).m_sz); }
void OnData_ContractCalls_Rel() { m_json.push_back(m_This.MakeDecimalDelta(m_pThis->m_Totals.m_Contract.get_Sum() - m_pPrev->m_Totals.m_Contract.get_Sum()).m_sz); }

void OnName_SizeArchieve_Abs() { m_json.push_back(MakeTableHdr("Size.Archieve")); }
void OnName_SizeArchieve_Rel() { m_json.push_back(MakeTableHdr("D.Size.Archieve")); }
void OnData_SizeArchieve_Abs() { m_json.push_back(m_This.MakeDecimal(m_pThis->get_ChainSize(true)).m_sz); }
void OnData_SizeArchieve_Rel() { m_json.push_back(m_This.MakeDecimalDelta(m_pThis->get_ChainSize(true) - m_pPrev->get_ChainSize(true)).m_sz); }
void OnName_SizeArchive_Abs() { m_json.push_back(MakeTableHdr("Size.Archive")); }
void OnName_SizeArchive_Rel() { m_json.push_back(MakeTableHdr("D.Size.Archive")); }
void OnData_SizeArchive_Abs() { m_json.push_back(m_This.MakeDecimal(m_pThis->get_ChainSize(true)).m_sz); }
void OnData_SizeArchive_Rel() { m_json.push_back(m_This.MakeDecimalDelta(m_pThis->get_ChainSize(true) - m_pPrev->get_ChainSize(true)).m_sz); }

void OnName_SizeCompressed_Abs() { m_json.push_back(MakeTableHdr("Size.Compressed")); }
void OnName_SizeCompressed_Rel() { m_json.push_back(MakeTableHdr("D.Size.Compressed")); }
Expand Down
2 changes: 1 addition & 1 deletion explorer/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ OnRequest(hdrs)
COL_CASE('B', 'b', ContractsActive)
COL_CASE('P', 'p', ContractCalls)
COL_CASE('C', 'c', SizeCompressed)
COL_CASE('A', 'a', SizeArchieve)
COL_CASE('A', 'a', SizeArchive)

default:
val = C::count;
Expand Down

0 comments on commit a973068

Please sign in to comment.