Skip to content

Conversation

@algorandskiy
Copy link
Contributor

@algorandskiy algorandskiy commented Oct 27, 2022

Summary

  1. Actualize account/resource sizing constants
  2. Fixed account db reader for rebuilding catchpoint root
  3. Handle txtail creation for 1321 blocks

Test Plan

  1. Extended a unit tests to check MT root after applying a catchpoint.
  2. Checked betanet from 21630000
  3. Checked mainnet from 24390000

@codecov
Copy link

codecov bot commented Oct 27, 2022

Codecov Report

Merging #4703 (97c232d) into master (97c232d) will not change coverage.
The diff coverage is n/a.

❗ Current head 97c232d differs from pull request most recent head 5b04db7. Consider uploading reports for the commit 5b04db7 to get more accurate results

@@           Coverage Diff           @@
##           master    #4703   +/-   ##
=======================================
  Coverage   54.37%   54.37%           
=======================================
  Files         414      414           
  Lines       53504    53504           
=======================================
  Hits        29095    29095           
  Misses      22002    22002           
  Partials     2407     2407           

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed MaxEncodedAccountDataSize as not used in msgp

@algorandskiy algorandskiy force-pushed the pavel/catchpoint-apply-fix branch from cc66f01 to 34e8346 Compare October 28, 2022 15:46
@algorandskiy algorandskiy marked this pull request as ready for review October 28, 2022 16:36
@algorandskiy algorandskiy changed the title catchpoint: actualize limit constants catchpoint: actualize limit constants and fix txtail table init Oct 28, 2022
Copy link
Contributor Author

Choose a reason for hiding this comment

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

partially re-used in a similar test in accountdb_test for base account data and resource data max size checks

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is a fix for the MT recreation after catchpoint apply

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is a fix for block seed opcode in the replay range after applying a catchpoint

@algorandskiy algorandskiy force-pushed the pavel/catchpoint-apply-fix branch from f748190 to 78ca730 Compare October 31, 2022 19:45
@algorandskiy
Copy link
Contributor Author

rebased

cce
cce previously approved these changes Oct 31, 2022
@algorandskiy algorandskiy force-pushed the pavel/catchpoint-apply-fix branch from 344ed12 to 4e0fb23 Compare November 1, 2022 02:10
@algorandskiy algorandskiy force-pushed the pavel/catchpoint-apply-fix branch from 4e0fb23 to 5b04db7 Compare November 1, 2022 11:30
@algorandskiy algorandskiy requested a review from cce November 1, 2022 12:05
Copy link
Contributor

@cce cce left a comment

Choose a reason for hiding this comment

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

LGTM — it's funny, the changes in this PR only impact catchpoint readers, but the listing of files being changed would make you think the catchpoint writers were changing I forgot you are changing ResourcesPerCatchpointFileChunk to 100k for writers now

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.

3 participants