Skip to content

Commit

Permalink
chore: fix some comments (#2845)
Browse files Browse the repository at this point in the history
Signed-off-by: dashangcun <jchaodaohang@foxmail.com>
Co-authored-by: dashangcun <jchaodaohang@foxmail.com>
  • Loading branch information
dashangcun and haouvw authored Jun 24, 2024
1 parent 91732c8 commit 9f5907c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/library/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ const signedTransaction = await signTransaction([signer], transactionMessageWith

### Calibrating A Transaction Message's Compute Unit Budget

Correctly budgeting a compute unit limit for your transaction message can increase the probabilty that your transaction will be accepted for processing. If you don't declare a compute unit limit on your transaction, validators will assume an upper limit of 200K compute units (CU) per instruction.
Correctly budgeting a compute unit limit for your transaction message can increase the probability that your transaction will be accepted for processing. If you don't declare a compute unit limit on your transaction, validators will assume an upper limit of 200K compute units (CU) per instruction.

Since validators have an incentive to pack as many transactions into each block as possible, they may choose to include transactions that they know will fit into the remaining compute budget for the current block over transactions that might not. For this reason, you should set a compute unit limit on each of your transaction messages, whenever possible.

Expand Down
2 changes: 1 addition & 1 deletion packages/library/src/compute-limit-internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function isSetComputeLimitInstruction(
* consumed during simulation.
*
* The estimate this function returns can be used to set a compute unit limit on the transaction.
* Correctly budgeting a compute unit limit for your transaction message can increase the probabilty
* Correctly budgeting a compute unit limit for your transaction message can increase the probability
* that your transaction will be accepted for processing.
*
* If you don't declare a compute unit limit on your transaction, validators will assume an upper
Expand Down

0 comments on commit 9f5907c

Please sign in to comment.