Skip to content

Commit

Permalink
up: 10 MB
Browse files Browse the repository at this point in the history
  • Loading branch information
liushooter committed Sep 29, 2023
1 parent 0ea7c46 commit 11e9889
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const [pda, bump] = await PublicKey.findProgramAddress(
);
```

请注意,无论是你还是调用方都必须支付存储费用,并且每个账户有`10`兆字节的限制,所以要谨慎选择要放在链上的内容。
请注意,无论是你还是调用方都必须支付存储费用,并且每个账户有`10` Mb 的限制,所以要谨慎选择要放在链上的内容。

:::caution
每个数据账户的大小最大是`10MB`的大小。
Expand Down
2 changes: 1 addition & 1 deletion docs/cookbook-zh/guides/account-maps.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ async () => {

*首先,你需要初始化存储`BTreeMap`的账户,然后才能向其中插入必要的键值对。然后,你还需要将这个账户的地址存储在某个地方,以便每次更新时进行更新。

*账户存在内存限制,每个账户的最大大小为10兆字节,这限制了`BTreeMap`存储大量键值对的能力。
*账户存在内存限制,每个账户的最大大小为10 Mb,这限制了`BTreeMap`存储大量键值对的能力。

因此,在考虑你的用例后,可以按照以下方式实现这种方法:

Expand Down

0 comments on commit 11e9889

Please sign in to comment.