@@ -321,8 +321,25 @@ var (
321
321
Category : flags .EthCategory ,
322
322
}
323
323
OverrideFeynmanFix = & cli.Uint64Flag {
324
- Name : "override.feynmanfix" ,
325
- Usage : "Manually specify the FeynmanFix fork timestamp, overriding the bundled setting" ,
324
+ Name : "override.feynmanfix" ,
325
+ Usage : "Manually specify the FeynmanFix fork timestamp, overriding the bundled setting" ,
326
+ }
327
+ OverrideFullImmutabilityThreshold = & cli.Uint64Flag {
328
+ Name : "override.immutabilitythreshold" ,
329
+ Usage : "It is the number of blocks after which a chain segment is considered immutable, only for testing purpose" ,
330
+ Value : params .FullImmutabilityThreshold ,
331
+ Category : flags .EthCategory ,
332
+ }
333
+ OverrideMinBlocksForBlobRequests = & cli.Uint64Flag {
334
+ Name : "override.minforblobrequest" ,
335
+ Usage : "It keeps blob data available for min blocks in local, only for testing purpose" ,
336
+ Value : params .MinBlocksForBlobRequests ,
337
+ Category : flags .EthCategory ,
338
+ }
339
+ OverrideDefaultExtraReserveForBlobRequests = & cli.Uint64Flag {
340
+ Name : "override.defaultextrareserve" ,
341
+ Usage : "It adds more extra time for expired blobs for some request cases, only for testing purpose" ,
342
+ Value : params .DefaultExtraReserveForBlobRequests ,
326
343
Category : flags .EthCategory ,
327
344
}
328
345
SyncModeFlag = & flags.TextMarshalerFlag {
@@ -1101,6 +1118,14 @@ Please note that --` + MetricsHTTPFlag.Name + ` must be set to start the server.
1101
1118
Usage : "Path for the voteJournal dir in fast finality feature (default = inside the datadir)" ,
1102
1119
Category : flags .FastFinalityCategory ,
1103
1120
}
1121
+
1122
+ // Blob setting
1123
+ BlobExtraReserveFlag = & cli.Uint64Flag {
1124
+ Name : "blob.extra-reserve" ,
1125
+ Usage : "Extra reserve threshold for blob, blob never expires when 0 is set, default 28800" ,
1126
+ Value : params .DefaultExtraReserveForBlobRequests ,
1127
+ Category : flags .MiscCategory ,
1128
+ }
1104
1129
)
1105
1130
1106
1131
var (
@@ -2134,6 +2159,18 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {
2134
2159
if err := kzg4844 .UseCKZG (ctx .String (CryptoKZGFlag .Name ) == "ckzg" ); err != nil {
2135
2160
Fatalf ("Failed to set KZG library implementation to %s: %v" , ctx .String (CryptoKZGFlag .Name ), err )
2136
2161
}
2162
+
2163
+ // blob setting
2164
+ if ctx .IsSet (OverrideDefaultExtraReserveForBlobRequests .Name ) {
2165
+ cfg .BlobExtraReserve = ctx .Uint64 (OverrideDefaultExtraReserveForBlobRequests .Name )
2166
+ }
2167
+ if ctx .IsSet (BlobExtraReserveFlag .Name ) {
2168
+ extraReserve := ctx .Uint64 (BlobExtraReserveFlag .Name )
2169
+ if extraReserve > 0 && extraReserve < params .DefaultExtraReserveForBlobRequests {
2170
+ extraReserve = params .DefaultExtraReserveForBlobRequests
2171
+ }
2172
+ cfg .BlobExtraReserve = extraReserve
2173
+ }
2137
2174
}
2138
2175
2139
2176
// SetDNSDiscoveryDefaults configures DNS discovery with the given URL if
@@ -2193,7 +2230,7 @@ func EnableBuildInfo(gitCommit, gitDate string) SetupMetricsOption {
2193
2230
}
2194
2231
}
2195
2232
2196
- func EnableMinerInfo (ctx * cli.Context , minerConfig miner.Config ) SetupMetricsOption {
2233
+ func EnableMinerInfo (ctx * cli.Context , minerConfig * miner.Config ) SetupMetricsOption {
2197
2234
return func () {
2198
2235
if ctx .Bool (MiningEnabledFlag .Name ) {
2199
2236
// register miner info into metrics
@@ -2216,10 +2253,13 @@ func RegisterFilterAPI(stack *node.Node, backend ethapi.Backend, ethcfg *ethconf
2216
2253
return filterSystem
2217
2254
}
2218
2255
2219
- func EnableNodeInfo (poolConfig legacypool.Config ) SetupMetricsOption {
2256
+ func EnableNodeInfo (poolConfig * legacypool.Config , nodeInfo * p2p. NodeInfo ) SetupMetricsOption {
2220
2257
return func () {
2221
2258
// register node info into metrics
2222
2259
metrics .NewRegisteredLabel ("node-info" , nil ).Mark (map [string ]interface {}{
2260
+ "Enode" : nodeInfo .Enode ,
2261
+ "ENR" : nodeInfo .ENR ,
2262
+ "ID" : nodeInfo .ID ,
2223
2263
"PriceLimit" : poolConfig .PriceLimit ,
2224
2264
"PriceBump" : poolConfig .PriceBump ,
2225
2265
"AccountSlots" : poolConfig .AccountSlots ,
0 commit comments