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

market: Avoid re-using state between transactions #1221

Merged
merged 2 commits into from
Mar 2, 2023

Conversation

Stebalien
Copy link
Member

@Stebalien Stebalien commented Feb 23, 2023

Followup on #1220, but for the market actor. This doesn't actually change behavior, just makes it easy to verify that there's no reentrancy.

Unfortunately, we can't use a single transaction in PublishStorageDeals because that method looks up datacap balances after reading the state (see #1124, #1124).

Followup on #1220, but for the market actor. This doesn't actually
change behavior, just makes it easy to verify that there's no
reentrancy.

Unfortunately, we can't use a single transaction in PublishStorageDeals
because _that_ method looks up datacap balances after reading the
state (see #1124, #1124).
@Stebalien Stebalien force-pushed the steb/improve-market-transactions branch from 0d4a18c to 8810678 Compare February 24, 2023 00:56
@codecov-commenter
Copy link

Codecov Report

Merging #1221 (8810678) into master (05bc73f) will decrease coverage by 0.04%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1221      +/-   ##
==========================================
- Coverage   90.98%   90.94%   -0.04%     
==========================================
  Files         133      133              
  Lines       26678    26677       -1     
==========================================
- Hits        24272    24261      -11     
- Misses       2406     2416      +10     
Impacted Files Coverage Δ
actors/market/src/lib.rs 91.21% <100.00%> (-0.01%) ⬇️
actors/miner/src/deadline_info.rs 79.77% <0.00%> (-16.86%) ⬇️
runtime/src/dispatch.rs 97.84% <0.00%> (-1.08%) ⬇️
test_vm/src/lib.rs 84.76% <0.00%> (+0.38%) ⬆️
actors/power/src/lib.rs 84.01% <0.00%> (+0.43%) ⬆️

@Stebalien Stebalien requested review from anorth and ZenGround0 and removed request for anorth February 27, 2023 21:03
@anorth anorth enabled auto-merge (squash) March 2, 2023 21:39
@anorth anorth merged commit 9cb8a6b into master Mar 2, 2023
@anorth anorth deleted the steb/improve-market-transactions branch March 2, 2023 22:01
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.

3 participants