Skip to content

blockchain/types: guard tx JSON decoders against empty signatures#978

Open
2dvorak wants to merge 1 commit into
kaiachain:devfrom
2dvorak:fix/rpc-tx-json-empty-signatures-panic
Open

blockchain/types: guard tx JSON decoders against empty signatures#978
2dvorak wants to merge 1 commit into
kaiachain:devfrom
2dvorak:fix/rpc-tx-json-empty-signatures-panic

Conversation

@2dvorak

@2dvorak 2dvorak commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Proposed changes

Return an error instead of panicking when the "signatures" field is missing, empty, or null while decoding a JSON transaction.

Types of changes

  • 🐛 Bug fix
  • ✨ Non-hardfork changes (node upgrade not required)
  • 💥 Hardfork / consensus-breaking changes
  • 🧪 Test improvements
  • 🧰 CI / build tool
  • ♻️ Chore / Refactor / Non-functional changes

Checklist

  • 📖 I have read the CONTRIBUTING GUIDELINES doc
  • 📝 I have signed in the PR comment I have read the CLA Document and I hereby sign the CLA in first time contribute after having read CLA
  • 🟢 Lint and unit tests pass locally with my changes ($ make test)

Related issues

Further comments

Return an error instead of panicking when the "signatures" field is
missing, empty, or null while decoding a JSON transaction.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@2dvorak 2dvorak self-assigned this Jul 13, 2026
@2dvorak
2dvorak marked this pull request as ready for review July 13, 2026 10:16
@ian0371 ian0371 added the do not merge Do not merge just yet label Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not merge Do not merge just yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants