Skip to content

Commit

Permalink
chore: clean up debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
MorettiGeorgiev committed Oct 10, 2024
1 parent 0aa6cfb commit cb69fda
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion cmd/rpcdaemon/commands/eth_receipts.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ func getTopicsBitmap(c kv.Tx, topics [][]common.Hash, from, to uint64) (*roaring
}
return result, nil
}

func getAddrsBitmap(tx kv.Tx, addrs []common.Address, from, to uint64) (*roaring.Bitmap, error) {
if len(addrs) == 0 {
return nil, nil
Expand Down
2 changes: 1 addition & 1 deletion cmd/rpcdaemon/commands/tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ func (api *PrivateDebugAPIImpl) TraceCallMany_deprecated(ctx context.Context, bu
ibs := evm.IntraBlockState().(*state.IntraBlockState)
ibs.Prepare(common.Hash{}, parent.Hash(), txn_index)
err = transactions.TraceTx(ctx, msg, blockCtx, txCtx, evm.IntraBlockState(), config, chainConfig, stream, api.evmCallTimeout)

if err != nil {
stream.WriteNil()
return err
Expand Down
2 changes: 1 addition & 1 deletion cmd/rpcdaemon/commands/tracing_zkevm.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ func (api *PrivateDebugAPIImpl) TraceCallMany(ctx context.Context, bundles []Bun
ibs := evm.IntraBlockState().(*state.IntraBlockState)
ibs.Prepare(common.Hash{}, parent.Hash(), txn_index)
err = transactions.TraceTx(ctx, msg, blockCtx, txCtx, evm.IntraBlockState(), config, chainConfig, stream, api.evmCallTimeout)

if err != nil {
stream.WriteNil()
return err
Expand Down
2 changes: 1 addition & 1 deletion eth/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,7 @@ func newEtherMan(cfg *ethconfig.Config, l2ChainName, url string) *etherman.Clien
}

em, err := etherman.NewClient(ethmanConf)
// panic on error
//panic on error
if err != nil {
panic(err)
}
Expand Down
3 changes: 1 addition & 2 deletions turbo/rpchelper/helper_zkevm.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ func GetBatchNumber(rpcBatchNumber rpc.BlockNumber, tx kv.Tx, filters *Filters)
default:
batchNumber = uint64(rpcBatchNumber.Int64())
}
fmt.Println("== ExecutedBlock == ", executedBlock)
fmt.Println("== GetBatchNumber == ", batchNumber)

return batchNumber, batchNumber == plainStateBatchNumber, nil
}

0 comments on commit cb69fda

Please sign in to comment.