Update RPC api and backend to support the EIP-2930 and EIP-1559 updates to header and transaction types #78

Closed
opened 2021-07-01 16:16:44 +00:00 by i-norden · 1 comment
Member

When BaseFee is present we need to include it in the header returned by the RPC endpoints

e.g. at
42f066772b/pkg/eth/backend_utils.go (L38)

And we need to be able to return all three types of transactions from the RPC endpoints: legacy, access list, and dynamic fee

e.g. at
42f066772b/pkg/eth/backend_utils.go (L137)

When `BaseFee` is present we need to include it in the header returned by the RPC endpoints e.g. at https://github.com/vulcanize/ipld-eth-server/blob/42f066772bec4b38d77e2fb095bf3af4eccaf881/pkg/eth/backend_utils.go#L38 And we need to be able to return all three types of transactions from the RPC endpoints: legacy, access list, and dynamic fee e.g. at https://github.com/vulcanize/ipld-eth-server/blob/42f066772bec4b38d77e2fb095bf3af4eccaf881/pkg/eth/backend_utils.go#L137
Author
Member

Note: Receipt and Transaction now need to to use MarshalBinary and UnmarshalBinary methods instead of EncodeRLP and DecodeRLP (or rlp.EncodeToBytes/rlp.DecodeBytes) for consensus encoding/decoding to/from binary format.

Until https://github.com/ethereum/go-ethereum/pull/22806 is merged we need to use https://github.com/vulcanize/go-ethereum/releases/tag/v1.10.4-ir-0.0.1 for Receipt MarshalBinary and UnmarshalBinary.

Note: `Receipt` and `Transaction` now need to to use `MarshalBinary` and `UnmarshalBinary` methods instead of `EncodeRLP` and `DecodeRLP` (or `rlp.EncodeToBytes`/`rlp.DecodeBytes`) for consensus encoding/decoding to/from binary format. Until https://github.com/ethereum/go-ethereum/pull/22806 is merged we need to use https://github.com/vulcanize/go-ethereum/releases/tag/v1.10.4-ir-0.0.1 for `Receipt` `MarshalBinary` and `UnmarshalBinary`.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/ipld-eth-server#78
No description provided.