Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into feat/l2-hard-fork
Browse files Browse the repository at this point in the history
  • Loading branch information
Faulty Tolly committed Nov 6, 2024
2 parents 5397a9a + 3c0b798 commit a5a5495
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion block/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func (m *Manager) Start(ctx context.Context) error {
// In case there is also no proposer on the hub to our current height, it means that the chain is halted.
if m.State.GetProposer() == nil {
m.logger.Info("No proposer on the rollapp, fallback to the hub proposer, if available")
SLProposer, err := m.SLClient.GetProposerAtHeight(int64(m.State.Height()))
SLProposer, err := m.SLClient.GetProposerAtHeight(int64(m.State.NextHeight()))
if err != nil {
return fmt.Errorf("get proposer at height: %w", err)
}
Expand Down
10 changes: 5 additions & 5 deletions settlement/dymension/dymension.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ import (
)

const (
addressPrefix = "dym"
UNAVAILABLE_PROPOSER = ""
addressPrefix = "dym"
SENTINEL_PROPOSER = ""
)

const (
Expand Down Expand Up @@ -351,8 +351,8 @@ func (c *Client) GetProposerAtHeight(height int64) (*types.Sequencer, error) {
}
}

if proposerAddr == "" {
return nil, fmt.Errorf("proposer address is empty")
if proposerAddr == SENTINEL_PROPOSER {
return nil, fmt.Errorf("proposer is sentinel")
}

// Find and return the matching sequencer
Expand Down Expand Up @@ -543,7 +543,7 @@ func (c *Client) GetNextProposer() (*types.Sequencer, error) {
if !found {
return nil, nil
}
if nextAddr == UNAVAILABLE_PROPOSER {
if nextAddr == SENTINEL_PROPOSER {
return &types.Sequencer{}, nil
}

Expand Down

0 comments on commit a5a5495

Please sign in to comment.