mirror of
https://github.com/chainstacklabs/pumpfun-bonkfun-bot.git
synced 2026-07-27 23:37:45 +00:00
docs(examples): update comments for cu optimization in manual buy script
This commit is contained in:
@@ -8,6 +8,13 @@ improve transaction priority.
|
||||
|
||||
Key difference from manual_buy.py:
|
||||
- Adds set_loaded_accounts_data_size_limit(512_000) before other instructions
|
||||
|
||||
NOTE: The CU savings from this optimization are NOT visible in transaction "consumed CU"
|
||||
metrics, which only show execution CU. The 16k CU loaded accounts overhead is counted
|
||||
separately for transaction priority/cost calculation. This makes the real impact hard
|
||||
to measure directly, but it improves priority.
|
||||
|
||||
Reference: https://www.anza.xyz/blog/cu-optimization-with-setloadedaccountsdatasizelimit
|
||||
"""
|
||||
|
||||
import asyncio
|
||||
|
||||
Reference in New Issue
Block a user