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

[Storehouse] Blockend Snapshot #4985

Merged
merged 13 commits into from
Nov 22, 2023
Merged

Conversation

zhangchiqing
Copy link
Member

Working towards #4682

BlockEnd Snapshot is used by storehouse as an abstraction for FVM to retrieve register from storage.

BlockEnd means the snapshot is for the state at the end of block.

@zhangchiqing zhangchiqing changed the base branch from master to leo/register-store November 9, 2023 22:16
@zhangchiqing zhangchiqing changed the base branch from leo/register-store to master November 9, 2023 22:16
@zhangchiqing zhangchiqing force-pushed the leo/storehouse-blockend-snapshot branch from 4556d21 to 3eddf53 Compare November 14, 2023 17:28
Copy link
Contributor

@peterargue peterargue left a comment

Choose a reason for hiding this comment

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

I skipped code that is also in #4940

engine/execution/storehouse/block_end_snapshot.go Outdated Show resolved Hide resolved
engine/execution/storehouse/block_end_snapshot.go Outdated Show resolved Hide resolved
engine/execution/storehouse/executing_block_snapshot.go Outdated Show resolved Hide resolved
engine/execution/storehouse/executing_block_snapshot.go Outdated Show resolved Hide resolved
engine/execution/storehouse/executing_block_snapshot.go Outdated Show resolved Hide resolved
@zhangchiqing zhangchiqing changed the base branch from master to leo/register-store November 16, 2023 01:05
@zhangchiqing zhangchiqing force-pushed the leo/storehouse-blockend-snapshot branch 2 times, most recently from b0e3afd to 588de92 Compare November 16, 2023 16:59
Base automatically changed from leo/register-store to master November 16, 2023 17:32
@zhangchiqing zhangchiqing force-pushed the leo/storehouse-blockend-snapshot branch from 277608b to 7ac073b Compare November 16, 2023 17:45
@codecov-commenter
Copy link

codecov-commenter commented Nov 16, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (357a0c9) 56.25% compared to head (c212feb) 56.28%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4985      +/-   ##
==========================================
+ Coverage   56.25%   56.28%   +0.02%     
==========================================
  Files         974      975       +1     
  Lines       90802    90840      +38     
==========================================
+ Hits        51082    51129      +47     
+ Misses      35910    35903       -7     
+ Partials     3810     3808       -2     
Flag Coverage Δ
unittests 56.28% <100.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@zhangchiqing zhangchiqing force-pushed the leo/storehouse-blockend-snapshot branch from 03279a6 to ce7b870 Compare November 17, 2023 05:49
@zhangchiqing zhangchiqing force-pushed the leo/storehouse-blockend-snapshot branch from ce7b870 to 7a7009f Compare November 20, 2023 17:44
if value == nil {
return nil, storage.ErrNotFound
}
return value, nil
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this just return (value, nil) now. If value is nil we want to return nil, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

yup, updated

@zhangchiqing zhangchiqing force-pushed the leo/storehouse-blockend-snapshot branch from d1b6468 to c212feb Compare November 22, 2023 18:20
@zhangchiqing zhangchiqing added this pull request to the merge queue Nov 22, 2023
Merged via the queue into master with commit 4494a66 Nov 22, 2023
54 checks passed
@zhangchiqing zhangchiqing deleted the leo/storehouse-blockend-snapshot branch November 22, 2023 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants