Solana Agave v4.5 更新:帳戶取得方式的改變與確認重點

Agave 是由 Anza 開發的 Solana 驗證節點用戶端(節點軟體)。呼叫 RPC 的應用程式不需要自行安裝它;當你連線的節點升級到 v4.5 時,應用程式就會受到影響。Agave v4.5 開始讓 Solana RPC 從取得某個程式擁有的全部帳戶,轉向只取得你需要的帳戶。在 ERPC 的 Edge RPC 上(與 v4.5 無關),對 1 個程式只取得約一天內的變更,資料量約為取得全部的 1/430(測量的是當天有 8 個帳戶變更的程式)。在 v4.5 中,一次回傳全部帳戶的 RPC 方法已列為棄用,但仍和以前一樣回應。v4.5 也新增了 P-256 syscall,讓程式能在自己的程式碼中驗證通行密鑰(passkey)簽章(啟用後才能使用)。
第 1 至 4 節整理變更重點;第 5 節「各角色的詳細說明」則為各角色列出具體步驟。對呼叫 RPC 的應用程式來說,首先要確認的是把
getFeeForMessage 回傳的 null 當成 blockhash 已過期的程式碼(v4.5 節點在 blockhash 過期時不再回傳 null;第 5-1 節)。對呼叫 RPC 的應用程式而言,除非第 2 節的第 2、3 項,或第 5-1 節的「受影響的程式碼」表格適用,否則不需要修改程式碼。包括驗證節點、Yellowstone gRPC、CLI 與 ERPC 端點在內,各角色該讀哪些部分,請見第 2 節的角色表。1. v4.5 的主要變更:帳戶取得與 P-256 syscall
1-1. 最小配置節點也能依地址取得帳戶(回傳全部帳戶的方法已列為棄用)
在 v4.5 中,即使是未加上
--full-rpc-api 的最小配置節點,也會回應 getAccountInfo 與 getMultipleAccounts。[6] 同時,getProgramAccounts 等一次回傳全部帳戶的方法已列為棄用。這些方法在 v4.5 上的回應方式不變,預計在 v5.0 移除。Anza 認為帳戶掃描不該在驗證節點上執行(原文:「the validator should not be the place they run」),並建議將它們移到索引器。[1]獨立於 v4.5 之外,ERPC 已經提供只取得所需資料的方式(你的方案與金鑰能否呼叫:見第 5-2 節)。ERPC Edge RPC 的
getProgramAccountsV2 會逐頁回傳帳戶;指定 changedSinceSlot 時,只回傳在該 slot 之後變更的帳戶。標準方法 getMultipleAccounts 可一次取得最多 100 個已知地址的帳戶,在 v4.5 上連最小配置節點也會回應。我們在 ERPC 的 Edge RPC 上呼叫了這兩個方法,確認可以運作。以訂閱方式傳送變更的 Geyser gRPC 也可以使用(本文依據其文件說明,並未實際測試)。第 5-2 節逐一列出各方法的遷移目標,以及找不到替代方法的方法。以下數字是在 ERPC 的 Edge RPC 上測量
getProgramAccountsV2 的結果,並非 v4.5 的功能。對同一個程式(Config program,3,467 個帳戶,約 3.77 MB),用 getProgramAccounts 一次取得全部需要 438 ms,getProgramAccountsV2 的第 1 頁(1,000 個帳戶)需要 270 ms,因此前 1,000 個帳戶的取得約快 1.6 倍。以 changedSinceSlot 只取得約一天內的變更,花了 354 ms,資料量 8.8 KB(8 個帳戶),約為全部大小的 1/430。這是 3,467 個帳戶中只有 8 個變更時的數值;能省下多少,取決於有多少帳戶變更。確認約 10 分鐘內的變更(結果沒有變更)花了 162 ms,約比取得全部快 2.7 倍。逐頁走完全部頁面(4 頁)來取得全部帳戶需要 1,378 ms,比一次呼叫慢。總之,getProgramAccountsV2 在只取得所需資料時能發揮效益。(所有數字:1 個程式,從 1 台機器連到 edge.erpc.global,每次呼叫都建立新的 TLS 連線,取 5 次的中位數,測於 2026 年 12 月 2 日 15:03 UTC。)我們沒有測量 v4.5 節點本身的回應時間。圖 1 | 取得全部為 3.77 MB,只取得變更則為 8.8 KB。在 ERPC 的 Edge RPC 上測量,並非 v4.5 的功能。約 1 天內,3,467 個帳戶中有 8 個變更。Config program(3,467 個帳戶),比較 getProgramAccounts 與使用 changedSinceSlot 的 getProgramAccountsV2。從 1 台機器測量 5 次取中位數,2026 年 12 月 2 日 15:03 UTC

1-2. 讓程式驗證通行密鑰簽章的 P-256 syscall(啟用後)
v4.5 的 P-256 syscall 啟用後,程式就能在自己的程式碼中驗證通行密鑰簽章。
通行密鑰無法作為交易的簽署者,因此通行密鑰錢包要靠程式來驗證 P-256 簽章。這項驗證如今已經可以在主網上透過預編譯程式(內建於驗證節點、格式固定的檢查)進行。v4.5 新增了一個 syscall,讓程式能直接呼叫 P-256 的曲線運算,但它尚未啟用。啟用後,程式就能自行實作這項驗證,不必受限於預編譯程式的固定格式。Anza 表示,這讓以指紋或臉部簽署、不需要助記詞的錢包更接近成真。[1] 運作方式請見第 5-6 節。
我們已在 ERPC CLI 中著手開發以通行密鑰進行錢包簽署的支援,目前尚未包含在公開版本中。
2. 需要做的事與確認重點
對大多數應用程式而言,需要確認的有 3 件事。
- 用
getVersion確認你連線的節點版本。v4.5 的大部分變更,在該節點升級到 v4.5 時就會生效。devnet 的公開 RPC 已經在執行4.5.0-beta.0(這個建置早於已建議用於最多 20% 質押量的 rc.1;見附錄 C),所以現在就能試用。 - 確認你的程式碼是否把
getFeeForMessage回傳的null視為 blockhash 已過期。v4.5 節點在 blockhash 過期時不再回傳null(第 5-1 節)。 - 確認你是否呼叫了回傳全部帳戶的方法(
getProgramAccounts、getLargestAccounts、getSupply、getTokenLargestAccounts、getTokenAccountsByOwner與getTokenAccountsByDelegate,以及 HTTP 端點/v0/circulating-supply)。常用來讀取代幣餘額的getTokenAccountsByOwner也包括在內。與第 2 項不同,這些方法在 v4.5 上的回應不變,所以不會立刻出問題;請在移除之前完成遷移(v5.0,尚未公布發布日期)。如果有呼叫,請依照下面的 4 個步驟找出遷移目標(第 5-2 節;找不到替代方法的方法列在該節表格的最後一列)。
圖 2 | 不破壞現有運作的 4 個遷移步驟。已棄用的方法在 v4.5 上仍照常回應;預計在 v5.0 移除(尚未公布發布日期)。沿用舊方法(步驟 4)只在 v5.0 移除之前可行(在 ERPC 端點上,則是在第 4 節所述的停止提供之前)

第 5 節說明各角色需要確認的事項。第 5-2 至 5-5 節的結尾各附有一段提示詞,可以交給你的 AI 程式設計助理來檢查程式碼(Prompt A 至 Prompt D)。
| 角色 | 詳細說明 | 首先確認 |
|---|---|---|
| RPC 應用程式 | 5-1、5-2(Prompt A) | 程式碼是否把 getFeeForMessage 回傳的 null 視為 blockhash 已過期。 |
| Geyser plugin | 5-3(Prompt B) | contact info 的回呼能否處理重複的項目。 |
| Yellowstone 用戶端 | 5-3(Prompt B)、5-9 | 使用的是 Subscribe 還是 SubscribeGossip。 |
| 驗證節點與 RPC 節點 | 5-4(Prompt C)、5-7、5-8(何時升級)、5-1、5-2(要告知使用者的事項) | 是否使用了已棄用或已變更的啟動旗標。 |
| CLI 與程式 | 5-5、5-6(Prompt D) | 是否與 Agave 分開安裝 cargo-build-sbf。 |
| Solana Stream SDK 與 ERPC CLI 的使用者 | 5-9 | 你自己的程式碼是否呼叫 SubscribeGossip 或回傳全部帳戶的方法。 |
| ERPC 端點的使用者 | 第 4 節、5-2 | 你的端點上會有哪些改變、何時改變,也包括尚未公布日期的項目。 |
3. 時程
主網的升級才剛起步:截至 12 月 2 日,執行 v4.5 的驗證節點持有 2.79% 的質押量。Anza 預定在 12 月 7 日建議全面採用 v4.5,並預定在 12 月 14 日開始啟用其新功能(皆為 UTC)。12 月 14 日是時程上的目標日期:要在 95% 的質押量採用新的次要版本、並經過完整的 2 個 epoch 之後才會開始啟用(第 5-7 節),因此日期可能變動。升級軟體與啟用新功能(feature gate)是不同的階段,而 v4.5 的 feature gate 目前在任何叢集上都尚未啟用。
圖 3 | Agave v4.5 主網升級時程(截至 12 月 2 日)。11 月 30 日是開始徵求早期採用者的日期。標記間距未依實際比例

