Skip to content

Commit 67768b9

Browse files
feat: reverted unconditionally key generation condition
1 parent f5d46a6 commit 67768b9

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

rolling-shutter/keyperimpl/gnosis/newslot.go

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"math"
99
"math/big"
1010
"sort"
11-
"time"
1211

1312
"github.com/ethereum/go-ethereum/common"
1413
"github.com/jackc/pgx/v4"
@@ -96,11 +95,7 @@ func (kpr *Keyper) maybeTriggerDecryption(ctx context.Context, slot uint64) erro
9695
Uint64("slot", slot).
9796
Uint64("proposer-index", proposerIndex).
9897
Msg("skipping slot as proposer is not registered")
99-
if kpr.isPreRelease() {
100-
log.Info().Msg("scratch that, generating key anyway because we're in pre-release mode")
101-
} else {
102-
return nil
103-
}
98+
return nil
10499
}
105100

106101
// For each block with a proposer, the tx pointer age has to be incremented. If keys for
@@ -163,11 +158,6 @@ func (kpr *Keyper) isProposerRegistered(ctx context.Context, slot uint64, block
163158
return isRegistered, proposerDuty.ValidatorIndex, nil
164159
}
165160

166-
func (kpr *Keyper) isPreRelease() bool {
167-
return (kpr.config.InstanceID == 1000 &&
168-
time.Now().Before(time.Date(2024, 7, 7, 23, 59, 59, 0, time.UTC)))
169-
}
170-
171161
func getTxPointer(ctx context.Context, db *pgxpool.Pool, eon int64, maxTxPointerAge int64) (int64, error) {
172162
gnosisKeyperDB := gnosisdatabase.New(db)
173163
var txPointer int64

0 commit comments

Comments
 (0)