Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouop0 committed Apr 29, 2024
1 parent 3ceb57d commit f7b8517
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/handler/op_committer_txs.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ func GetBlobsAndCommitTxsProposal(ctx *svc.ServiceContext) {

//nolint: dupl

Check failure on line 59 in internal/handler/op_committer_txs.go

View workflow job for this annotation

GitHub Actions / Run golangci-lint

directive `//nolint: dupl` is unused for linter "dupl" (nolintlint)
if lastProposal.Status == schema.ProposalVotingStatus || lastProposal.Status == schema.ProposalTimeoutStatus {
time.Sleep(30 * time.Second)
// check address voted or not
phase, err := ctx.OpCommitterClient.ProposalManager.IsVotedOnTxsRootProposalPhase(&bind.CallOpts{}, lastProposal.ProposalID, common.HexToAddress(voteAddress))
if err != nil {
Expand Down Expand Up @@ -99,11 +98,10 @@ func GetBlobsAndCommitTxsProposal(ctx *svc.ServiceContext) {
continue
}
log.Infof("[Handler.GetBlobsAndCommitProposal] vote txs proposal %s, %s ", tsp.ProposalID, voteAddress)
continue
time.Sleep(30 * time.Second)
}

if lastProposal.Status == schema.ProposalPendingStatus {
time.Sleep(30 * time.Second)
phase, err := ctx.OpCommitterClient.ProposalManager.IsVotedOntxsRootDSTxPhase(&bind.CallOpts{}, lastProposal.ProposalID, common.HexToAddress(voteAddress))
if err != nil {
log.Errorf("[Handler.GetBlobsAndCommitProposal][IsVotedOntxsRootDSTxPhase] is failed : %s", err)
Expand Down Expand Up @@ -178,6 +176,7 @@ func GetBlobsAndCommitTxsProposal(ctx *svc.ServiceContext) {
continue
}
log.Infof("[Handler.GetBlobsAndCommitProposal] success verify and vote submit txs from ds: %s, dsHash: %s", lastProposal.ProposalID, lastProposal.DsTxHash)
time.Sleep(30 * time.Second)
}
}
}
Expand Down

0 comments on commit f7b8517

Please sign in to comment.