詳細日期與測量值請見第 5-7 節。
4. 如果你使用 ERPC
如果你使用 ERPC 的端點,請確認與第 2 節相同的事項。只取得所需資料的方式(Edge RPC 上的
getProgramAccountsV2 與 DAS,以及 Geyser gRPC 訂閱;DAS 不是 Agave 的標準 RPC 方法,而是 ERPC 在 Edge RPC 上提供的 API)現在已可在 ERPC 上使用(getProgramAccountsV2 已呼叫確認;DAS 與 Geyser gRPC 有文件記載,但本文並未實際測試;若要確認你目前的方案與金鑰能否呼叫,請依第 5-2 節的說明使用支援聊天)。就 ERPC 自身的營運狀態而言(並非本文的測量結果),截至 12 月 2 日,ERPC 的主網節點執行的是 v4.4。v4.5 新增的方法(例如
getVatActiveSetRankMap)無法在 v4.4 節點上使用。你可以用 getVersion 確認你自己所用端點的版本(第 5-1 節)。在 v4.5 被建議全面採用、且 v4.5 穩定版發布之後,我們會分階段升級 ERPC 的節點。Anza 的預定日期請見第 3 節。
我們也會在 ERPC 上分階段停止提供 v4.5 已棄用的方法。截至 12 月 2 日,尚未公布停止日期。第 5-2 節逐一列出各方法的遷移目標,以及找不到替代方法的方法。v4.5 節點仍會像以前一樣回應這些方法,因此它們不會在節點升級當天停止運作。
在 ERPC 的 gRPC 上,當提供 gRPC 的節點上的 plugin 升級為 v4.5 的建置時,第 5-3 節的變更就會適用。截至 12 月 2 日,尚未公布這次升級的日期。你可以用 gRPC 的
GetVersion 確認是否已升級。截至 12 月 2 日,支援 v4.5 的 Yellowstone gRPC 仍是候選版本(rc)(第 5-3 節)。如果你使用的方法沒有明確的替代方法,或不確定如何遷移,請透過 ERPC Dashboard 中的支援聊天與我們聯繫。
5. 各角色的詳細說明
第 5-1 至 5-6 節依角色分類。請閱讀第 2 節角色表「詳細說明」欄中列出的節(驗證節點與 RPC 節點也請閱讀 5-7 與 5-8)。第 5-7 與 5-8 節是適用於所有人的補充說明,第 5-9 節則寫給 Solana Stream SDK 與 ERPC CLI 的使用者。
5-1. RPC 應用程式:getFeeForMessage 的 null 與回應格式的變更
getFeeForMessage 現在減輕了節點的工作。v4.5 節點以 view 的形式讀取訊息,只根據 compute budget 與簽章數量計算手續費,不讀取帳戶或 blockhash 佇列(Agave PR #16519)。因此,有一種回應會改變。首先,確認你連線的節點版本。bash
curl -s https://api.devnet.solana.com -H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"getVersion"}'curl -s https://api.devnet.solana.com -H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"getVersion"}'公開 RPC 的版本列在下表左欄。在 v4.5 上,blockhash 過期時
getFeeForMessage 不再回傳 null,而是回傳只根據訊息計算出的手續費。[6] 以下是把一筆帶有任何叢集上都不存在的 blockhash(0x07…07)的 1 lamport 轉帳,送到 3 個端點的結果(我們只用不存在的 blockhash 測量;v4.5 只根據訊息計算手續費、不檢查 blockhash 是否過期,因此過期的 blockhash 也會得到相同的值)。bash
MSG='AQABAwdhSB01dHS7fE12JOvTvbPYNV5z0RBD/A2jU4AAAAAABqHYF5E3VCqYNDe9/ip6slV/U1yKeHIraKSdwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHAQICAAEMAgAAAAEAAAAAAAAA'
curl -s https://api.devnet.solana.com -H 'content-type: application/json' \
-d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"getFeeForMessage\",\"params\":[\"$MSG\",{\"commitment\":\"finalized\"}]}"MSG='AQABAwdhSB01dHS7fE12JOvTvbPYNV5z0RBD/A2jU4AAAAAABqHYF5E3VCqYNDe9/ip6slV/U1yKeHIraKSdwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHAQICAAEMAgAAAAEAAAAAAAAA'
curl -s https://api.devnet.solana.com -H 'content-type: application/json' \
-d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"getFeeForMessage\",\"params\":[\"$MSG\",{\"commitment\":\"finalized\"}]}"| 端點與版本(12 月 2 日 07:27–07:30 UTC) | 有效的 blockhash | 不存在的 blockhash |
|---|---|---|
mainnet-beta (4.4.2) | "value": 5000 | "value": null |
testnet (4.4.2) | "value": 5000 | "value": null |
devnet (4.5.0-beta.0) | "value": 5000 | "value": 5000 |
用
null 判斷 blockhash 是否過期的程式碼,在 v4.5 節點上就無法再做出這個判斷,會接著以過期的 blockhash 送出交易。只讀取手續費數值的程式碼不受影響。若要確認 blockhash 是否有效,請比較 getLatestBlockhash 回傳的 lastValidBlockHeight 與目前的區塊高度,或使用 isBlockhashValid。simulateTransaction 新增了 innerInstructionsEncoding: "json",會以編譯後的形式回傳內部指令(僅在你設定時)。[6]其餘變更只影響符合各自條件的程式碼。
| 變更 | 受影響的程式碼 |
|---|---|
getBlocksWithLimit 會先檢查 minContextSlot(尚未到達時回傳 -32016) | 向以 BigTable 為後端的節點查詢較舊範圍的程式碼 |
getInflationReward 新增 blockRewardAmount。SIMD-0123 啟用後,amount 會包含區塊獎勵,通膨獎勵則為 amount - blockRewardAmount | 把 amount 當作通膨獎勵使用的程式碼 |
SIMD-0123 啟用後,在 getBlock 的 rewards 中,一個質押帳戶可能有 2 筆紀錄 | 假設每個 pubkey 只有一筆 rewards 紀錄的程式碼 |
| 部分錯誤訊息的文字改變 | 依訊息文字分支的程式碼 |
jsonParsed 的 ProgramData 格式改變 | 以固定偏移量讀取它的工具 |
新方法
getVatActiveSetRankMap 是給 Alpenglow 相關工具使用的;現有的應用程式不需要變更。5-2. 回傳全部帳戶的方法該遷移到哪裡
大多數回傳全部帳戶的方法,都可以改用只取得所需資料的方式(表格最後一列列出找不到替代方法的方法)。這些方法在 v4.5 上的回應不變,所以你現在就可以著手遷移。
已棄用的方法是
getProgramAccounts、getLargestAccounts、getSupply、getTokenLargestAccounts、getTokenAccountsByOwner 與 getTokenAccountsByDelegate,以及 HTTP 端點 /v0/circulating-supply。在 v4.5 中,它們只是加上了 #[deprecated(since = "4.5.0")] 標記,回應沒有改變。[6] 移除這些方法的變更已合併到 v5.0 的開發線(master),而 v5.0 的發布日期尚未公布。[7] 請用下面的 grep 找出呼叫它們的位置(圖 2 的步驟 1;這也會找到 SDK 的函式名稱。若要找出只在 SDK 內部發出的呼叫,請檢查端點的日誌,或記錄你的應用程式送出的 RPC 請求)。bash
grep -rnE "ProgramAccounts|LargestAccounts|getSupply|TokenAccountsByOwner|TokenAccountsByDelegate|program_accounts|largest_accounts|get_supply|token_accounts_by_owner|token_accounts_by_delegate|circulating-supply" \
--include='*.ts' --include='*.tsx' --include='*.js' --include='*.jsx' --include='*.mjs' --include='*.rs' --include='*.py' --include='*.go' \
--exclude-dir=node_modules --exclude-dir=target .grep -rnE "ProgramAccounts|LargestAccounts|getSupply|TokenAccountsByOwner|TokenAccountsByDelegate|program_accounts|largest_accounts|get_supply|token_accounts_by_owner|token_accounts_by_delegate|circulating-supply" \
--include='*.ts' --include='*.tsx' --include='*.js' --include='*.jsx' --include='*.mjs' --include='*.rs' --include='*.py' --include='*.go' \
--exclude-dir=node_modules --exclude-dir=target .遷移目標如下(圖 2 的步驟 3;Edge RPC 與 Unlimited 如何處理這些方法寫在表格下方,停止提供的計畫則在第 4 節):
| 已棄用的方法或端點 | 遷移目標 | 狀態 |
|---|---|---|
getProgramAccounts | getProgramAccountsV2、getMultipleAccounts(已知地址時)、Geyser gRPC 訂閱 | 已呼叫確認(訂閱依文件記載,本次未測試) |
getTokenAccountsByOwner | DAS getTokenAccounts | 文件有記載(本次未測試) |
getTokenLargestAccounts | 用 DAS getTokenAccounts 收集後排序(部分替代) | 文件有記載(本次未測試) |
getTokenAccountsByDelegate | DAS getTokensByDelegate(部分替代) | 文件有記載(本次未測試) |
getLargestAccounts、getSupply、/v0/circulating-supply | 未找到替代方法 | 未找到 |
如果知道 mint,也可以不用
getTokenAccountsByOwner,而是推導出 ATA(SPL Token 的 Associated Token Account,其地址由擁有者與 mint 決定),再用 getMultipleAccounts 或 getTokenAccountBalance 讀取(這在 ERPC 以外的 RPC 供應商上也可行)。這種做法只會讀取 ATA,因此無法涵蓋擁有者的所有代幣帳戶。DAS getTokenAccounts 的 params 接受一個物件,其中包含擁有者的地址(ownerAddress)等欄位(記載於 ERPC API 參考文件;本文並未呼叫它)。如果你使用它,請將其結果與 getTokenAccountsByOwner 的結果比較(圖 2 的步驟 3)。getProgramAccountsV2 與 DAS 方法(DAS 不屬於 Agave 的標準)是 Edge RPC(edge.erpc.global)的方法。如果你呼叫的是 edge.erpc.global,不必切換端點就能直接送出這些方法(你的金鑰與方案是否允許:見下文)。它們不是 Agave 的標準方法,因此 ERPC 以外的 RPC 是否提供,請查閱你的供應商的文件。根據公開文件,Unlimited 端點會以 -32601 拒絕 DAS 方法等呼叫,並指示改到 Edge RPC 的 https://edge.erpc.global?api-key=<YOUR_API_KEY> 呼叫;Edge RPC 則會在處理請求前檢查你的 RPC 金鑰與方案。若要確認你目前的方案與金鑰能否呼叫 getProgramAccountsV2 或 DAS 方法,或是詢問沒有替代方法的方法,請使用第 4 節提到的支援聊天。像下面這樣把
getProgramAccountsV2 送到 Edge RPC(請將 <PROGRAM_ID> 與 <YOUR_API_KEY> 換成你自己的值)。把回應中的 paginationKey 以 {"encoding":"base64","limit":1000,"paginationKey":"<PAGINATION_KEY>"} 的形式放進下一個請求的 config,就能取得下一頁;或是把 changedSinceSlot 設為某個 slot,只取得在該 slot 之後變更的帳戶。如果你的應用程式在啟動時需要全部帳戶,一種做法是先把所有頁面讀過一次,之後只取得變更。每次取得之前,先用 getSlot 取得 slot 並保存下來;下次取得時,把該 slot 作為 changedSinceSlot 傳入。端點與取得 RPC 金鑰的方式,請見 ERPC Edge RPC 文件。bash
curl -s 'https://edge.erpc.global?api-key=<YOUR_API_KEY>' -H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"getProgramAccountsV2","params":["<PROGRAM_ID>",{"encoding":"base64","limit":1000}]}'curl -s 'https://edge.erpc.global?api-key=<YOUR_API_KEY>' -H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"getProgramAccountsV2","params":["<PROGRAM_ID>",{"encoding":"base64","limit":1000}]}'Prompt A: RPC compatibility audit (Agave v4.5)
text
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.5-3. Yellowstone gRPC 與 Geyser:只使用 Subscribe 時,受影響的是 2 項 proto 變更
v4.5 的 Geyser 變更大多不會影響只使用
Subscribe 的用戶端。這是因為 contact info 不是透過 Subscribe 傳送,而是透過 SubscribeGossip 傳送。圖 4 | 重複的 contact info 不會經由 Subscribe 傳送,只有在你自己的程式碼呼叫 SubscribeGossip 時才可能到達你的應用程式;實際是否到達取決於你連線的串流伺服器,請向該處確認

