`tx hash` fails on fee-bump transactions

Offen
#2,769 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

  • #2791 von @neimasilk-arch — ohne Merge geschlossen
  • #2816 von @jdjioe5-cpu — ohne Merge geschlossen

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
72/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
rust
Bereich
blockchain, cli

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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)
Vorherrschende Sprache
Rust
Sterne
129
Forks
153
Ø Merge
1 T. 14 Std.
Gemergte PRs (30 T.)
11

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus stellar/stellar-cli

Alle Issues in stellar/stellar-cli

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.