Skip to content

Handle eth transfers as a special case #3638

@Arkenan

Description

@Arkenan

We should not have all the VM work (creating big call frames, caches, etc) if we are processing eth transfers. We should have a simpler VM implementation that just handles eth transfers by changing the balances.

Some references that might be useful:

  • To know if a transaction is a transfer, we should check if the input field is present.
  • The balance should be updated in both the sender and the receiver.
  • The nonce should be updated in the sender.
  • The fee should be calculated as TX_BASE_COST and deduced as well.
  • Validations should be performed (mostly if the sender has enough balance).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions