`network settings` outputs `frozen_ledger_keys` and `freeze_bypass_txs`, which can't be used in a `ConfigUpgradeSet`
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 72/100
Direção de pesquisa
Comece por cmd/soroban-cli/src/commands/network/settings.rs, especialmente pelo match que decide quais valores de ConfigSettingId são incluídos. Verifique como --internal controla as configurações que não podem ser atualizadas e consulte o comportamento de CAP-77 descrito na issue. Atualize a seleção para que a saída possa ser usada como ConfigUpgradeSet e, em seguida, verifique se frozen_ledger_keys e freeze_bypass_txs são excluídos da saída padrão.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- Rust
- Estrelas
- 129
- Forks
- 153
- Merge médio
- 1d 14h
- PRs com merge (30d)
- 11
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de stellar/stellar-cli
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
stellar/stellar-cli#2880 ·
Mantenedores costumam responder em até 1 dia
-
arg_value_union panics on zero-arity union tuple case (unchecked type_[0] index)Talvez já em andamento @hvoi assumiu há 22 dias. Abertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
stellar/stellar-cli#2806 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
contract extend panics on single-change resultMetaXdr (index out of bounds at extend.rs:306)Talvez livre de novo @duongynhi000005-oss assumiu há 18 dias e não há nenhum pull request aberto. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 90/100
stellar/stellar-cli#2796 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Document stellar-cli's RPC trust boundaryTalvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Aberta
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 85/100
stellar/stellar-cli#2781 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Display the full authorization tree before signing auth entriesTalvez já em andamento @DeadZen assumiu há 40 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
stellar/stellar-cli#2779 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de stellar/stellar-cli
Issues semelhantes
-
feature request good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
TabularisDB/tabularis#1513 ·
Mantenedores costumam responder em até 2 dias
-
bug priority: medium
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
storytold/pdfcraft#7140 · 1 comentário ·
Mantenedores costumam responder em até 2 dias
-
bug duplicate priority: low ui
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
storytold/vectorcraft#6956 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
-
PDF export issueAbertabug priority: medium
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 63/100
storytold/designcraft#2712 · 1 comentário ·
Mantenedores costumam responder em até 2 dias