Solana Agave v4.5 更新:账户获取方式有何变化,需要检查什么

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),让程序能在自己的代码中验证通行密钥签名(激活后可用)。
第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 系统调用

1-1. 最小配置节点也能按地址获取账户(返回全部账户的方法已弃用)

在 v4.5 中,getAccountInfo 和 getMultipleAccounts 在未启用 --full-rpc-api 的最小配置节点上也会响应。[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 程序,3,467 个账户,约 3.77 MB),用 getProgramAccounts 一次全量获取耗时 438 ms,而 getProgramAccountsV2 的第一页(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;“仅获取变更(约 1 天)”为 8.8 KB。在 ERPC 的 Edge RPC 上实测,并非 v4.5 的功能。约 1 天内,3,467 个账户中有 8 个发生变更。Config 程序(3,467 个账户),getProgramAccounts 与使用 changedSinceSlot 的 getProgramAccountsV2 对比。从 1 台机器运行 5 次取中位数,2026 年 12 月 2 日 15:03 UTC

在 ERPC 的 Edge RPC 上实测:获取同一个程序的账户需要多少数据。每个方块代表相同的数据量。“全量获取”(3.77 MB)占满 429 个方块;“仅获取变更(约 1 天)”(8.8 KB)只占 1 个方块。

1-2. 让程序能验证通行密钥签名的 P-256 系统调用(激活后可用)

v4.5 的 P-256 系统调用激活后,程序就能在自己的代码中验证通行密钥签名。
通行密钥不能作为交易的签名者,因此通行密钥钱包依靠程序来验证 P-256 签名。这种验证目前已经可以在主网上通过预编译程序(内置于验证节点、格式固定的验证)完成。v4.5 新增了一个系统调用,让程序可以直接调用 P-256 曲线运算,但它尚未激活。激活后,程序可以自行实现这种验证,而不受预编译程序固定格式的限制。Anza 写道,这让用指纹或面容签名、无需助记词的钱包更接近现实。[1] 第5-6节说明其原理。
我们已经在为 ERPC CLI 开发基于通行密钥的钱包签名支持;该功能尚未包含在公开发布的版本中。

2. 需要做什么、检查什么

对大多数应用来说,需要检查 3 件事。
  1. 用 getVersion 确认所调用节点的版本。该节点一升级到 v4.5,v4.5 的大部分变化就会生效。开发网的公共 RPC 已经运行 4.5.0-beta.0(比 rc.1 更早的构建;rc.1 被推荐用于最多 20% 的质押,见附录 C),所以你现在就可以试用这些变化。
  2. 检查你的代码是否把 getFeeForMessage 返回的 null 结果当作 blockhash 已过期。v4.5 节点在 blockhash 过期时不再返回 null(第5-1节)。
  3. 检查你是否调用了返回全部账户的方法(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节所述的停用之前)

排成一行的 4 个步骤:第1步“找出所调用的方法”,第2步“确认哪些已弃用”,第3步“用新方法比对结果”,第4步“切换,或继续使用旧方法”。
第5节按角色说明需要检查的内容。第5-2至5-5节的末尾各附有一段提示词,可以交给你的 AI 编程助手来检查代码(Prompt A 至 Prompt D)。
角色详情首先检查
RPC 应用5-1、5-2(Prompt A)代码是否把 getFeeForMessage 返回的 null 结果当作 blockhash 已过期。
Geyser 插件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你所用的端点会有哪些变化、何时变化,包括尚未公布日期的事项。
对所有角色,第5-7节详细列出迁移进展,第5-8节说明如何自行确认。

3. 时间表

v4.5 在主网的推出才刚刚开始:截至 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 日是开始征集早期采用者的日子。标记之间的间距并非按比例绘制

一条时间轴,显示 Agave v4.5 主网的 4 个里程碑和表示今天的标记,从左到右:11 月 25 日的“主网候选版本”和 11 月 30 日的“开始征集早期采用者”标为“已完成”;12 月 7 日的“推荐全面采用”和 12 月 14 日的“feature 激活开始”标为“计划中”。“今天”的标记(12 月 2 日)位于 11 月 30 日与 12 月 7 日之间。
详细日期和测量结果见第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 上,第5-3节的变化会在提供 gRPC 的节点上的插件升级到 v4.5 构建时生效。截至 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 节点以视图方式读取消息,只根据计算预算和签名数量计算费用,不读取账户或 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"}'
下表左列是各公共 RPC 的版本。在 v4.5 上,getFeeForMessage 在 blockhash 过期时不再返回 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\"}]}"
端点与版本(12 月 2 日 07:27–07:30 UTC)有效的 blockhash不存在的 blockhash
mainnet-beta(4.4.2)"value": 5000"value": null
测试网(4.4.2)"value": 5000"value": null
开发网(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 当作通胀奖励使用的代码
在 getBlock 的 rewards 中,SIMD-0123 激活后,一个质押账户可能有 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 .
迁移目标如下(图2的第3步;Edge RPC 和 Unlimited 如何处理这些方法见表格下方,停用安排见第4节):
已弃用的方法或端点迁移目标状态
getProgramAccountsgetProgramAccountsV2、getMultipleAccounts(已知地址时)、Geyser gRPC 订阅已调用并确认(订阅有文档记载,本次未测试)
getTokenAccountsByOwnerDAS getTokenAccounts有文档记载(本次未测试)
getTokenLargestAccounts用 DAS getTokenAccounts 收集后排序(部分替代)有文档记载(本次未测试)
getTokenAccountsByDelegateDAS 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节提到的支持聊天。
像下面这样向 Edge RPC 发送 getProgramAccountsV2(将 <PROGRAM_ID> 和 <YOUR_API_KEY> 替换为你自己的值)。把响应中的 paginationKey 以 {"encoding":"base64","limit":1000,"paginationKey":"<PAGINATION_KEY>"} 的形式放进下一个请求的 config,即可获取下一页;或者把 changedSinceSlot 设为某个 slot,只获取该 slot 之后变更的账户。如果你的应用启动时需要全部账户,一种做法是先读取一次全部页面,之后只获取变更。每次获取前,先用 getSlot 取得一个 slot 并保存;下次获取时把这个 slot 作为 changedSinceSlot 传入。ERPC Edge RPC 文档介绍了该端点以及如何获取 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}]}'
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.

