Skip to content

Commit

Permalink
Feat/blockdata separate eth linea constants (#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
amkCha authored Jan 14, 2025
1 parent 7358ae2 commit 9119a9e
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,15 @@ BLOCKDATA_FOR_REFERENCE_TESTS := $(wildcard blockdata/*.lisp) \
$(wildcard blockdata/processing/*.lisp) \
$(wildcard blockdata/processing/gaslimit/common.lisp) \
$(wildcard blockdata/processing/gaslimit/ethereum.lisp) \
$(wildcard blockdata/processing/gaslimit/constants-ethereum.lisp) \
$(wildcard blockdata/lookups/*.lisp)

# with gaslimit for linea file
BLOCKDATA_FOR_LINEA := $(wildcard blockdata/*.lisp) \
$(wildcard blockdata/processing/*.lisp) \
$(wildcard blockdata/processing/gaslimit/common.lisp) \
$(wildcard blockdata/processing/gaslimit/linea.lisp) \
$(wildcard blockdata/processing/gaslimit/constants-linea.lisp) \
$(wildcard blockdata/lookups/*.lisp)

BLOCKHASH := $(wildcard blockhash/columns/*.lisp) \
Expand Down
5 changes: 5 additions & 0 deletions blockdata/processing/gaslimit/constants-ethereum.lisp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
(module blockdata)

;; TODO add reference to global constants
(defconst GAS_LIMIT_MINIMUM 5000)
(defconst GAS_LIMIT_MAXIMUM 0xffffffffffffffff)
5 changes: 5 additions & 0 deletions blockdata/processing/gaslimit/constants-linea.lisp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
(module blockdata)

;; TODO add reference to global constants
(defconst GAS_LIMIT_MINIMUM 61000000)
(defconst GAS_LIMIT_MAXIMUM 2000000000)
4 changes: 0 additions & 4 deletions blockdata/processing/gaslimit/ethereum.lisp
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
(module blockdata)

;; TODO add reference to global constants
(defconst GAS_LIMIT_MINIMUM 5000)
(defconst GAS_LIMIT_MAXIMUM 0xffffffffffffffff)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;;
;; 3 Computations and checks ;;
Expand Down
4 changes: 0 additions & 4 deletions blockdata/processing/gaslimit/linea.lisp
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
(module blockdata)

;; TODO add reference to global constants
(defconst GAS_LIMIT_MINIMUM 61000000)
(defconst GAS_LIMIT_MAXIMUM 2000000000)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;;
;; 3 Computations and checks ;;
Expand Down

0 comments on commit 9119a9e

Please sign in to comment.