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

Blockchain tests support: Clear accounts and their storage warm flag after each tx #679

Merged
merged 1 commit into from
Aug 17, 2023

Conversation

rodiazet
Copy link
Collaborator

@rodiazet rodiazet commented Aug 9, 2023

No description provided.

@rodiazet rodiazet requested review from chfast and gumb0 August 9, 2023 12:47
@codecov
Copy link

codecov bot commented Aug 9, 2023

Codecov Report

Merging #679 (b81712e) into master (80a1c9e) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #679   +/-   ##
=======================================
  Coverage   97.48%   97.48%           
=======================================
  Files          85       85           
  Lines        8177     8182    +5     
=======================================
+ Hits         7971     7976    +5     
  Misses        206      206           
Flag Coverage Δ
blockchaintests 62.71% <ø> (ø)
statetests 74.22% <100.00%> (+0.05%) ⬆️
statetests-silkpre 23.25% <100.00%> (+0.05%) ⬆️
unittests 95.01% <100.00%> (+<0.01%) ⬆️

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

Files Changed Coverage Δ
test/state/state.cpp 98.55% <100.00%> (+0.05%) ⬆️

test/t8n/t8n.cpp Outdated
@@ -155,6 +155,16 @@ int main(int argc, const char* argv[])
transactions.emplace_back(std::move(tx));
receipts.emplace_back(std::move(receipt));
}

for (auto& acc : state.get_accounts())
Copy link
Member

Choose a reason for hiding this comment

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

I think this should be done as a part of state::transition().

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done. I did not separate it to a function but can do it if it makes sense. For me it doesn't yet.

@chfast chfast changed the title Blockchain tests fixing: Clear accounts and their storage warm flag after each tx Blockchain tests support: Clear accounts and their storage warm flag after each tx Aug 16, 2023
@rodiazet rodiazet merged commit 1d0c994 into master Aug 17, 2023
3 checks passed
@rodiazet rodiazet deleted the clear-accounts-flags-t8n branch August 17, 2023 10:46
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.

2 participants