File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 149
149
package = pkgsWithOverlays . foundry-bin ;
150
150
port = 3021 ;
151
151
timestamp = 1743944919 ;
152
+ gasLimit = 100000000000 ;
153
+ baseFee = 1 ;
154
+ blockTime = 2 ;
152
155
} ;
153
156
} ;
154
157
} ;
Original file line number Diff line number Diff line change 17
17
default = 1743944919 ;
18
18
description = "Timestamp for the genesis block" ;
19
19
} ;
20
+
21
+ gasLimit = lib . mkOption {
22
+ type = lib . types . int ;
23
+ default = 100000000000 ;
24
+ description = "Gas limit for the genesis block" ;
25
+ } ;
26
+
27
+ baseFee = lib . mkOption {
28
+ type = lib . types . int ;
29
+ default = 1 ;
30
+ description = "Base fee for the genesis block" ;
31
+ } ;
32
+
33
+ blockTime = lib . mkOption {
34
+ type = lib . types . int ;
35
+ default = 2 ;
36
+ description = "Block time for the genesis block" ;
37
+ } ;
20
38
} ;
21
39
22
40
config = {
23
41
outputs . settings . processes . ${ name } = {
24
- command = "${ lib . getExe' config . package "anvil" } --disable-block- gas-limit --disable-code-size-limit --base-fee 1 --block-time 2 --timestamp ${ toString config . timestamp } --port ${ toString config . port } " ;
42
+ command = "${ lib . getExe' config . package "anvil" } --gas-limit ${ toString config . gasLimit } --base-fee ${ toString config . baseFee } --block-time ${ toString config . blockTime } --timestamp ${ toString config . timestamp } --port ${ toString config . port } " ;
25
43
26
44
availability = {
27
45
restart = "always" ;
You can’t perform that action at this time.
0 commit comments