在 plugin 這一層,contact info 通知現在會包含沒有任何變化、再次送出的重複 contact info,回呼可能每秒發生數千次。
contact_info_notifications_enabled() 回傳 true 的 plugin,應自行捨棄重複項目,並讓回呼處理保持簡短。[6] 如前所述,contact info 不會透過 Subscribe 傳送,因此在用戶端這一側,只有使用 SubscribeGossip 的用戶端可能受到重複 contact info 的影響。[8] 如果你使用 SubscribeGossip,請假設可能收到重複項目:當更新與同一個節點 pubkey 的前一個值相同時就捨棄,並讓處理保持簡短。本文沒有確認串流伺服器是否會過濾重複的 contact info。用戶端會看到 2 項 proto 變更。這些變更在你的端點背後的 plugin 升級為 v4.5 的建置時適用。截至 12 月 2 日,支援 v4.5 的 Yellowstone gRPC 仍是候選版本(rc;最新為
v18.0.0-rc5+solana.4.5.0.rc.1),最新的穩定版是 v17.0.3+solana.4.4.2。[8]| 變更 | 受影響的用戶端 |
|---|---|
RewardType 新增 BlockRevenueSharing = 7(在 SIMD-0123 啟用後才會送出;截至 12 月 2 日,SIMD-0123 的 gate 尚未啟用,見第 5-7 節;沒有一手資料說明它是否包含在預定 12 月 14 日開始的啟用之中) | 以窮舉方式比對獎勵類型的用戶端(請加入遇到未知值也不會停止的分支) |
SubscribeUpdateAccountInfo 新增選用欄位 txn_index = 9 | 會拒絕未知欄位的用戶端 |
Prompt B: Geyser and Solana Stream SDK compatibility check (Agave v4.5)
text
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.5-4. 驗證節點與 RPC 節點:啟動旗標,以及可以退回 v4.4 到何時
表中已棄用的旗標在 v4.5 上全都仍會被接受。請透過下表確認 v4.5 如何處理各個旗標,以及哪些參數現在變成必填。
bash
# point this at your startup script or systemd unit
grep -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.sh
agave-validator --version# point this at your startup script or systemd unit
grep -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.sh
agave-validator --version| 旗標 | 在 v4.5 中 | 該怎麼做 |
|---|---|---|
--vote-use-quic、--require-tower | 已棄用(仍會被接受) | 可以移除(屬於 TowerBFT 的旗標;--require-tower 將在未來的版本中移除) |
--tpu-max-connections-per-peer N | 已棄用(在移除之前,它會覆寫 2 個新旗標) | 改用 --tpu-max-connections-per-staked-peer N 與 --tpu-max-connections-per-unstaked-peer N |
--enable-banking-trace | 已棄用且沒有作用(仍會被接受) | 可以移除 |
--full-snapshot-interval-slots | 預設值從 100,000 → 200,000 | 若要維持目前的間隔,請明確設定 |
--no-xdp-zero-copy | 明確選擇 XDP 複製模式的新旗標 | 除非你的 unit 使用它,否則不需要處理。不能與 --xdp-zero-copy 或 --no-xdp 併用 |
repair-shred-from-peer | 現在必須指定 --pubkey | 加上 --pubkey |
withdraw-from-vote-account --sign-only | 現在必須指定 --allow-vat-withdrawal | 加上 --allow-vat-withdrawal |
未加上 --full-rpc-api 的節點 | 現在會回應 getAccountInfo 與 getMultipleAccounts | 如果節點對外公開,請確認這 2 個方法對外開放是否沒有問題(加上 --full-rpc-api 的節點沒有變化) |
| Geyser plugin | 需要 v4.5 用的建置(截至 12 月 2 日,支援 v4.5 的 Yellowstone gRPC 只有候選版本;見第 5-3 節) | 針對 v4.5 重新建置。如果退回 v4.4,plugin 也要一併退回 v4.4 的建置 |
自
v4.4.2 起,提供 /v0/circulating-supply 就需要 --full-rpc-api。grep 中包含 --tpu-vote-transaction-receive-threads 與 --enable-rpc-transaction-history,是因為它們與附錄 A 的 2 個項目有關。表格補充說明:
--no-xdp-zero-copy 不會改變 Linux 上的預設值(自 v4.2 起為複製模式)。--xdp-zero-copy 與 --no-xdp 在 v4.5 上仍可照常使用。XDP 介面、位址或傳送器的設定失敗時,現在會顯示為啟動錯誤(在 v4.4 上,同樣的失敗會造成 panic;無論哪種情況,節點都不會啟動)。withdraw-from-vote-account 現在預設會保留足以支付下一次 VAT(Validator Admission Ticket)銷毀的 SOL,而 --allow-vat-withdrawal 會把這筆保留額計入可提領金額;由於離線時無法確認餘額,--sign-only 必須指定這個旗標。加上 --full-rpc-api 的節點原本就會回應 getAccountInfo 與 getMultipleAccounts。截至 12 月 2 日,支援 v4.5 的 Yellowstone gRPC 只有候選版本(rc),因此是否要搭配 rc 版的 plugin 升級,請先在 staging 環境確認 plugin 能正常載入後再決定。何時可以退回 v4.4:只有在需要 v4.5 的 gate 建立 feature account(已預約)之前,才能以退回 v4.4 為前提來規劃。一旦預約,該 gate 就會在下一個 epoch 開始時啟用,從那時起 v4.4 的二進位檔將無法跟上叢集(從預約到啟用的實例,請見第 5-7 節的 SHA-512 gate)。[4] 本文沒有確認在預約後、啟用前的期間能否退回。一手資料並未說明,單是提高最低版本(version floor;見第 5-7 節)是否就會讓 v4.4 節點停止。本文也沒有確認退回 v4.4 之後,帳本與快照是否仍保持相容。
升級時機:在全面採用的建議發布(預定 12 月 7 日)之後,安裝被建議全面採用的版本(請確認發行說明),並在任何需要 v4.5 的 gate 建立 feature account 之前完成升級。截至 12 月 2 日,一手資料中沒有各 gate 建立 feature account 的日期(啟用的開始以 12 月 14 日為目標日)。請規劃在 12 月 14 日之前完成,並用第 5-8 節的方法確認 feature account。在 staging 環境試用 v4.5 時,也請一併確認退回的步驟與決定退回的條件。
如果你對外提供 RPC:請告知使用者
getFeeForMessage 的 null 變更(第 5-1 節)與已棄用的方法(第 5-2 節),並告訴他們可以用 getVersion 確認節點版本。Prompt C: Validator configuration migration audit (Agave v4.5)
text
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.5-5. CLI 與程式:建置工具與部署參數
建置與部署相關的變更,會在你把自己的 Agave 升級到 v4.5 的那天生效。[6] 事先做好準備,升級當天建置就不會中斷。Agave 的發行版本不再附帶
cargo-build-sbf 與 cargo-test-sbf,請另行安裝,並在 CI 中為它們設立獨立的步驟。bash
which cargo-build-sbf # which copy is in use
cargo build-sbf --version # its version
cargo install cargo-build-sbf --force --locked # install separately from Agave (also installs cargo-test-sbf)
solana --versionwhich cargo-build-sbf # which copy is in use
cargo build-sbf --version # its version
cargo install cargo-build-sbf --force --locked # install separately from Agave (also installs cargo-test-sbf)
solana --versionsolana program deploy 不再自動改用臨時金鑰對。請傳入 program id 的金鑰,或明確要求使用臨時金鑰。bash
solana program deploy ./target/deploy/my_program.so --program-id ./my_program-keypair.json
# only when an ephemeral key is acceptable, say so explicitly
solana program deploy ./target/deploy/my_program.so --generate-ephemeral-program-idsolana program deploy ./target/deploy/my_program.so --program-id ./my_program-keypair.json
# only when an ephemeral key is acceptable, say so explicitly
solana program deploy ./target/deploy/my_program.so --generate-ephemeral-program-id| 變更 | 受影響的情況 |
|---|---|
| 沒有 macOS x86-64 或 Windows 的預先建置二進位檔 | 在這些平台上使用預先建置的二進位檔時 |
solana CLI 預設建立 txv1 交易 | 搭配硬體錢包使用 CLI 時 |
| test-validator 不再以 TowerBFT 啟動 | 有依賴 TowerBFT 的測試時 |
不要把租金(rent)金額寫死在程式碼中;請用
getMinimumBalanceForRentExemption 或 Rent sysvar 讀取。租金第 3 階段(2575 lamports/byte)與 SIMD-0500(停用 SBPF v0、v1 與 v2 程式的部署)都是在 v4.5 之前的版本中加入的 gate。在 testnet 上,租金第 3 階段(epoch 1093,11 月 20 日)與 SIMD-0500(epoch 1097,11 月 24 日)都已啟用;在 devnet 上,租金第 3 階段(epoch 1222,11 月 30 日)已啟用。你現在就可以試試租金金額改變時程式碼的行為。其他與程式開發者相關的 v4.5 變更,都要在啟用後才適用。數字取自各 SIMD 與 Anza。
| 變更 | 內容 |
|---|---|
| p-ATA(SIMD-0567) | 將 ATA 的 CU 減少 81% |
invoke_signed_v2(SIMD-0670) | 將 CPI 準備的成本最多降低 55% |
| txv1 的帳戶鎖定(SIMD-0596) | 上限從 64 → 96 |
| 租金調降第 4 階段(SIMD-0437) | 到第 4 階段為止,租金合計降低 81% |
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.5-6. P-256 syscall:通行密鑰簽章驗證的運作方式
通行密鑰的金鑰無法以簽署者的身分簽署交易(只有 Ed25519 金鑰可以)。因此,由程式來驗證 P-256 簽章。這項驗證在主網上已經可以運作。SIMD-0075 的預編譯程式自 2025 年 6 月 9 日起已啟用:在交易中加入預編譯程式的指令,再由程式透過 instructions sysvar 確認該指令(instruction introspection)。預編譯程式的格式是固定的:只接受壓縮公鑰,每個指令最多 8 個簽章。若在程式內以 sBPF 實作同樣的驗證,約需 42,000,000 CU(SIMD-0075 的數字)。
v4.5 新增了一個 syscall(SIMD-0565),讓程式能直接呼叫 P-256 的曲線運算(點驗證、解壓縮、加法、減法、純量乘法與多純量乘法)。P-256 是 Apple 的 Secure Enclave、Android Keystore、WebAuthn 與通行密鑰所使用的曲線。截至 12 月 2 日 08:12 UTC,這個 gate 在 3 個叢集上都沒有 feature account,也沒有一手資料說明它是否包含在預定 12 月 14 日(UTC)開始的啟用之中。
啟用後,程式可以呼叫這些曲線運算並自行實作驗證,不需要 instruction introspection。現有的預編譯程式也會繼續運作。Anza 表示,這讓 P-256 簽章驗證的成本低到可以在程式內執行。[1] 目前沒有一手資料提供單次驗證的 CU 成本,也沒有說明預編譯程式何時會移入程式中。
5-7. 遷移狀態詳情(截至 12 月 2 日)
把節點的軟體升級到 v4.5,與啟用新功能(feature gate),是兩件不同的事。Anza 將此比喻為擁有 5G 手機,與電信業者開通 5G 的那一天之間的差別。將發布時程與 GitHub 的 releases 對照後,到目前為止的事件如下(時程上的日期可能變動)。[2] [3]
| 里程碑 | 狀態 | 日期(UTC) |
|---|---|---|
建立 v4.5 分支 | 完成 | 2026 年 11 月 5 日 |
建議在 testnet 上採用(v4.5.0-beta.0) | 完成 | 2026 年 11 月 6 日 |
| devnet 升級到 v4.5 | 完成 | 2026 年 11 月 10 日 |
為主網候選版本加上 tag(v4.5.0-rc.0) | 完成 | 2026 年 11 月 25 日 |
建議最多 20% 的質押量採用 v4.5.0-rc.1 | 完成 | 2026 年 11 月 27 日 |
| 開始徵求合計佔 20% 質押量的驗證節點提前遷移 | 完成 | 2026 年 11 月 30 日 |
| 在主網上建議全面採用 | 預定 | 2026 年 12 月 7 日 |
| 主網開始啟用 | 預定 | 2026 年 12 月 14 日 |
根據 2026 年 12 月 2 日 08:12 UTC 從公開 RPC 取得的資料,v4.5 佔主網質押量的 2.79%,v4.4 佔 78.03%,
26.x 系列(Feature Gate Tracker 稱為 FD 的用戶端)佔 18.32%。依照 Feature Gate Tracker 的規則,在 95% 的質押量採用新的次要版本後,經過完整的 2 個 epoch(約 2 天),最低版本(叢集支援的最低軟體版本)就會被提高,並開始啟用。最低版本分別針對 Agave 與 FD 的版本訂定。12 月 14 日(UTC)是時程上的目標日期,而這條規則是開始啟用的條件。[4]testnet 依計畫於 11 月 30 日停止,並於 12 月 1 日 05:00 UTC 恢復運作。重新啟動程序中建議的版本是
v4.5.0-rc.1。[5] 截至 12 月 2 日,testnet 的公開 RPC 回傳 4.4.2,v4.5 佔 testnet 質押量的 31.76%。若要試用 v4.5 的行為,可以使用 devnet,它的公開 RPC 執行的是 4.5.0-beta.0(第 2 節的第 1 項)。devnet 的質押量有 97.27% 是 4.5.0-rc.1。公開 RPC 的版本只是單一節點的版本,與質押量的分布是兩回事。截至 12 月 2 日 08:12 UTC,在主網、testnet 與 devnet 上,沒有任何需要 v4.5 的 feature gate 擁有 feature account(尚未提出啟用請求)。我們檢查了 Feature Gate Tracker 與 Anza 文章附錄所列的 17 個 gate,以及 SIMD-0123 的 gate。下表這些在 v4.5 之前的版本中加入的 gate,已在主網上啟用(啟用 Alpenglow 的版本並不是 v4.5)。它們不必等待 v4.5 就能運作,因此本文不把它們算作 v4.5 的變更。
| Gate | 在主網上啟用的時間 |
|---|---|
| Alpenglow(SIMD-0326) | 2026 年 10 月 21 日 |
| SBPF 虛擬位址空間的調整(SIMD-0460) | 2026 年 11 月 24 日 |
| 帳戶資料直接映射(SIMD-0219) | 2026 年 11 月 25 日 |
| 直接帳戶指標(SIMD-0449) | 2026 年 12 月 1 日 |
| SHA-512 syscall(SIMD-0512) | 2026 年 12 月 2 日 08:09 UTC(於 07:42 UTC 確認時已是已預約狀態) |
5-8. 自行確認遷移狀態:用 getVersion 確認版本,用 feature account 確認啟用
你可以用
getVersion 確認連線節點的版本(5-1)。feature gate 是否已啟用,要以主網上的 feature account 為準,而不是文章或公告中的日期。使用 CLI 時:bash
solana feature status A1pengvuM6JEcyNuTnMqepBKhwHE3N6PmUrdATGawhJS -umsolana feature status A1pengvuM6JEcyNuTnMqepBKhwHE3N6PmUrdATGawhJS -um只用 RPC 也可以,分 3 個步驟確認。① 擁有者是否為 Feature program
Feature111111111111111111111111111111111111?如果擁有者是其他程式,就不是 feature account(SIMD-0500 的金鑰目前就是這種狀態;只是有 SOL 被轉入該地址)。② 資料的第 1 個位元組:01 表示已啟用;00 表示已預約,該 gate 會在下一個 epoch 開始時啟用。③ 接下來的 8 個位元組:若已啟用,就是以 little-endian 表示的啟用 slot。如果該帳戶不存在,表示 feature account 尚未建立(尚未提出啟用請求)。bash
curl -s https://api.mainnet-beta.solana.com -H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"getAccountInfo","params":["A1pengvuM6JEcyNuTnMqepBKhwHE3N6PmUrdATGawhJS",{"encoding":"base64","commitment":"finalized"}]}'curl -s https://api.mainnet-beta.solana.com -H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"getAccountInfo","params":["A1pengvuM6JEcyNuTnMqepBKhwHE3N6PmUrdATGawhJS",{"encoding":"base64","commitment":"finalized"}]}'2026 年 12 月 2 日 08:12 UTC,主網回傳的擁有者為 Feature program,資料的前 9 個位元組為
01 00ac651b00000000。啟用 slot 為 459,648,000,是 epoch 1064 的第一個 slot,區塊時間為 2026 年 10 月 21 日 13:36:05 UTC(Alpenglow 的 gate)。以需要 v4.5 的 gate 為例,P-256 syscall(SIMD-0565)的金鑰 SeRjtX7Abiq5hQYbzdCny266oveDseHZh9tnrs2cdVC 在同一時間的主網上沒有帳戶,因此它的 feature account 當時尚未建立。其他 gate 也可以用同樣的方式確認。我們在第 5-7 節檢查過的 17 個需要 v4.5 的 gate,其金鑰列在 Feature Gate Tracker[4] 與 Anza 文章的附錄[1] 中。SIMD-0123 的 gate 是我們在這 17 個之外,另外在第 5-7 節檢查的。文章與紀錄不一致的例子,請見附錄 B。5-9. Solana Stream SDK 與 ERPC CLI
到 12 月 2 日發布的 Rust 5.2.1 為止,對於下表中 4 項 v4.5 的變更,Solana Stream SDK 都不需要在 SDK 端做任何變更。讓透過 UDP 接收的 shred 驗證配合各 feature gate 生效的 slot(例如 SIMD-0504)的設定,已在 5.1.0 加入(v5.1.0 的 release)。下表是將 v4.5 的各項變更,與我們在 12 月 2 日確認時當時最新版本的公開儲存庫對照後的結果(Rust crate
solana-stream-sdk 5.0.0 與 npm 套件 @validators-dao/solana-stream-sdk 4.0.0,相依於 Yellowstone gRPC 17 系列的用戶端:Rust 為 yellowstone-grpc-client 17.0.0 與 yellowstone-grpc-proto 14.0.1;npm 為 @triton-one/yellowstone-grpc 10.0.0)。[9]| v4.5 的變更 | SDK 需要做的事 |
|---|---|
| 重複的 contact info | 不需變更(SDK 不呼叫 SubscribeGossip) |
BlockRevenueSharing = 7 | SDK 不需變更;請確認讀取該類型的應用程式程式碼 |
選用欄位 txn_index | 不需變更 |
| 回傳全部帳戶的方法 | 已在範例中處理(Issue #144) |
5.2.1 在 Rust 上仍相依於同樣的 17 系列(
yellowstone-grpc-client 17.0.0、yellowstone-grpc-proto 14.0.1)(v5.2.1 的 Cargo.toml)。其測試確認,在這個 proto 下,為 v4.5 新增的 txn_index 欄位(field 9)會被略過,獎勵類型 7 則以原始數字保留(RewardType::try_from 回傳 Err)(測試程式碼)。在 5.2.1 的原始碼中,SDK 仍不呼叫 SubscribeGossip,因此表格的結論不變。12 月 2 日(UTC)的經過:
- 我們確認時:確認 txv1 交易與 Yellowstone gRPC 相容性的測試(Issue #143),以及讓透過 UDP 接收的 shred 驗證與 FEC 復原符合 SIMD-0504 的工作(Issue #142)都還沒有關閉。兩者都在當天稍晚關閉:#142 於 09:13,#143 於 09:15。
- 10:15:Rust crate
solana-stream-sdk5.1.0 發布。根據其發行說明,此版本包含在 Agave 4.4.2 與 4.5.0-rc.1 上針對已簽署 v1 交易的邊界測試,以及在 Yellowstone 17 與 18 RC 上的實際環境驗證(v5.1.0 的 release)。 - 13:55:5.2.0 發布。此版本讓 UDP 接收端可以在預設且會復原缺失資料的
recover,與略過復原的data-only之間選擇。 - 14:48:5.2.1 發布,這是包含傳輸、protobuf 與相依套件修補的維護版本。
SIMD-0504 的 gate 在主網上尚未有 feature account(尚未提出啟用請求)。SDK 到 5.2.1 為止對 Agave v4.5 的支援細節,以及發布在 npm 上的 Node.js 用戶端等內容,請見 12 月 3 日的文章。
截至 12 月 2 日,ERPC CLI 為預發布版本
0.1.0-rc.9(11 月 28 日)。[10] 它在執行 Solana 操作時,使用你環境中的 solana CLI(位於 PATH 上,或由 agave-install 安裝的位置),因此用 solana --version 確認其版本,就能知道第 5-5 節的變更是否會影響你。ERPC CLI 的範本中有呼叫 getProgramAccounts 與 getTokenAccountsByOwner 的地方。這些方法在 v4.5 上的回應不變,而你根據這些範本寫的程式碼,也可以改用第 5-2 節的替代方法。截至 12 月 2 日,尚未公布將範本本身改用替代方法的版本或日期。它對 getFeeForMessage 的使用方式是在沒有回傳值時改用 5000 lamports,並不以 null 判斷 blockhash 是否過期。附錄:想對照一手資料確認的讀者
附錄 A. 只出現在 master CHANGELOG 的 2 個項目(不在 rc.1 中)
調查 v4.5 的變更時,答案會因你讀的是哪一份 CHANGELOG 而不同。
master 的 CHANGELOG 開頭寫著「Release channels have their own copy of this changelog」。[7] 截至 12 月 2 日,以下 2 個項目只出現在 master CHANGELOG 的「4.5.0」段落中,既不在 v4.5 分支的 CHANGELOG,也不在 v4.5.0-rc.1 的程式碼中。master 的「4.5.0」項目 | 在 rc.1 中的狀態 |
|---|---|
getBlockTime 需要 --enable-rpc-transaction-history | 未包含(PR #16772) |
移除 TPU vote QUIC 伺服器,--tpu-vote-transaction-receive-threads 列為棄用 | 未包含(PR #15973) |
截至 12 月 2 日,我們無法確認這 2 個項目是否會在 v4.5 穩定版之前被 backport。Solana Stream SDK 的 UDP 延遲監控(預設關閉)與範例中的延遲測量,以及 ERPC CLI 的範本與驗證節點監控,也會呼叫
getBlockTime。在 v4.5.0-rc.1 上沒有任何改變;這是需要在穩定版的 CHANGELOG 中確認的事項。要可靠地掌握 v4.5 節點上的變更,應看 v4.5 分支的 CHANGELOG;要知道某個版本實際包含了什麼,則看它的 release tag。附錄 B. Anza 的文章與鏈上及 GitHub 紀錄不一致之處
Anza 的文章與 GitHub 的紀錄之間有些小出入。文章寫的是「v4.5.0-beta.0 is cleared for up to 20% of stake」,但 GitHub 的發行說明建議最多 20% 的質押量採用的是
v4.5.0-rc.1。文章沒有寫出預定日期 12 月 7 日與 12 月 14 日(UTC);這些日期在發布時程中。關於 SIMD-0460(SBPF 虛擬位址空間的調整),文章寫的啟用 epoch 是 1092,但主網的 feature account 顯示的是 epoch 1096 的開始(slot 473,472,000,2026 年 11 月 24 日 20:05 UTC)。只要用發行說明確認版本、用時程確認日期、用 feature account 確認啟用狀態,就不會被這些差異誤導。附錄 C. 本文的測量方式與限制
本文所有的測量都是唯讀的。在 ERPC 的 Edge RPC 上唯一計時的測量,是第 1-1 節中
getProgramAccounts 與 getProgramAccountsV2 的比較(2026 年 12 月 2 日 15:03 UTC,從 1 台機器連到 edge.erpc.global,每次呼叫都建立新的 TLS 連線,Config program,取 5 次的中位數)。同時,我們呼叫 getMultipleAccounts 只是為了確認它能運作,並未計時。本文不包含在 ERPC 端點上的其他測量。其餘數值都來自公開 RPC(api.mainnet-beta.solana.com、api.testnet.solana.com、api.devnet.solana.com),在 3 個時間點(UTC)取得。質押量與 feature account 是 2026 年 12 月 2 日 08:12 UTC 的數值(主網剛進入 epoch 1103 之後)。我們也在稍早的 07:42 UTC 確認過 feature account;當時 SHA-512 syscall 已是已預約狀態。RPC 回應的比較是 07:27–07:30 UTC 的數值,在 08:12 UTC 再次送出時也得到相同的差異(getFeeForMessage 的 null 與 5000,以及 4.4.2 上 getVatActiveSetRankMap 的 Method not found)。devnet 的公開 RPC 節點執行的是
4.5.0-beta.0,這個建置早於被建議用於最多 20% 質押量的 v4.5.0-rc.1。本文所說的 v4.5 行為,僅限於截至 rc.1 為止 v4.5 分支的 CHANGELOG 所列的內容。只出現在 master 的項目與 v5.0 的預覽,都已如此標明。devnet 是與主網、testnet 不同的叢集,因此差異不能只歸因於節點版本;我們只把與 CHANGELOG 相符的差異視為版本差異。12 月 7 日與 12 月 14 日(UTC)是截至 12 月 2 日時程上的預定日期,可能變動。在主網切換之前,請再次確認 Anza 的最新公告、時程、releases 與 feature account。相關資源
一手資料:
- Anza:Solana Mainnet Activation Update: Agave v4.5
- Agave:v4.5 Release Schedule
- Agave:Releases
- Agave:Feature Gate Tracker Schedule
- Agave:2026-11-30 Testnet Restart
- Agave:
v4.5分支上的 CHANGELOG - Agave:
master上的 CHANGELOG - Yellowstone gRPC:
4.5-transition分支
二手資料:
ERPC:









