> 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 协议当前限制及其影响的如实说明。

## 执行限制

**不支持 SELFDESTRUCT。** SELFDESTRUCT 操作码已移除；调用它的合约会回滚。

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

**每笔原子事务约 140 万计算单元。** 超过单个 Solana 事务预算的工作会退回为迭代执行（拆分为多个事务）。某些操作只能以原子方式执行，不能迭代运行——尤其是 CPI（`CpiProhibitedInIterativeTx`).

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

## 预言机限制

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

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

## 工具限制

**不支持交易追踪。** `debug_traceTransaction` 和 `trace_*` 不受支持。请使用 `eth_call` 以及 [通过浏览器](/zh/rome-shang-de-ying-yong/via.md) （其中显示事务背后的 Solana 指令）进行调试。

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

## 基础设施限制

**单一运营者模型。** 每个 Rome 部署由单一实体（付款池运营者）负责运行。不存在去中心化的运营者集合。

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

## 下一步

* [负责任披露](/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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
