> For the complete documentation index, see [llms.txt](https://docs.rome.builders/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rome.builders/zh/an-quan/known-limitations.md).

# 已知限制

当前 Rome EVM 的约束及其影响——不支持的操作码、存储账户布局、CU 上限、CPI 深度以及预言机限制。

对 Rome 协议当前限制及其影响的如实说明。

本页介绍 Solana 上的 Rome EVM 链（Rubicon 和 Hadrian）。关于 Canton 上的 ZK EVM Ostia，请参见 [哪些内容会被证明，哪些不会](https://docs.rome.builders/zh/canton-zk-evm/what-is-proven.md) 和 [状态与路线图](https://docs.rome.builders/zh/canton-zk-evm/status.md).

## 执行限制

**不支持 SELFDESTRUCT。** 该操作码没有处理程序，因此执行它的合约会中止整个交易（见下文），而不是仅回滚单个调用帧。

**Rome 未实现的操作码会中止整个交易。** 解释器没有对应该字节的处理程序，因此交易结束时 `IncompatibleVersionEVM(opcode)`，它所做的一切都不会被提交，失败会返回给发送方，而不会被调用合约吞掉。

**没有按操作码划分的 gas 计费表。** 传递给 `CALL`, `DELEGATECALL`, `STATICCALL` 和 `CREATE` 的 gas 值仅为兼容 ABI 而接受，但不会被强制执行——被调用方将以调用方剩余的全部预算运行，并且不存在 2300 gas 的补贴。基于补贴的重入保护（`transfer()` / `send()`）在 Rome 上无效；请使用显式的重入保护和 checks-effects-interactions 模式。

**已禁用 Modexp (0x05)。** 调用会回滚并返回 `big_mod_exp 调用已禁用` 直到 Solana 启用 `big_mod_exp` 系统调用。

**每个存储账户有 256 个存储槽位。** 合约存储按每个 256 个槽位分片到多个 Solana 账户中。存储占用较大的合约会使用多个账户，这会影响 CU 成本。

**每笔原子交易约 140 万计算单元。** 超过单个 Solana 交易预算的工作会退回到迭代执行（拆分为多个交易）。某些操作只能以原子方式执行，不能迭代运行——尤其是传统路径的 CPI（`CpiProhibitedInIterativeTx`；缓存路径的效果会分阶段提交，并且确实可以迭代运行）。

**CPI 深度上限为 4。** 过深的嵌套 CPI 调用会失败。请将合约设计为较浅的调用树。

## 预言机限制

**没有历史轮次数据。** Oracle Gateway 适配器仅支持 `latestRoundData()`。通过 `getRoundData(roundId)` 获取历史价格查询将回滚。

**解析器偏移量会根据当前布局进行验证。** Pyth 和 Switchboard 的账户数据使用字节偏移量进行解析。如果 Pyth 或 Switchboard 更改了其账户布局，在重新验证偏移量之前，适配器会返回错误数据。

## 工具限制

**不支持类似 Ethereum 的交易追踪。** `debug_traceTransaction` 和 `trace_*` 不受支持。唯一的追踪方法是 `debug_traceRomeTransaction`，它会将一笔打包多个调用为单个批次的交易拆分为其子调用和 CPI。普通交易返回 `null`。其他所有情况请使用 `eth_call` 以及 [Via explorer](https://docs.rome.builders/zh/rome-shang-de-ying-yong/via.md) （它会将每笔交易关联到结算它的 Solana 交易）进行调试。请参见 [JSON-RPC](https://docs.rome.builders/zh/can-kao/json-rpc.md).

**`eth_getLogs` 受到范围限制。** 公共链会拒绝过宽的区块范围（错误 `-32005`）；请限制你的查询范围。参见 [JSON-RPC](https://docs.rome.builders/zh/can-kao/json-rpc.md).

## 基础设施限制

**单一运营方模式。** 每个 Rome 部署都由单一实体运营（付款人池运营方）。不存在去中心化的运营方集合。

**迭代模式锁定。** 在迭代执行期间，账户会被锁定几秒钟，这可能会在高频使用的账户上造成争用。

## 下一步

* [负责任披露](https://docs.rome.builders/zh/an-quan/responsible-disclosure.md) —— 如何报告问题


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.rome.builders/zh/an-quan/known-limitations.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