5-3. Yellowstone gRPC 与 Geyser:只用 Subscribe 时,影响你的是 2 处 proto 变更

v4.5 的 Geyser 变化大多不影响只使用 Subscribe 的客户端。这是因为 contact info 不通过 Subscribe 推送,而是通过 SubscribeGossip 推送。

图4 | “重复的 contact info”不会通过 Subscribe 发送,只有在你自己的代码调用 SubscribeGossip 时才可能到达你的应用;它是否真的会到达,取决于你所连接的分发服务器,请向其确认

排成一行的 5 个方框,从左到右是“验证节点”“Geyser 插件”“分发服务器”“SDK / 客户端”和“应用”。表示“重复的 contact info”的实线止于分发服务器的出口,标有“不通过 Subscribe 发送”。只有一条在分发服务器处分出、标有“仅可能通过 SubscribeGossip 到达”的虚线,延续到“应用”方框。
在插件层,contact info 通知现在会包含未发生变化却再次发送的重复 contact info,回调可能每秒到达数千次。contact_info_notifications_enabled() 返回 true 的插件应自行丢弃重复项,并让回调处理保持简短。[6] 如上所述,contact info 不通过 Subscribe 推送,所以在客户端一侧,只有使用 SubscribeGossip 的客户端可能受到重复 contact info 的影响。[8] 如果你使用 SubscribeGossip,请假定可能收到重复项:当某个更新与同一节点 pubkey 的上一个值相同时就丢弃它,并保持处理简短。本文没有确认分发服务器是否会精简重复的 contact info。
客户端会看到 2 处 proto 变更。它们在你的端点背后的插件升级到 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.

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
参数在 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 插件需要面向 v4.5 的构建(截至 12 月 2 日,面向 v4.5 的 Yellowstone gRPC 只有候选版本;见第5-3节)为 v4.5 重新构建。如果回滚到 v4.4,也要把插件回滚到其 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 版插件进行升级。
何时可以回滚到 v4.4:只有在需要 v4.5 的 gate 创建 feature account(即被预留)之前,才能把回滚纳入计划。一旦有 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。在预发布环境中试用 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.

5-5. CLI 与程序:构建工具与部署参数

