lotus icon indicating copy to clipboard operation
lotus copied to clipboard

Filecoin should support legacy Homstead and legacy EIP-155 Ethereum transactions

Open aarshkshah1992 opened this issue 1 year ago • 3 comments

Checklist

  • [X] This is not brainstorming ideas. If you have an idea you'd like to discuss, please open a new discussion on the lotus forum and select the category as Ideas.
  • [X] I have a specific, actionable, and well motivated feature request to propose.

Lotus component

  • [X] lotus daemon - chain sync
  • [X] lotus fvm/fevm - Lotus FVM and FEVM interactions
  • [ ] lotus miner/worker - sealing
  • [ ] lotus miner - proving(WindowPoSt/WinningPoSt)
  • [ ] lotus JSON-RPC API
  • [ ] lotus message management (mpool)
  • [ ] Other

What is the motivation behind this feature request? Is your feature request related to a problem? Please describe.

This issue has been created to add support for legacy transactions to Filecoin so that contracts and user transactions are not scoped to a specific chain. Specifically, this issue tracks FIP discussion at https://github.com/filecoin-project/FIPs/discussions/962.

Describe the solution you'd like

Option #3 on https://github.com/filecoin-project/FIPs/discussions/962

"We could also prepend a transaction type byte to the signature field (for Ethereum transactions only). IMO, this is the best solution, but it may break any tooling manually signing/validating messages from Ethereum accounts. On the other hand, I'm doubtful any tooling like this exists, so we're probably fine."

Describe alternatives you've considered

No response

Additional context

No response

aarshkshah1992 avatar Apr 09 '24 07:04 aarshkshah1992

@Stebalien

Just to clarify, when we support legacy transactions - do we mean Transactions without Chain ID OR Transactions without ChainID AND without any of the EIP-1599 gas stuff params ?

aarshkshah1992 avatar Apr 09 '24 13:04 aarshkshah1992

Hm. It's going to have to be the latter, I think (needs to be bit for bit compatible). I think we need to set the GasPremium to GasFeeCap when translating from the EthTxn to the Filecoin message.

Stebalien avatar Apr 09 '24 14:04 Stebalien

Yeah, from what I can tell, the premium is the gas fee. The FVM will subtract out whatever it needs to burn before giving the rest to the SP.

Stebalien avatar Apr 09 '24 14:04 Stebalien

Closing this ticket, since this has been implemented with:

  • https://github.com/filecoin-project/lotus/pull/11969
  • https://github.com/filecoin-project/lotus/pull/11970

And is planned to go live with the upgrade to NV23

rjan90 avatar Jun 11 '24 09:06 rjan90