forked from axieinfinity/ronin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: add new sponsored transaction type (axieinfinity#372)
* params: add Miko hardfork to enable sponsored transactions * core/types: add new sponsored transaction types This commit adds new sponsored transaction type 0x64 (100) following EIP-2718: Typed Transaction Envelope. The new transaction type is the same as legacy with additional expiredTime and payer's signature field. * core/state, txpool: handle new sponsored transaction, adjust gas check This commit adjust the gas check to correctly check gas fee from payer of transaction and value from sender in txpool and in preCheck before applying transaction. This commit also enables EIP-2718 to support typed transaction envelop in txpool after Miko hardfork without enabling Berlin hardfork.
- Loading branch information
Showing
23 changed files
with
1,870 additions
and
246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.