构建和部署方面的变化,会在你把自己的 Agave 升级到 v4.5 的当天生效。[6] 提前做好准备,升级当天构建就不会中断。cargo-build-sbf 和 cargo-test-sbf 不再随 Agave 的发布版本附带,所以请单独安装,并在 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 --version
solana program deploy 不再自动切换到临时密钥对。请传入程序 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-id
变化受影响的情况
不再提供 macOS x86-64 和 Windows 的预构建二进制文件在这些平台上使用预构建二进制文件时
solana CLI 默认创建 txv1 交易将 CLI 与硬件钱包一起使用时
test-validator 不再以 TowerBFT 启动有依赖 TowerBFT 的测试时
不要硬编码租金金额;请用 getMinimumBalanceForRentExemption 或 Rent sysvar 读取。租金第3阶段(2575 lamports/byte)和 SIMD-0500(禁止部署 SBPF v0、v1 和 v2 程序)都是在 v4.5 之前的版本中加入的 gate。在测试网上,租金第3阶段(epoch 1093,11 月 20 日)和 SIMD-0500(epoch 1097,11 月 24 日)已经激活;在开发网上,租金第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.

5-6. P-256 系统调用:通行密钥签名验证的原理

通行密钥所用的密钥不能作为签名者为交易签名(只有 Ed25519 密钥可以)。因此由程序来验证 P-256 签名。这种验证已经可以在主网上进行。SIMD-0075 的预编译程序自 2025 年 6 月 9 日起已激活:在交易中加入一条预编译程序指令,程序再通过 instructions sysvar 确认这条指令(指令内省,instruction introspection)。预编译程序固定了格式:只接受压缩公钥,每条指令最多 8 个签名。在程序内用 sBPF 实现同样的验证,约需 42,000,000 CU(SIMD-0075 给出的数字)。
v4.5 新增了一个系统调用(SIMD-0565),让程序可以直接调用 P-256 曲线运算(点验证、解压缩、加法、减法、标量乘法和多标量乘法)。P-256 是 Apple 的 Secure Enclave、Android Keystore、WebAuthn 和通行密钥所使用的曲线。截至 12 月 2 日 08:12 UTC,这个 gate 在 3 个集群上都还没有 feature account,也没有一手资料说明它是否包含在计划于 12 月 14 日(UTC)开始的激活中。
激活后,程序可以调用曲线运算自行实现验证,无需依赖指令内省。现有的预编译程序也会继续可用。Anza 写道,这使 P-256 签名验证的成本低到足以在程序内运行。[1] 没有一手资料给出单次验证的 CU 开销,也没有说明预编译程序何时会迁移到程序中。

5-7. 迁移进展详情(截至 12 月 2 日)

