Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
0d93adc2
Unverified
Commit
0d93adc2
authored
Oct 30, 2023
by
Joshua Gutow
Committed by
GitHub
Oct 30, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7934 from ethereum-optimism/jg/hide_rethdb
op-node: Hide rethDB option
parents
006ed380
3f3ad34e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
flags.go
op-node/flags/flags.go
+1
-0
receipts.go
op-service/sources/receipts.go
+6
-2
No files found.
op-node/flags/flags.go
View file @
0d93adc2
...
@@ -87,6 +87,7 @@ var (
...
@@ -87,6 +87,7 @@ var (
Usage
:
"The L1 RethDB path, used to fetch receipts for L1 blocks. Only applicable when using the `reth_db` RPC kind with `l1.rpckind`."
,
Usage
:
"The L1 RethDB path, used to fetch receipts for L1 blocks. Only applicable when using the `reth_db` RPC kind with `l1.rpckind`."
,
EnvVars
:
prefixEnvVars
(
"L1_RETHDB"
),
EnvVars
:
prefixEnvVars
(
"L1_RETHDB"
),
Required
:
false
,
Required
:
false
,
Hidden
:
true
,
}
}
L1RPCRateLimit
=
&
cli
.
Float64Flag
{
L1RPCRateLimit
=
&
cli
.
Float64Flag
{
Name
:
"l1.rpc-rate-limit"
,
Name
:
"l1.rpc-rate-limit"
,
...
...
op-service/sources/receipts.go
View file @
0d93adc2
...
@@ -138,9 +138,13 @@ var RPCProviderKinds = []RPCProviderKind{
...
@@ -138,9 +138,13 @@ var RPCProviderKinds = []RPCProviderKind{
RPCKindBasic
,
RPCKindBasic
,
RPCKindAny
,
RPCKindAny
,
RPCKindStandard
,
RPCKindStandard
,
RPCKindRethDB
,
}
}
// Copy of RPCProviderKinds with RethDB added to all RethDB to be used but to hide it from the flags
var
validRPCProviderKinds
=
func
()
[]
RPCProviderKind
{
return
append
(
RPCProviderKinds
,
RPCKindRethDB
)
}()
func
(
kind
RPCProviderKind
)
String
()
string
{
func
(
kind
RPCProviderKind
)
String
()
string
{
return
string
(
kind
)
return
string
(
kind
)
}
}
...
@@ -159,7 +163,7 @@ func (kind *RPCProviderKind) Clone() any {
...
@@ -159,7 +163,7 @@ func (kind *RPCProviderKind) Clone() any {
}
}
func
ValidRPCProviderKind
(
value
RPCProviderKind
)
bool
{
func
ValidRPCProviderKind
(
value
RPCProviderKind
)
bool
{
for
_
,
k
:=
range
RPCProviderKinds
{
for
_
,
k
:=
range
valid
RPCProviderKinds
{
if
k
==
value
{
if
k
==
value
{
return
true
return
true
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment