`tx hash` fails on fee-bump transactions

Aperta
#2,769 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

  • #2791 di @neimasilk-arch — chiusa senza merge
  • #2816 di @jdjioe5-cpu — chiusa senza merge

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
blockchain, cli

Direzione di ricerca

Reproduce the issue with the provided stellar tx new, stellar tx decode, stellar tx encode, and stellar tx hash commands, then inspect the Rust implementation behind stellar tx hash and its transaction-version handling. Done means the fee-bump envelope produces its hash while the existing plain transaction case continues to work.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug
What version are you using?

stellar-cli 28.1.0 (d0b26d9, built from main).

What did you do?

I wrapped a transaction in a fee bump and asked for its hash:

stellar tx new payment --source alice --destination bob --amount 1 \
  --network testnet --build-only > tx.b64

stellar tx hash --network testnet < tx.b64

stellar tx decode < tx.b64 \
  | jq -c --arg fs "$(stellar keys address bob)" \
      '{tx_fee_bump:{tx:{fee_source:$fs,fee:10000,inner_tx:{tx:.tx},ext:"v0"},signatures:[]}}' \
  | stellar tx encode \
  | stellar tx hash --network testnet
What did you expect to see?

The fee-bump transaction's hash.

What did you see instead?

The plain transaction hashes fine, but the fee-bump envelope is rejected:

❌ error: only transaction v1 is supported
(exit status 1)
Lingua principale
Rust
Stelle
129
Fork
153
Merge medio
1g 14h
PR unite (30g)
11

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di stellar/stellar-cli

Tutte le issue di stellar/stellar-cli

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.