Skip to content
This repository was archived by the owner on Jan 20, 2026. It is now read-only.

Move blocking to beginning of runTx#40

Merged
BrandonWeng merged 2 commits intomainfrom
bweng-move-signalling-2
Oct 9, 2022
Merged

Move blocking to beginning of runTx#40
BrandonWeng merged 2 commits intomainfrom
bweng-move-signalling-2

Conversation

@BrandonWeng
Copy link
Contributor

Describe your changes and provide context

There are resource accesses in the ante handler, we need to block before the access occurs, or else we will run into issues there where there's a race condition between the different accesses

Testing performed to validate your change

Ran 20 iterations of the the basic msg load test with 5 validators and didn't experience any issues

Copy link
Contributor

@philipsu522 philipsu522 left a comment

Choose a reason for hiding this comment

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

Nice!!!

@philipsu522
Copy link
Contributor

is there any way to add a unit test for this? i.e. ensure that lock is held before any gas deducted / any toher function calls? not a blocker though - we can revist

@BrandonWeng BrandonWeng merged commit 8c91f55 into main Oct 9, 2022
BrandonWeng added a commit that referenced this pull request Oct 12, 2022
## Describe your changes and provide context
There are resource accesses in the ante handler, we need to block before
the access occurs, or else we will run into issues there where there's a
race condition between the different accesses

## Testing performed to validate your change
Ran 20 iterations of the the basic msg load test with 5 validators and
didn't experience any issues
philipsu522 pushed a commit that referenced this pull request Oct 12, 2022
There are resource accesses in the ante handler, we need to block before
the access occurs, or else we will run into issues there where there's a
race condition between the different accesses

Ran 20 iterations of the the basic msg load test with 5 validators and
didn't experience any issues
BrandonWeng added a commit that referenced this pull request Oct 14, 2022
## Describe your changes and provide context
There are resource accesses in the ante handler, we need to block before
the access occurs, or else we will run into issues there where there's a
race condition between the different accesses

## Testing performed to validate your change
Ran 20 iterations of the the basic msg load test with 5 validators and
didn't experience any issues
@BrandonWeng BrandonWeng deleted the bweng-move-signalling-2 branch February 1, 2023 18:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants