Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
amsanghi committed Jul 9, 2024
1 parent bc279c2 commit 29b51d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions staker/staker.go
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ func (s *Staker) advanceStake(ctx context.Context, info *OurStakerInfo, effectiv
s.bringActiveUntilNode = info.LatestStakedNode + 1
}
info.CanProgress = false
return nil
return s.tryFastConfirmation(ctx, action.assertion.AfterState.GlobalState.BlockHash, action.assertion.AfterState.GlobalState.SendRoot)
}

// Details are already logged with more details in generateNodeAction
Expand Down Expand Up @@ -992,7 +992,7 @@ func (s *Staker) advanceStake(ctx context.Context, info *OurStakerInfo, effectiv
hash: action.hash,
}
}
return nil
return s.tryFastConfirmationNodeNumber(ctx, action.number)
}
log.Info("staking on existing node", "node", action.number)
// We'll return early if we already havea stake
Expand Down
2 changes: 1 addition & 1 deletion system_tests/staker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ func TestFastConfirmationWithSafe(t *testing.T) {
}
valWalletB, err := validatorwallet.NewEOA(dpB, l2nodeB.DeployInfo.Rollup, l2nodeB.L1Reader.Client(), func() uint64 { return 0 })
Require(t, err)
valConfig.Strategy = "stakelatest"
valConfig.Strategy = "watchtower"
statelessB, err := staker.NewStatelessBlockValidator(
l2nodeB.InboxReader,
l2nodeB.InboxTracker,
Expand Down

0 comments on commit 29b51d2

Please sign in to comment.