Skip to content

Commit

Permalink
reprice gas for BLS pre-compiles
Browse files Browse the repository at this point in the history
  • Loading branch information
gurukamath committed Dec 18, 2024
1 parent 6094009 commit bf9b95a
Show file tree
Hide file tree
Showing 4 changed files with 294 additions and 146 deletions.
6 changes: 6 additions & 0 deletions src/ethereum/prague/vm/gas.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@
GAS_INIT_CODE_WORD_COST = 2
GAS_BLOBHASH_OPCODE = Uint(3)
GAS_POINT_EVALUATION = Uint(50000)
GAS_BLS_G1_ADD = Uint(375)
GAS_BLS_G1_MUL = Uint(12000)
GAS_BLS_G1_MAP = Uint(5500)
GAS_BLS_G2_ADD = Uint(600)
GAS_BLS_G2_MUL = Uint(22500)
GAS_BLS_G2_MAP = Uint(23800)

TARGET_BLOB_GAS_PER_BLOCK = U64(786432)
GAS_PER_BLOB = Uint(2**17)
Expand Down
Loading

0 comments on commit bf9b95a

Please sign in to comment.