mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
chore(ethclient): remove some unused APIs (#387)
This commit is contained in:
parent
838f653153
commit
437b5c6114
1 changed files with 0 additions and 22 deletions
|
|
@ -19,17 +19,6 @@ func (ec *Client) HeadL1Origin(ctx context.Context) (*rawdb.L1Origin, error) {
|
|||
return res, nil
|
||||
}
|
||||
|
||||
// SetHeadL1Origin sets the latest L2 block's corresponding L1 origin.
|
||||
func (ec *Client) SetHeadL1Origin(ctx context.Context, blockID *big.Int) (*big.Int, error) {
|
||||
var res *big.Int
|
||||
|
||||
if err := ec.c.CallContext(ctx, &res, "taiko_setHeadL1Origin", blockID); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return res, nil
|
||||
}
|
||||
|
||||
// L1OriginByID returns the L2 block's corresponding L1 origin.
|
||||
func (ec *Client) L1OriginByID(ctx context.Context, blockID *big.Int) (*rawdb.L1Origin, error) {
|
||||
var res *rawdb.L1Origin
|
||||
|
|
@ -41,17 +30,6 @@ func (ec *Client) L1OriginByID(ctx context.Context, blockID *big.Int) (*rawdb.L1
|
|||
return res, nil
|
||||
}
|
||||
|
||||
// UpdateL1Origin sets the L2 block's corresponding L1 origin.
|
||||
func (ec *Client) UpdateL1Origin(ctx context.Context, l1Origin *rawdb.L1Origin) (*rawdb.L1Origin, error) {
|
||||
var res *rawdb.L1Origin
|
||||
|
||||
if err := ec.c.CallContext(ctx, &res, "taiko_updateL1Origin", l1Origin); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return res, nil
|
||||
}
|
||||
|
||||
// GetSyncMode returns the current sync mode of the L2 node.
|
||||
func (ec *Client) GetSyncMode(ctx context.Context) (string, error) {
|
||||
var res string
|
||||
|
|
|
|||
Loading…
Reference in a new issue