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

MPT: extend Billet documentation #3832

Merged
merged 2 commits into from
Mar 6, 2025
Merged

MPT: extend Billet documentation #3832

merged 2 commits into from
Mar 6, 2025

Conversation

AnnaShaleva
Copy link
Member

No functional changes, but we need at least some basic doc in order not to confuse new developers.

@AnnaShaleva AnnaShaleva added the documentation Improvements or additions to documentation label Mar 6, 2025
@AnnaShaleva AnnaShaleva added this to the v0.109.0 milestone Mar 6, 2025
Billet's mode must match the DB's MPT mode, otherwise Billet-level nodes
decoding won't work properly startign from 86cb4ed.

Ref.
#3808 (comment)
and 49945e9.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
Use this constant as a dummy contract storage item prefix for those
situations when Billet is used as an MPT search wrapper. Otherwise it's
confusing to see `0` passed as a storage prefix to the billet
constructor and then panic inside the Billet's code if this prefix is
`0`.

Ref. #2201.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
Copy link

codecov bot commented Mar 6, 2025

Codecov Report

Attention: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 82.87%. Comparing base (68d7e8e) to head (c3916ef).
Report is 7 commits behind head on master.

Files with missing lines Patch % Lines
pkg/core/mpt/billet.go 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3832      +/-   ##
==========================================
- Coverage   82.90%   82.87%   -0.04%     
==========================================
  Files         338      338              
  Lines       47435    47448      +13     
==========================================
- Hits        39326    39322       -4     
- Misses       6493     6506      +13     
- Partials     1616     1620       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@roman-khimov roman-khimov merged commit 94660f6 into master Mar 6, 2025
32 of 34 checks passed
@roman-khimov roman-khimov deleted the extend-billet-doc branch March 6, 2025 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants