-
Notifications
You must be signed in to change notification settings - Fork 800
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use matching commitment when fetching blockhashes in tests (#2290)
# Summary You can get into some pretty weird situations in tests if all of the following are true: - The test validator just started up - You fetch a blockhash using `finalized` commitment before the first root has been made - You're testing something to do with fees In cases like this, you'll get the first blockhash ever, which basically lets you land transactions without paying a fee. If your test exercises fee-related exceptions, it just might fail. # Test Plan Fee-related tests in the next PR work.
- Loading branch information
1 parent
f9fe9c5
commit 34ecac6
Showing
3 changed files
with
19 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters