`network settings` outputs `frozen_ledger_keys` and `freeze_bypass_txs`, which can't be used in a `ConfigUpgradeSet`
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 72/100
Direzione di ricerca
Inizia da cmd/soroban-cli/src/commands/network/settings.rs, in particolare dal match che decide quali valori di ConfigSettingId includere. Verifica come --internal controlla le impostazioni non aggiornabili e consulta il comportamento di CAP-77 descritto nell’issue. Aggiorna la selezione in modo che l’output possa essere usato come ConfigUpgradeSet, quindi verifica che frozen_ledger_keys e freeze_bypass_txs siano esclusi dall’output predefinito.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Rust
- Stelle
- 129
- Fork
- 153
- Merge medio
- 1g 14h
- PR unite (30g)
- 11
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di stellar/stellar-cli
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
stellar/stellar-cli#2880 ·
I maintainer di solito rispondono entro 1 giorno
-
arg_value_union panics on zero-arity union tuple case (unchecked type_[0] index)Forse già presa @hvoi l’ha presa 22 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
stellar/stellar-cli#2806 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
contract extend panics on single-change resultMetaXdr (index out of bounds at extend.rs:306)Forse di nuovo libera @duongynhi000005-oss l’ha presa 18 giorni fa e non c’è nessuna pull request aperta. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
stellar/stellar-cli#2796 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Document stellar-cli's RPC trust boundaryForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 1/5 1-3 ore Idoneità per principianti 85/100
stellar/stellar-cli#2781 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Display the full authorization tree before signing auth entriesForse già presa @DeadZen l’ha presa 40 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
stellar/stellar-cli#2779 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di stellar/stellar-cli
Issue simili
-
bug duplicate priority: low ui
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
storytold/vectorcraft#6956 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
bug multiple issues priority: high
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
storytold/gridcraft#3928 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
crate-drift
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
po4yka/rust-skills#33 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
svix/svix-webhooks#2808 ·
I maintainer di solito rispondono entro 1 giorno