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
b401f722
Unverified
Commit
b401f722
authored
May 06, 2024
by
Zach Howard
Committed by
GitHub
May 06, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
op-conductor: fixes proposer outputAtBlock rpc arg compatability (#10393)
parent
ec390422
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
api.go
op-conductor/rpc/api.go
+1
-1
node_proxy.go
op-conductor/rpc/node_proxy.go
+7
-1
No files found.
op-conductor/rpc/api.go
View file @
b401f722
...
...
@@ -60,7 +60,7 @@ type ExecutionProxyAPI interface {
// NodeProxyAPI defines the methods proxied to the node rpc backend
// This should include all methods that are called by op-batcher or op-proposer
type
NodeProxyAPI
interface
{
OutputAtBlock
(
ctx
context
.
Context
,
blockNum
uint64
)
(
*
eth
.
OutputResponse
,
error
)
OutputAtBlock
(
ctx
context
.
Context
,
blockNum
String
string
)
(
*
eth
.
OutputResponse
,
error
)
SyncStatus
(
ctx
context
.
Context
)
(
*
eth
.
SyncStatus
,
error
)
RollupConfig
(
ctx
context
.
Context
)
(
*
rollup
.
Config
,
error
)
}
...
...
op-conductor/rpc/node_proxy.go
View file @
b401f722
...
...
@@ -2,7 +2,9 @@ package rpc
import
(
"context"
"fmt"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-node/rollup"
...
...
@@ -40,7 +42,11 @@ func (api *NodeProxyBackend) SyncStatus(ctx context.Context) (*eth.SyncStatus, e
return
status
,
err
}
func
(
api
*
NodeProxyBackend
)
OutputAtBlock
(
ctx
context
.
Context
,
blockNum
uint64
)
(
*
eth
.
OutputResponse
,
error
)
{
func
(
api
*
NodeProxyBackend
)
OutputAtBlock
(
ctx
context
.
Context
,
blockNumString
string
)
(
*
eth
.
OutputResponse
,
error
)
{
blockNum
,
err
:=
hexutil
.
DecodeUint64
(
blockNumString
)
if
err
!=
nil
{
return
nil
,
fmt
.
Errorf
(
"failed to decode block number: %w"
,
err
)
}
output
,
err
:=
api
.
client
.
OutputAtBlock
(
ctx
,
blockNum
)
if
err
!=
nil
{
return
nil
,
err
...
...
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