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

C++: Do not cache tx context in HostContext #631

Merged
merged 1 commit into from
Mar 9, 2022
Merged

Conversation

chfast
Copy link
Member

@chfast chfast commented Mar 7, 2022

The C++ API for HostContext was caching the tx context. The caching seems good idea, but the EVM might want to do it its own way, but it is inconvenient if it cannot change the behavior here.

So this change is removing this responsibility from C++ API.

@chfast chfast requested a review from gumb0 March 7, 2022 16:48
@codecov
Copy link

codecov bot commented Mar 7, 2022

Codecov Report

Merging #631 (3511043) into master (c4b2453) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #631      +/-   ##
==========================================
+ Coverage   92.79%   92.81%   +0.02%     
==========================================
  Files          24       24              
  Lines        3537     3533       -4     
  Branches      363      362       -1     
==========================================
- Hits         3282     3279       -3     
  Misses        146      146              
+ Partials      109      108       -1     

@chfast chfast force-pushed the cpp_tx_context_nocache branch 2 times, most recently from d33383e to 112687d Compare March 7, 2022 17:10
@chfast chfast requested a review from axic March 7, 2022 18:14
@chfast chfast requested a review from yperbasis March 8, 2022 18:28
@chfast chfast force-pushed the cpp_tx_context_nocache branch from 112687d to 3511043 Compare March 8, 2022 18:28
@chfast chfast merged commit 8702caf into master Mar 9, 2022
@chfast chfast deleted the cpp_tx_context_nocache branch March 9, 2022 09:05
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