Skip to content

Commit

Permalink
Fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ImTei committed Sep 22, 2023
1 parent edfe980 commit 0e996d6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/rpcdaemon/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func main() {
client, err := rpc.DialContext(ctx, cfg.RollupSequencerHTTP, logger)
cancel()
if err != nil {
log.Error(err.Error())
logger.Error(err.Error())
return nil
}
seqRPCService = client
Expand All @@ -50,7 +50,7 @@ func main() {
client, err := rpc.DialContext(ctx, cfg.RollupHistoricalRPC, logger)
cancel()
if err != nil {
log.Error(err.Error())
logger.Error(err.Error())
return nil
}
historicalRPCService = client
Expand Down
6 changes: 5 additions & 1 deletion core/types/deposit_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,14 @@ func (tx DepositTx) GetTo() *libcommon.Address {
return tx.To
}

func (ct DepositTx) GetDataGas() uint64 {
func (tx DepositTx) GetBlobGas() uint64 {
return 0
}

func (tx DepositTx) GetBlobHashes() []libcommon.Hash {
return []libcommon.Hash{}
}

func (tx DepositTx) GetGas() uint64 {
return tx.Gas
}
Expand Down
1 change: 1 addition & 0 deletions eth/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ type Ethereum struct {
eth1ExecutionServer *eth1.EthereumExecutionModule

ethBackendRPC *privateapi.EthBackendServer
engineBackendRPC *engineapi.EngineServer
seqRPCService *rpc.Client
historicalRPCService *rpc.Client
miningRPC txpool_proto.MiningServer
Expand Down
2 changes: 1 addition & 1 deletion turbo/engineapi/engine_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func NewEngineServer(ctx context.Context, logger log.Logger, config *chain.Confi
func (e *EngineServer) Start(httpConfig httpcfg.HttpCfg, db kv.RoDB, blockReader services.FullBlockReader,
filters *rpchelper.Filters, stateCache kvcache.Cache, agg *libstate.AggregatorV3, engineReader consensus.EngineReader,
eth rpchelper.ApiBackend, txPool txpool.TxpoolClient, mining txpool.MiningClient) {
base := jsonrpc.NewBaseApi(filters, stateCache, blockReader, agg, httpConfig.WithDatadir, httpConfig.EvmCallTimeout, engineReader, httpConfig.Dirs)
base := jsonrpc.NewBaseApi(filters, stateCache, blockReader, agg, httpConfig.WithDatadir, httpConfig.EvmCallTimeout, engineReader, httpConfig.Dirs, nil, nil)

ethImpl := jsonrpc.NewEthAPI(base, db, eth, txPool, mining, httpConfig.Gascap, httpConfig.ReturnDataLimit, e.logger)

Expand Down

0 comments on commit 0e996d6

Please sign in to comment.