node/pkg/solana: put finalized check back

commit-id:7425a438
This commit is contained in:
Leo 2021-12-21 22:48:01 +01:00 committed by Leopold Schabel
parent 17508ff29c
commit c3f97c0e7e
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ func (s *SolanaWatcher) Run(ctx context.Context) error {
var recovery <-chan time.Time
date := recoveryDate.Sub(time.Now().UTC())
if date >= 0 {
if date >= 0 && s.commitment == rpc.CommitmentFinalized {
logger.Info("waiting for scheduled recovery", zap.Duration("until", date))
recovery = time.NewTimer(date).C
} else {