`network settings` outputs `frozen_ledger_keys` and `freeze_bypass_txs`, which can't be used in a `ConfigUpgradeSet`
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 72/100
Hướng nghiên cứu
Bắt đầu với cmd/soroban-cli/src/commands/network/settings.rs, đặc biệt là match quyết định những giá trị ConfigSettingId nào được đưa vào. Kiểm tra cách --internal kiểm soát các thiết lập không thể nâng cấp và tham khảo hành vi CAP-77 được mô tả trong issue. Cập nhật lựa chọn để đầu ra có thể được dùng làm ConfigUpgradeSet, sau đó xác minh rằng frozen_ledger_keys và freeze_bypass_txs bị loại khỏi đầu ra mặc định.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What version are you using?
stellar-cli 30.0.1 (the relevant code is the same in 28.1.0).
What did you do?
I fetched testnet's config settings so that I could apply them to a local network as a config upgrade, which is what quickstart does to keep its local network's limits in sync with testnet:
stellar network settings --network testnet --output json \
| jq -r '.updated_entry[] | keys[0]'
What did you expect to see?
Only the settings that a config upgrade can set. The --output help describes the output as the ConfigUpgradeSet XDR type, and settings that can't be upgraded (live_soroban_state_size_window, eviction_iterator) are already left out unless --internal is given, so I expected the output to be usable as a ConfigUpgradeSet as is.
What did you see instead?
The output also includes frozen_ledger_keys and freeze_bypass_txs. CAP-77 says these can't be upgraded by the regular mechanism that overwrites the whole entry, only through their frozen_ledger_keys_delta and freeze_bypass_txs_delta settings, so stellar-core rejects a ConfigUpgradeSet that contains them.
Quickstart works around this by stripping them out with jq before encoding the ConfigUpgradeSet: https://github.com/stellar/quickstart/blob/cb64aee580f1589c79264a98eaad839628074cd8/.scripts/update-config-settings#L56-L60
Thoughts
The command chooses which settings to fetch in cmd/soroban-cli/src/commands/network/settings.rs, and only LiveSorobanStateSizeWindow and EvictionIterator are gated behind --internal. Every other ConfigSettingId falls through to a catch-all arm whose comment says "All other configs can be modified by network upgrades and are always output": https://github.com/stellar/stellar-cli/blob/f2a7b74175c34585f3b30a1abf42a2d41cbcc390/cmd/soroban-cli/src/commands/network/settings.rs#L84-L91
The CAP-77 settings presumably landed in the catch-all when they were added to the XDR, so they're output even though that comment doesn't hold for them. Perhaps they could be treated the same as the other non-upgradeable settings and only output with --internal. Replacing the catch-all with an explicit match over every variant might also be worth considering, so that each setting added in a future protocol needs a decision about whether it can be upgraded.
- Ngôn ngữ chính
- Rust
- Star
- 129
- Fork
- 153
- Merge trung bình
- 1 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 11
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của stellar/stellar-cli
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
stellar/stellar-cli#2880 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
arg_value_union panics on zero-arity union tuple case (unchecked type_[0] index)Có thể đã có người làm @hvoi đã nhận 22 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
stellar/stellar-cli#2806 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
contract extend panics on single-change resultMetaXdr (index out of bounds at extend.rs:306)Có thể làm lại được @duongynhi000005-oss đã nhận 18 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
stellar/stellar-cli#2796 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Document stellar-cli's RPC trust boundaryCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
stellar/stellar-cli#2781 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Display the full authorization tree before signing auth entriesCó thể đã có người làm @DeadZen đã nhận 40 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
stellar/stellar-cli#2779 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của stellar/stellar-cli
Issue tương tự
-
feature request good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
TabularisDB/tabularis#1513 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug priority: medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
storytold/pdfcraft#7140 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug duplicate priority: low ui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
storytold/vectorcraft#6956 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
PDF export issueĐang mởbug priority: medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
storytold/designcraft#2712 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày