Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools: let catchpointdump to calculate and print data hashes #5584

Merged

Conversation

algorandskiy
Copy link
Contributor

Summary

  1. catchpointdump now prints balances root and spver hashes
  2. Improved logging in LedgerService.ServeHTTP

Test Plan

Tested manually

@codecov
Copy link

codecov bot commented Jul 19, 2023

Codecov Report

Merging #5584 (82dd5ee) into master (d316914) will decrease coverage by 0.02%.
The diff coverage is 55.00%.

@@            Coverage Diff             @@
##           master    #5584      +/-   ##
==========================================
- Coverage   55.79%   55.77%   -0.02%     
==========================================
  Files         446      446              
  Lines       63418    63428      +10     
==========================================
- Hits        35381    35374       -7     
- Misses      25668    25687      +19     
+ Partials     2369     2367       -2     
Impacted Files Coverage Δ
rpcs/ledgerService.go 53.12% <43.75%> (-1.43%) ⬇️
ledger/catchupaccessor.go 64.80% <62.50%> (+<0.01%) ⬆️

... and 17 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@AlgoAxel AlgoAxel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only //comment suggestions

@@ -76,6 +77,11 @@ func (m *catchpointCatchupAccessorMock) Ledger() (l ledger.CatchupAccessorClient
return m.l
}

// GetVerifyData returns the balances hash, spver hash and totals used by VerifyCatchpoint
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment appears copy/paste from the real impl, may want to just mention that this is a stub to satisfy the interface.

@@ -67,6 +69,11 @@ func (m *MockCatchpointCatchupAccessor) GetCatchupBlockRound(ctx context.Context
return basics.Round(0), nil
}

// GetVerifyData returns the balances hash, spver hash and totals used by VerifyCatchpoint
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment appears copy/paste from the real impl, may want to just mention that this is a stub to satisfy the interface.

rpcs/ledgerService.go Show resolved Hide resolved
Copy link
Contributor

@algonautshant algonautshant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@algorandskiy algorandskiy merged commit bc9f126 into algorand:master Jul 20, 2023
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants