-
Notifications
You must be signed in to change notification settings - Fork 145
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
Fix createContractWithStakingFields()
#8986
Conversation
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me!
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #8986 +/- ##
==========================================
Coverage ? 65.09%
Complexity ? 29242
==========================================
Files ? 3225
Lines ? 122854
Branches ? 12603
==========================================
Hits ? 79972
Misses ? 39912
Partials ? 2970 ☔ View full report in Codecov by Sentry. |
.../java/com/hedera/node/app/service/token/impl/handlers/staking/StakingRewardsHandlerImpl.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
a896ba5
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Kudos, SonarCloud Quality Gate passed! |
Description:
ContractCreate
transactions #8719createContractWithStakingFields()
spec was that a_TO_ACCOUNT
stake change scenario would cause aConcurrentModificationException
in thefor
loop here, since the logic inside the loop would add the "stakee" account to the modified set---and cause the iterator to detect a concurrent modification.