Skip to content

Commit

Permalink
clear linter issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanIliev545 committed Jun 24, 2024
1 parent c7c491d commit 6a7aa80
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions go/host/l1/statemachine.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ func (c *crossChainStateMachine) HealthStatus(context.Context) host.HealthStatus
errMsg = "not running"
}
return &host.BasicErrHealthStatus{ErrMsg: errMsg}

}

func (c *crossChainStateMachine) GetRollupData(number RollupNumber) (RollupInfo, error) {
Expand Down Expand Up @@ -130,12 +129,10 @@ func (c *crossChainStateMachine) PublishNextBundle() error {
c.currentRollup++

return nil

}

// Synchronize - checks if there are any new rollups or forks and moves the tracking needle to the latest common ancestor.
func (c *crossChainStateMachine) Synchronize() error {

forkUID, _, _, err := c.publisher.GetBundleRangeFromManagementContract(big.NewInt(0).SetUint64(c.latestRollup.Number), c.latestRollup.ForkUID)
if err != nil {
if errors.Is(err, errutil.ErrNoNextRollup) {
Expand All @@ -162,7 +159,6 @@ func (c *crossChainStateMachine) Synchronize() error {
}

func (c *crossChainStateMachine) RevertToLatestKnownCommonAncestorRollup() error {

managementContract, err := ManagementContract.NewManagementContract(*c.mgmtContractLib.GetContractAddr(), c.ethClient.EthClient())
if err != nil {
return err
Expand Down

0 comments on commit 6a7aa80

Please sign in to comment.