把节点软件升级到 v4.5 与激活新功能(feature gate)是两件不同的事。Anza 把它比作拥有一部 5G 手机与运营商开通 5G 的那一天之间的区别。将发布时间表与 GitHub 上的发布记录对照,到目前为止的事件如下(时间表上的日期可能变动)。[2] [3]
里程碑状态日期(UTC)
创建 v4.5 分支已完成2026 年 11 月 5 日
在测试网上推荐采用(v4.5.0-beta.0)已完成2026 年 11 月 6 日
开发网升级到 v4.5已完成2026 年 11 月 10 日
打上主网候选版本标签(v4.5.0-rc.0)已完成2026 年 11 月 25 日
推荐 v4.5.0-rc.1 用于最多 20% 的质押已完成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]
测试网按计划于 11 月 30 日停止,并于 12 月 1 日 05:00 UTC 恢复运行。重启流程中推荐的版本是 v4.5.0-rc.1。[5] 截至 12 月 2 日,测试网的公共 RPC 返回的是 4.4.2,v4.5 占测试网质押的 31.76%。要试用 v4.5 的行为,可以使用开发网,其公共 RPC 运行的是 4.5.0-beta.0(第2节第1项检查)。开发网的质押有 97.27% 是 4.5.0-rc.1。公共 RPC 的版本只是单个节点的版本,与质押分布是两回事。
截至 12 月 2 日 08:12 UTC,在主网、测试网和开发网上,需要 v4.5 的 feature gate 都还没有 feature account(尚未发起激活请求)。我们检查了 Feature Gate Tracker 和 Anza 文章附录中列出的 17 个 gate,以及 SIMD-0123 的 gate。下表中的这些 gate 是在 v4.5 之前的版本中加入的,已经在主网上激活(激活 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 系统调用(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 -um
只用 RPC 也可以。分 3 步检查。① 所有者是否为 Feature 程序 Feature111111111111111111111111111111111111?如果所有者是其他程序,它就不是 feature account(SIMD-0500 的 key 目前就是这种状态;该地址只是收到了 SOL)。② 数据的第一个字节:01 表示已激活;00 表示已预留,该 gate 会在下一个 epoch 开始时激活。③ 接下来的 8 个字节:如果已激活,就是以小端序表示的激活 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"}]}'
2026 年 12 月 2 日 08:12 UTC,主网返回的所有者为 Feature 程序,数据的前 9 个字节为 01 00ac651b00000000。激活 slot 为 459,648,000,即 epoch 1064 的第一个 slot,区块时间为 2026 年 10 月 21 日 13:36:05 UTC(Alpenglow 的 gate)。以需要 v4.5 的 gate 为例,P-256 系统调用(SIMD-0565)的 key SeRjtX7Abiq5hQYbzdCny266oveDseHZh9tnrs2cdVC 在同一时间于主网上没有账户,因此它的 feature account 当时尚未创建。其他 gate 也可以用同样的方法检查。我们在第5-7节检查的、需要 v4.5 的 17 个 gate 的 key,列在 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 为止,对于下表中 v4.5 的 4 项变化,Solana Stream SDK 都无需在 SDK 一侧修改。让通过 UDP 接收的 Shred 的验证与各 feature gate 生效的 slot(如 SIMD-0504)保持一致的设置,已在 5.1.0 中加入(v5.1.0 发布页)。下表是我们在 12 月 2 日检查时,对照当时最新发布版本的公开仓库逐项检查 v4.5 各项变化的结果(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 = 7SDK 无需修改;请检查读取该类型的应用代码
可选字段 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 字段(字段 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-sdk 5.1.0 发布。根据其发布说明,它包含在 Agave 4.4.2 和 4.5.0-rc.1 上进行的已签名 v1 交易边界测试,以及在 Yellowstone 17 和 18 RC 上的实际运行验证(v5.1.0 发布页)。
  • 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 CLI(位于 PATH 上,或在 agave-install 安装的位置)执行 Solana 操作,因此用 solana --version 检查该 CLI 的版本,就能知道第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 稳定版之前被反向移植。Solana Stream SDK 的 UDP 延迟监控(默认关闭)和示例中的延迟测量,以及 ERPC CLI 的模板和验证节点监控,也会调用 getBlockTime。这 2 项在 v4.5.0-rc.1 上不会带来任何变化;这是需要在稳定版的 CHANGELOG 中确认的事项。要可靠地了解 v4.5 节点上有哪些变化,应查看 v4.5 分支的 CHANGELOG;要了解某个版本包含了什么,应查看它的发布标签。

附录 B. Anza 的文章与链上及 GitHub 记录不一致之处

Anza 的文章与 GitHub 记录之间存在一些小的不一致。文章写的是“v4.5.0-beta.0 is cleared for up to 20% of stake”,但 GitHub 的发布说明推荐的是将 v4.5.0-rc.1 用于最多 20% 的质押。文章没有给出 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 程序,取 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 系统调用已经处于已预留状态。RPC 响应的比较是 07:27–07:30 UTC 的数值,08:12 UTC 再次发送时得到了相同的差异(getFeeForMessage 的 null 与 5000,以及 4.4.2 上 getVatActiveSetRankMap 的 Method not found)。
开发网的公共 RPC 节点运行的是 4.5.0-beta.0,这是比 v4.5.0-rc.1(被推荐用于最多 20% 质押的构建)更早的构建。本文所说的 v4.5 行为,仅限于截至 rc.1 时 v4.5 分支 CHANGELOG 所列的内容。只出现在 master 中的条目和 v5.0 的预告都已注明。开发网是与主网和测试网不同的集群,所以差异不能仅归因于节点版本;我们只把与 CHANGELOG 相符的差异视为版本差异。12 月 7 日和 12 月 14 日(UTC)这两个日期,是截至 12 月 2 日时间表上的计划日期,可能变动。在主网切换之前,请重新确认 Anza 的最新公告、时间表、发布记录和 feature account。

相关资料

一手资料:
二手资料:
ERPC: