Skip to content

Expose v field in JSON-RPC in some transaction types#6819

Merged
shemnon merged 3 commits intobesu-eth:mainfrom
shemnon:BESU-6762/Optional-y
Mar 26, 2024
Merged

Expose v field in JSON-RPC in some transaction types#6819
shemnon merged 3 commits intobesu-eth:mainfrom
shemnon:BESU-6762/Optional-y

Conversation

@shemnon
Copy link
Copy Markdown
Contributor

@shemnon shemnon commented Mar 26, 2024

PR description

The execution API marks the v field as optional for EIP-2930 and EIP-1559 transactions, preferring the yParity feld. However, some tooling still depends on the presence of the v field. For those two transaction types both v and yParity will be returned now.

Fixed Issue(s)

Thanks for sending a pull request! Have you done the following?

  • Checked out our contribution guidelines?
  • Considered documentation and added the doc-change-required label to this PR if updates are required.
  • Considered the changelog and included an update if required.
  • For database changes (e.g. KeyValueSegmentIdentifier) considered compatibility and performed forwards and backwards compatibility tests

Locally, you can run these tests to catch failures early:

  • unit tests: ./gradlew build
  • acceptance tests: ./gradlew acceptanceTest
  • integration tests: ./gradlew integrationTest
  • reference tests: ./gradlew ethereum:referenceTests:referenceTests

The execution API marks the `v` field as optional for EIP-2930 and
EIP-1559 transactions, preferring the `yParity` feld.  However, some
tooling still depends on the presence of the `v` field. For those two
transaction types both `v` and `yParity` will be returned now.

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
Copy link
Copy Markdown
Contributor

@usmansaleem usmansaleem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shemnon shemnon enabled auto-merge (squash) March 26, 2024 21:55
@shemnon shemnon merged commit 7df1732 into besu-eth:main Mar 26, 2024
amsmota pushed a commit to Citi/besu that referenced this pull request Apr 16, 2024
* Expose `v` field in JSON-RPC in some transaction types

The execution API marks the `v` field as optional for EIP-2930 and
EIP-1559 transactions, preferring the `yParity` feld.  However, some
tooling still depends on the presence of the `v` field. For those two
transaction types both `v` and `yParity` will be returned now.

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
Signed-off-by: amsmota <antonio.mota@citi.com>
amsmota pushed a commit to Citi/besu that referenced this pull request Apr 16, 2024
* Expose `v` field in JSON-RPC in some transaction types

The execution API marks the `v` field as optional for EIP-2930 and
EIP-1559 transactions, preferring the `yParity` feld.  However, some
tooling still depends on the presence of the `v` field. For those two
transaction types both `v` and `yParity` will be returned now.

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
Signed-off-by: amsmota <antonio.mota@citi.com>
shemnon added a commit to shemnon/besu that referenced this pull request May 24, 2024
Undo PR besu-eth#6819 -
for 2030 and 1559 transactions both v and yParity will be provided,
and they will be the same number.

Signed-off-by: Danno Ferrin <danno@numisight.com>
shemnon added a commit to shemnon/besu that referenced this pull request May 24, 2024
Undo PR besu-eth#6819 -
for 2030 and 1559 transactions both v and yParity will be provided,
and they will be the same number.

Signed-off-by: Danno Ferrin <danno@numisight.com>
shemnon added a commit to shemnon/besu that referenced this pull request May 24, 2024
Undo PR besu-eth#6819 -
for 2030 and 1559 transactions both v and yParity will be provided,
and they will be the same number.

Signed-off-by: Danno Ferrin <danno@numisight.com>
shemnon added a commit to shemnon/besu that referenced this pull request May 24, 2024
Undo PR besu-eth#6819 -
for 2030 and 1559 transactions both v and yParity will be provided,
and they will be the same number.

Signed-off-by: Danno Ferrin <danno@numisight.com>
shemnon added a commit that referenced this pull request May 30, 2024
Undo PR #6819 -
for 2030 and 1559 transactions both v and yParity will be provided,
and they will be the same number.

Signed-off-by: Danno Ferrin <danno@numisight.com>
matthew1001 pushed a commit to kaleido-io/besu that referenced this pull request Jun 7, 2024
* Expose `v` field in JSON-RPC in some transaction types

The execution API marks the `v` field as optional for EIP-2930 and
EIP-1559 transactions, preferring the `yParity` feld.  However, some
tooling still depends on the presence of the `v` field. For those two
transaction types both `v` and `yParity` will be returned now.

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants