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
b5116387
Unverified
Commit
b5116387
authored
Apr 12, 2023
by
mergify[bot]
Committed by
GitHub
Apr 12, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into michael/support-unbatched-calls
parents
482cdf0a
ae3d280c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
channel_manager.go
op-batcher/batcher/channel_manager.go
+1
-1
driver.go
op-batcher/batcher/driver.go
+1
-1
txmgr.go
op-service/txmgr/txmgr.go
+3
-3
No files found.
op-batcher/batcher/channel_manager.go
View file @
b5116387
...
@@ -82,7 +82,7 @@ func (s *channelManager) TxFailed(id txID) {
...
@@ -82,7 +82,7 @@ func (s *channelManager) TxFailed(id txID) {
}
}
s
.
metr
.
RecordBatchTxFailed
()
s
.
metr
.
RecordBatchTxFailed
()
if
s
.
closed
&&
len
(
s
.
confirmedTransactions
)
==
0
&&
len
(
s
.
pendingTransactions
)
==
0
{
if
s
.
closed
&&
len
(
s
.
confirmedTransactions
)
==
0
&&
len
(
s
.
pendingTransactions
)
==
0
&&
s
.
pendingChannel
!=
nil
{
s
.
log
.
Info
(
"Channel has no submitted transactions, clearing for shutdown"
,
"chID"
,
s
.
pendingChannel
.
ID
())
s
.
log
.
Info
(
"Channel has no submitted transactions, clearing for shutdown"
,
"chID"
,
s
.
pendingChannel
.
ID
())
s
.
clearPendingChannel
()
s
.
clearPendingChannel
()
}
}
...
...
op-batcher/batcher/driver.go
View file @
b5116387
...
@@ -191,7 +191,7 @@ func (l *BatchSubmitter) loadBlocksIntoState(ctx context.Context) {
...
@@ -191,7 +191,7 @@ func (l *BatchSubmitter) loadBlocksIntoState(ctx context.Context) {
if
err
!=
nil
{
if
err
!=
nil
{
l
.
log
.
Warn
(
"Error calculating L2 block range"
,
"err"
,
err
)
l
.
log
.
Warn
(
"Error calculating L2 block range"
,
"err"
,
err
)
return
return
}
else
if
start
.
Number
=
=
end
.
Number
{
}
else
if
start
.
Number
>
=
end
.
Number
{
return
return
}
}
...
...
op-service/txmgr/txmgr.go
View file @
b5116387
...
@@ -67,10 +67,10 @@ type ETHBackend interface {
...
@@ -67,10 +67,10 @@ type ETHBackend interface {
// NonceAt returns the account nonce of the given account.
// NonceAt returns the account nonce of the given account.
// The block number can be nil, in which case the nonce is taken from the latest known block.
// The block number can be nil, in which case the nonce is taken from the latest known block.
NonceAt
(
ctx
context
.
Context
,
account
common
.
Address
,
blockNumber
*
big
.
Int
)
(
uint64
,
error
)
NonceAt
(
ctx
context
.
Context
,
account
common
.
Address
,
blockNumber
*
big
.
Int
)
(
uint64
,
error
)
// PendingNonce returns the pending nonce.
// PendingNonce
At
returns the pending nonce.
PendingNonceAt
(
ctx
context
.
Context
,
account
common
.
Address
)
(
uint64
,
error
)
PendingNonceAt
(
ctx
context
.
Context
,
account
common
.
Address
)
(
uint64
,
error
)
//
/
EstimateGas returns an estimate of the amount of gas needed to execute the given
// EstimateGas returns an estimate of the amount of gas needed to execute the given
//
/
transaction against the current pending block.
// transaction against the current pending block.
EstimateGas
(
ctx
context
.
Context
,
msg
ethereum
.
CallMsg
)
(
uint64
,
error
)
EstimateGas
(
ctx
context
.
Context
,
msg
ethereum
.
CallMsg
)
(
uint64
,
error
)
}
}
...
...
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