From 183b847268d937beb6462ca43980b99f8128ff90 Mon Sep 17 00:00:00 2001 From: Alok Date: Wed, 10 Jul 2024 04:59:59 +0530 Subject: [PATCH] fix: comments --- oracle/pkg/node/node.go | 1 - oracle/pkg/updater/updater.go | 2 +- p2p/pkg/preconfirmation/tracker/tracker.go | 2 +- p2p/pkg/rpc/bidder/service.go | 1 + 4 files changed, 3 insertions(+), 3 deletions(-) diff --git a/oracle/pkg/node/node.go b/oracle/pkg/node/node.go index af4d6c9d0..af7dd8003 100644 --- a/oracle/pkg/node/node.go +++ b/oracle/pkg/node/node.go @@ -95,7 +95,6 @@ func NewNode(opts *Options) (*Node, error) { return nil, err } - fmt.Println("USING L1 RPC URL", opts.L1RPCUrl) l1Client, err := ethclient.Dial(opts.L1RPCUrl) if err != nil { nd.logger.Error("Failed to connect to the L1 Ethereum client", "error", err) diff --git a/oracle/pkg/updater/updater.go b/oracle/pkg/updater/updater.go index dc6807526..1f1ae92e5 100644 --- a/oracle/pkg/updater/updater.go +++ b/oracle/pkg/updater/updater.go @@ -129,7 +129,7 @@ func NewUpdater( oracle: oracle, receiptBatcher: receiptBatcher, metrics: newMetrics(), - openedCmts: make(chan *preconf.PreconfcommitmentstoreCommitmentStored, 200), + openedCmts: make(chan *preconf.PreconfcommitmentstoreCommitmentStored), encryptedCmts: make(chan *preconf.PreconfcommitmentstoreEncryptedCommitmentStored), }, nil } diff --git a/p2p/pkg/preconfirmation/tracker/tracker.go b/p2p/pkg/preconfirmation/tracker/tracker.go index 66ed05997..e5cfeb00a 100644 --- a/p2p/pkg/preconfirmation/tracker/tracker.go +++ b/p2p/pkg/preconfirmation/tracker/tracker.go @@ -86,7 +86,7 @@ func NewTracker( preconfContract: preconfContract, receiptGetter: receiptGetter, optsGetter: optsGetter, - newL1Blocks: make(chan *blocktracker.BlocktrackerNewL1Block, 10), + newL1Blocks: make(chan *blocktracker.BlocktrackerNewL1Block), enryptedCmts: make(chan *preconfcommstore.PreconfcommitmentstoreEncryptedCommitmentStored), commitments: make(chan *preconfcommstore.PreconfcommitmentstoreCommitmentStored), winners: make(map[int64]*blocktracker.BlocktrackerNewL1Block), diff --git a/p2p/pkg/rpc/bidder/service.go b/p2p/pkg/rpc/bidder/service.go index 9e924f976..db91fa3ee 100644 --- a/p2p/pkg/rpc/bidder/service.go +++ b/p2p/pkg/rpc/bidder/service.go @@ -414,6 +414,7 @@ func (s *Service) CancelAutoDeposit( } return } + s.logger.Info("waiting for windows to be in the past before withdrawing", "currentWindow", currentWindow, "windows", windows) } }() return &bidderapiv1.CancelAutoDepositResponse{}, nil