ใน v4.5 getAccountInfo และ getMultipleAccounts ตอบกลับได้แล้วแม้บนโหนดแบบ minimal ที่ไม่ได้ใช้ --full-rpc-api[6] ในขณะเดียวกัน getProgramAccounts และเมธอดอื่นที่คืนบัญชีทั้งหมดในครั้งเดียวก็เป็น deprecated เมธอดเหล่านี้ยังตอบกลับเหมือนเดิมบน v4.5 และมีแผนจะลบออกใน v5.0 ทั้งนี้ Anza เขียนถึงการสแกนบัญชี (account scan) ว่า “the validator should not be the place they run” และแนะนำให้ย้ายงานนี้ไปทำบน indexer [1]
Prompt A: RPC compatibility audit (Agave v4.5)Target: [repository, services that call RPC, RPC endpoint in use]Start by reading the current code. Identify the Solana SDK in use and its version, every RPC method the code calls (including calls made inside the SDK), and the version of the node it calls (getVersion). Do not fill gaps by guessing; mark anything you cannot confirm as "unconfirmed".For each of the following, decide whether it applies and point to the code. Does the code treat a null from getFeeForMessage as "the blockhash has expired"? Does it call getProgramAccounts, getLargestAccounts, getSupply, getTokenLargestAccounts, getTokenAccountsByOwner, getTokenAccountsByDelegate or /v0/circulating-supply (deprecated in v4.5 with unchanged responses; removal is on the v5.0 development line)? If it does, show where to move to methods that fetch only what is needed (getProgramAccountsV2, getMultipleAccounts, subscriptions and so on). Does it pass an older range with minContextSlot to getBlocksWithLimit? Does it branch on error message text? Does it assume one entry per pubkey in the getBlock rewards array, or match reward types exhaustively? Does it use amount from getInflationReward as the inflation reward? Does it read jsonParsed ProgramData at fixed offsets?Applicability: mark only the items that apply as affected, and propose the smallest fix for each. Mark the rest "no change needed" and give the reason (no such code, branches on error codes, and so on).Failure conditions: if you can reproduce sending with an expired blockhash, double-counted rewards or an exception on an unknown value, show the input and the result.Correctness: after the fix, the code must reach the same decision against both v4.4 and v4.5 nodes.Before-and-after comparison: compare responses and errors before and after the fix using the same message and inputs, the same commitment and the same node conditions (two endpoints with recorded versions, for example a 4.4.2 node and the devnet 4.5.0-beta.0 node). When the comparison spans different clusters, do not attribute differences to the version alone.Stay within your existing permissions and limit yourself to read-only RPC calls and local tests. Do not change production settings, merge PRs, sign contracts, incur charges, or send real funds or trades.
Prompt A: RPC compatibility audit (Agave v4.5)Target: [repository, services that call RPC, RPC endpoint in use]Start by reading the current code. Identify the Solana SDK in use and its version, every RPC method the code calls (including calls made inside the SDK), and the version of the node it calls (getVersion). Do not fill gaps by guessing; mark anything you cannot confirm as "unconfirmed".For each of the following, decide whether it applies and point to the code. Does the code treat a null from getFeeForMessage as "the blockhash has expired"? Does it call getProgramAccounts, getLargestAccounts, getSupply, getTokenLargestAccounts, getTokenAccountsByOwner, getTokenAccountsByDelegate or /v0/circulating-supply (deprecated in v4.5 with unchanged responses; removal is on the v5.0 development line)? If it does, show where to move to methods that fetch only what is needed (getProgramAccountsV2, getMultipleAccounts, subscriptions and so on). Does it pass an older range with minContextSlot to getBlocksWithLimit? Does it branch on error message text? Does it assume one entry per pubkey in the getBlock rewards array, or match reward types exhaustively? Does it use amount from getInflationReward as the inflation reward? Does it read jsonParsed ProgramData at fixed offsets?Applicability: mark only the items that apply as affected, and propose the smallest fix for each. Mark the rest "no change needed" and give the reason (no such code, branches on error codes, and so on).Failure conditions: if you can reproduce sending with an expired blockhash, double-counted rewards or an exception on an unknown value, show the input and the result.Correctness: after the fix, the code must reach the same decision against both v4.4 and v4.5 nodes.Before-and-after comparison: compare responses and errors before and after the fix using the same message and inputs, the same commitment and the same node conditions (two endpoints with recorded versions, for example a 4.4.2 node and the devnet 4.5.0-beta.0 node). When the comparison spans different clusters, do not attribute differences to the version alone.Stay within your existing permissions and limit yourself to read-only RPC calls and local tests. Do not change production settings, merge PRs, sign contracts, incur charges, or send real funds or trades.
Prompt B: Geyser and Solana Stream SDK compatibility check (Agave v4.5)Target: [repository, gRPC receiving code, gRPC endpoint in use]Start by reading the current code. Identify the SDK in use (Solana Stream SDK, a yellowstone-grpc client or similar) and its version, the version of the protobuf crate or package it depends on, which RPC it uses (Subscribe or SubscribeGossip), and the code that processes received updates. Do not fill gaps by guessing; mark anything you cannot confirm as "unconfirmed".State the boundary between plugin and client explicitly. The Agave v4.5 change to contact info notifications is a Geyser plugin change and does not reach clients that only use Subscribe. The client-visible differences are two: BlockRevenueSharing = 7 in RewardType (which flows only after the SIMD-0123 gate activates) and the optional field txn_index = 9 in SubscribeUpdateAccountInfo.Applicability: mark as affected only code that matches reward types exhaustively, throws on unknown enum values, strictly validates the set of fields, or uses SubscribeGossip, and propose the smallest fix for each. If none applies, mark it "no change needed" and give the reason.Failure conditions: if you can reproduce processing stopping on an unknown enum value, duplicates processed twice, a range skipped after reconnecting, or memory growing without bound under backpressure, show the input and the result.Correctness: over the same range, the set of received slot, transaction and account updates must match, with no duplicates and no gaps. Check ordering by ascending write_version for the same account and by how slot status advances; do not use arrival order against a different node as the benchmark.Before-and-after comparison: with the same filter, the same commitment, the same range and the same node conditions (v4.4 and v4.5 endpoints with recorded versions), compare ordering, duplicates, gaps, reconnects, flow control, memory and processing latency before and after the change. Do not judge on processing time alone; judge on results with gaps and duplicates excluded. When the comparison spans different clusters, do not attribute differences to the version alone.Stay within your existing permissions and limit yourself to read-only subscriptions and local tests. Do not change production settings, merge PRs, sign contracts, incur charges, or place real trades.
Prompt B: Geyser and Solana Stream SDK compatibility check (Agave v4.5)Target: [repository, gRPC receiving code, gRPC endpoint in use]Start by reading the current code. Identify the SDK in use (Solana Stream SDK, a yellowstone-grpc client or similar) and its version, the version of the protobuf crate or package it depends on, which RPC it uses (Subscribe or SubscribeGossip), and the code that processes received updates. Do not fill gaps by guessing; mark anything you cannot confirm as "unconfirmed".State the boundary between plugin and client explicitly. The Agave v4.5 change to contact info notifications is a Geyser plugin change and does not reach clients that only use Subscribe. The client-visible differences are two: BlockRevenueSharing = 7 in RewardType (which flows only after the SIMD-0123 gate activates) and the optional field txn_index = 9 in SubscribeUpdateAccountInfo.Applicability: mark as affected only code that matches reward types exhaustively, throws on unknown enum values, strictly validates the set of fields, or uses SubscribeGossip, and propose the smallest fix for each. If none applies, mark it "no change needed" and give the reason.Failure conditions: if you can reproduce processing stopping on an unknown enum value, duplicates processed twice, a range skipped after reconnecting, or memory growing without bound under backpressure, show the input and the result.Correctness: over the same range, the set of received slot, transaction and account updates must match, with no duplicates and no gaps. Check ordering by ascending write_version for the same account and by how slot status advances; do not use arrival order against a different node as the benchmark.Before-and-after comparison: with the same filter, the same commitment, the same range and the same node conditions (v4.4 and v4.5 endpoints with recorded versions), compare ordering, duplicates, gaps, reconnects, flow control, memory and processing latency before and after the change. Do not judge on processing time alone; judge on results with gaps and duplicates excluded. When the comparison spans different clusters, do not attribute differences to the version alone.Stay within your existing permissions and limit yourself to read-only subscriptions and local tests. Do not change production settings, merge PRs, sign contracts, incur charges, or place real trades.
# point this at your startup script or systemd unitgrep -nE -- "--vote-use-quic|--require-tower|--tpu-max-connections-per-peer|--enable-banking-trace|--tpu-vote-transaction-receive-threads|--full-snapshot-interval-slots|--xdp-zero-copy|--no-xdp|--full-rpc-api|--enable-rpc-transaction-history" /path/to/validator-start.shagave-validator --version
# point this at your startup script or systemd unitgrep -nE -- "--vote-use-quic|--require-tower|--tpu-max-connections-per-peer|--enable-banking-trace|--tpu-vote-transaction-receive-threads|--full-snapshot-interval-slots|--xdp-zero-copy|--no-xdp|--full-rpc-api|--enable-rpc-transaction-history" /path/to/validator-start.shagave-validator --version
Prompt C: Validator configuration migration audit (Agave v4.5)Target: [node role (validator or RPC node), startup script or systemd unit, name of the staging environment]Start by identifying the current agave-validator version (agave-validator --version), the full set of startup flags, the network setup (XDP use, open ports), snapshot settings (full and incremental intervals), the operations scripts that act on repair and vote accounts, and the Geyser plugins loaded with their build versions. Do not fill gaps by guessing; mark anything you cannot confirm as "unconfirmed".Compare against the v4.5 CHANGELOG (the copy on the v4.5 branch) and classify flags and settings as: deprecated but accepted (--vote-use-quic, --require-tower, --tpu-max-connections-per-peer); deprecated no-op (--enable-banking-trace); default changed (--full-snapshot-interval-slots when unset); new (--no-xdp-zero-copy); new required argument (--pubkey for repair-shred-from-peer, --allow-vat-withdrawal for withdraw-from-vote-account --sign-only). List items that appear only in the "4.5.0" section of the master CHANGELOG (such as the deprecation of --tpu-vote-transaction-receive-threads) separately as "not in rc.1".Applicability: for the classified items that match the current configuration only, propose a change and give the reason.Failure conditions: point out where the node could fail to start, fail at startup on XDP setup, change its snapshot interval unintentionally, or break an operations script.Correctness and monitoring: in the staging environment, with the same configuration, the same load and the same cluster conditions, compare startup success, catch-up time, voting, repair, snapshot creation and Geyser plugin loading before and after moving to v4.5. List the metrics to monitor and the conditions under which you would roll back to v4.4. State explicitly in the procedure that rollback to v4.4 cannot be assumed once a feature account has been created (reserved) for any gate that requires v4.5.Stay within your existing permissions and limit yourself to reading configuration and checking in staging. Do not change production nodes, merge PRs, sign contracts, incur charges, or place real trades.
Prompt C: Validator configuration migration audit (Agave v4.5)Target: [node role (validator or RPC node), startup script or systemd unit, name of the staging environment]Start by identifying the current agave-validator version (agave-validator --version), the full set of startup flags, the network setup (XDP use, open ports), snapshot settings (full and incremental intervals), the operations scripts that act on repair and vote accounts, and the Geyser plugins loaded with their build versions. Do not fill gaps by guessing; mark anything you cannot confirm as "unconfirmed".Compare against the v4.5 CHANGELOG (the copy on the v4.5 branch) and classify flags and settings as: deprecated but accepted (--vote-use-quic, --require-tower, --tpu-max-connections-per-peer); deprecated no-op (--enable-banking-trace); default changed (--full-snapshot-interval-slots when unset); new (--no-xdp-zero-copy); new required argument (--pubkey for repair-shred-from-peer, --allow-vat-withdrawal for withdraw-from-vote-account --sign-only). List items that appear only in the "4.5.0" section of the master CHANGELOG (such as the deprecation of --tpu-vote-transaction-receive-threads) separately as "not in rc.1".Applicability: for the classified items that match the current configuration only, propose a change and give the reason.Failure conditions: point out where the node could fail to start, fail at startup on XDP setup, change its snapshot interval unintentionally, or break an operations script.Correctness and monitoring: in the staging environment, with the same configuration, the same load and the same cluster conditions, compare startup success, catch-up time, voting, repair, snapshot creation and Geyser plugin loading before and after moving to v4.5. List the metrics to monitor and the conditions under which you would roll back to v4.4. State explicitly in the procedure that rollback to v4.4 cannot be assumed once a feature account has been created (reserved) for any gate that requires v4.5.Stay within your existing permissions and limit yourself to reading configuration and checking in staging. Do not change production nodes, merge PRs, sign contracts, incur charges, or place real trades.
which cargo-build-sbf # which copy is in usecargo build-sbf --version # its versioncargo install cargo-build-sbf --force --locked # install separately from Agave (also installs cargo-test-sbf)solana --version
which cargo-build-sbf # which copy is in usecargo build-sbf --version # its versioncargo install cargo-build-sbf --force --locked # install separately from Agave (also installs cargo-test-sbf)solana --version
solana program deploy ไม่สลับไปใช้ keypair ชั่วคราว (ephemeral) โดยอัตโนมัติอีกต่อไป ให้ส่ง key ของ program id หรือขอใช้ key ชั่วคราวอย่างชัดเจน
bash
solana program deploy ./target/deploy/my_program.so --program-id ./my_program-keypair.json# only when an ephemeral key is acceptable, say so explicitlysolana program deploy ./target/deploy/my_program.so --generate-ephemeral-program-id
solana program deploy ./target/deploy/my_program.so --program-id ./my_program-keypair.json# only when an ephemeral key is acceptable, say so explicitlysolana program deploy ./target/deploy/my_program.so --generate-ephemeral-program-id
การเปลี่ยนแปลง
กรณีที่ได้รับผลกระทบ
ไม่มี prebuilt binary สำหรับ macOS x86-64 หรือ Windows
Prompt D: CLI development environment compatibility check (Agave v4.5)
text
Prompt D: CLI development environment compatibility check (Agave v4.5)Target: [repository, OS and CPU of development machines, CI image and workflow]Start by identifying the current solana CLI version (solana --version), the location and version of cargo-build-sbf (which cargo-build-sbf, cargo build-sbf --version), how Agave is installed (agave-install or a package), the OS and CPU of development machines and CI, the scripts that call program deploy and test-validator, any hardware wallet use, and any code that hard-codes rent amounts. Do not fill gaps by guessing; mark anything you cannot confirm as "unconfirmed".Compare against the official v4.5 artifacts: cargo-build-sbf and cargo-test-sbf are not bundled (install them separately with cargo install cargo-build-sbf --force --locked); prebuilt binaries are only aarch64-apple-darwin and x86_64-unknown-linux-gnu; the solana CLI creates txv1 transactions; solana program deploy no longer falls back silently to an ephemeral key (pass --program-id or --generate-ephemeral-program-id); solana-test-validator activates Alpenglow at genesis.Applicability: propose changes only for items that apply (splitting CI steps, adding deploy arguments, and so on). If an item does not apply, mark it "no change needed" and give the reason.Failure conditions: if you can reproduce cargo build-sbf failing with no such command, an old cargo-build-sbf being picked up from PATH, deploy stopping for lack of a key, a hardware wallet failing to sign, or a TowerBFT-dependent test failing, show the steps and the result.Correctness: with the same source, the same lockfile and the same build arguments such as --arch, build success, artifacts and test results must match before and after the move to v4.5 (explain any difference).Before-and-after comparison: in a test environment (locally or on a separate CI branch), run the v4.4 and v4.5 CLIs on the same input and compare build, test and devnet deployment results.Stay within your existing permissions and limit yourself to local and test-environment checks. Do not upgrade production programs, deploy to mainnet, merge PRs, sign contracts, incur charges, or place real trades.
Prompt D: CLI development environment compatibility check (Agave v4.5)Target: [repository, OS and CPU of development machines, CI image and workflow]Start by identifying the current solana CLI version (solana --version), the location and version of cargo-build-sbf (which cargo-build-sbf, cargo build-sbf --version), how Agave is installed (agave-install or a package), the OS and CPU of development machines and CI, the scripts that call program deploy and test-validator, any hardware wallet use, and any code that hard-codes rent amounts. Do not fill gaps by guessing; mark anything you cannot confirm as "unconfirmed".Compare against the official v4.5 artifacts: cargo-build-sbf and cargo-test-sbf are not bundled (install them separately with cargo install cargo-build-sbf --force --locked); prebuilt binaries are only aarch64-apple-darwin and x86_64-unknown-linux-gnu; the solana CLI creates txv1 transactions; solana program deploy no longer falls back silently to an ephemeral key (pass --program-id or --generate-ephemeral-program-id); solana-test-validator activates Alpenglow at genesis.Applicability: propose changes only for items that apply (splitting CI steps, adding deploy arguments, and so on). If an item does not apply, mark it "no change needed" and give the reason.Failure conditions: if you can reproduce cargo build-sbf failing with no such command, an old cargo-build-sbf being picked up from PATH, deploy stopping for lack of a key, a hardware wallet failing to sign, or a TowerBFT-dependent test failing, show the steps and the result.Correctness: with the same source, the same lockfile and the same build arguments such as --arch, build success, artifacts and test results must match before and after the move to v4.5 (explain any difference).Before-and-after comparison: in a test environment (locally or on a separate CI branch), run the v4.4 and v4.5 CLIs on the same input and compare build, test and devnet deployment results.Stay within your existing permissions and limit yourself to local and test-environment checks. Do not upgrade production programs, deploy to mainnet, merge PRs, sign contracts, incur charges, or place real trades.