-
Notifications
You must be signed in to change notification settings - Fork 869
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simulate with max compute units, not u32::MAX (#2728)
#### Problem Looking through recent updates to the monorepo, this caught my eye: anza-xyz/agave#885 The simulation utility sets `u32::MAX`, which will fail once that feature is enabled. #### Solution Set `MAX_COMPUTE_UNITS`, hardcoded to 1,400,000, instead of `u32::MAX`.
- Loading branch information
Showing
3 changed files
with
13 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@solana/web3.js-experimental": patch | ||
--- | ||
|
||
Simulate with the maximum quantity of compute units (1.4M) instead of `u32::MAX` |
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