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
798b8fba
Unverified
Commit
798b8fba
authored
Jun 21, 2024
by
Theburaka
Committed by
GitHub
Jun 21, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bad spell in op-service (#10974)
parent
3068abee
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
artifact.go
op-chain-ops/foundry/artifact.go
+1
-1
blobs_api_test.go
op-service/eth/blobs_api_test.go
+3
-3
balance.go
op-service/metrics/balance.go
+2
-2
send_state.go
op-service/txmgr/send_state.go
+2
-2
No files found.
op-chain-ops/foundry/artifact.go
View file @
798b8fba
...
...
@@ -49,7 +49,7 @@ func (a Artifact) MarshalJSON() ([]byte, error) {
return
json
.
Marshal
(
artifact
)
}
// artifactMarshaling is a helper struct for marshaling and unmarshaling
// artifactMarshaling is a helper struct for marshaling and unmarshal
l
ing
// foundry artifacts.
type
artifactMarshaling
struct
{
ABI
json
.
RawMessage
`json:"abi"`
...
...
op-service/eth/blobs_api_test.go
View file @
798b8fba
...
...
@@ -16,7 +16,7 @@ type dataJson struct {
Data
map
[
string
]
any
`json:"data"`
}
// TestAPIGenesisResponse tests that json unmarshaling a json response from a
// TestAPIGenesisResponse tests that json unmarshal
l
ing a json response from a
// eth/v1/beacon/genesis beacon node call into a APIGenesisResponse object
// fills all existing fields with the expected values, thereby confirming that
// APIGenesisResponse is compatible with the current beacon node API.
...
...
@@ -41,7 +41,7 @@ func TestAPIGenesisResponse(t *testing.T) {
require
.
Equal
(
jsonMap
.
Data
[
"genesis_time"
]
.
(
string
),
string
(
genesisTime
))
}
// TestAPIConfigResponse tests that json unmarshaling a json response from a
// TestAPIConfigResponse tests that json unmarshal
l
ing a json response from a
// eth/v1/config/spec beacon node call into a APIConfigResponse object
// fills all existing fields with the expected values, thereby confirming that
// APIGenesisResponse is compatible with the current beacon node API.
...
...
@@ -66,7 +66,7 @@ func TestAPIConfigResponse(t *testing.T) {
require
.
Equal
(
jsonMap
.
Data
[
"SECONDS_PER_SLOT"
]
.
(
string
),
string
(
secPerSlot
))
}
// TestAPIGetBlobSidecarsResponse tests that json unmarshaling a json response from a
// TestAPIGetBlobSidecarsResponse tests that json unmarshal
l
ing a json response from a
// eth/v1/beacon/blob_sidecars/<X> beacon node call into a APIGetBlobSidecarsResponse object
// fills all existing fields with the expected values, thereby confirming that
// APIGenesisResponse is compatible with the current beacon node API.
...
...
op-service/metrics/balance.go
View file @
798b8fba
...
...
@@ -19,7 +19,7 @@ import (
// to the "balance" metric of the namespace. The balance of the account is recorded in Ether (not Wei).
// Cancel the supplied context to shut down the go routine
func
LaunchBalanceMetrics
(
log
log
.
Logger
,
r
*
prometheus
.
Registry
,
ns
string
,
client
*
ethclient
.
Client
,
account
common
.
Address
)
*
clock
.
LoopFn
{
balanceG
ua
ge
:=
promauto
.
With
(
r
)
.
NewGauge
(
prometheus
.
GaugeOpts
{
balanceG
au
ge
:=
promauto
.
With
(
r
)
.
NewGauge
(
prometheus
.
GaugeOpts
{
Namespace
:
ns
,
Name
:
"balance"
,
Help
:
"balance (in ether) of account "
+
account
.
String
(),
...
...
@@ -33,7 +33,7 @@ func LaunchBalanceMetrics(log log.Logger, r *prometheus.Registry, ns string, cli
return
}
bal
:=
eth
.
WeiToEther
(
bigBal
)
balanceG
ua
ge
.
Set
(
bal
)
balanceG
au
ge
.
Set
(
bal
)
},
func
()
error
{
log
.
Info
(
"balance metrics shutting down"
)
return
nil
...
...
op-service/txmgr/send_state.go
View file @
798b8fba
...
...
@@ -16,7 +16,7 @@ var (
ErrAlreadyReserved
=
errors
.
New
(
"address already reserved"
)
// Returned by CriticalError when the system is unable to get the tx into the mempool in the
// alloted time
// allot
t
ed time
ErrMempoolDeadlineExpired
=
errors
.
New
(
"failed to get tx into the mempool"
)
)
...
...
@@ -125,7 +125,7 @@ func (s *SendState) CriticalError() error {
// we have exceeded the nonce too low count
return
core
.
ErrNonceTooLow
case
s
.
successFullPublishCount
==
0
&&
s
.
now
()
.
After
(
s
.
txInMempoolDeadline
)
:
// unable to get the tx into the mempool in the alloted time
// unable to get the tx into the mempool in the allot
t
ed time
return
ErrMempoolDeadlineExpired
case
s
.
alreadyReserved
:
// incompatible tx type in mempool
...
...
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