Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jianoaix committed Aug 7, 2024
1 parent bdb17f7 commit c1668e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions operators/churner/churner.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ import (
)

var (
bipMultiplier = big.NewInt(10000)
secondsTillExpiry = 900 * time.Second
bipMultiplier = big.NewInt(10000)
)

type ChurnRequest struct {
Expand Down Expand Up @@ -290,7 +289,7 @@ func (c *churner) sign(ctx context.Context, operatorToRegisterAddress gethcommon
copy(salt[:], saltKeccak256)

// set expiry to ChurnApprovalInterval in the future
expiry := big.NewInt(now.Add(secondsTillExpiry).Unix())
expiry := big.NewInt(now.Add(c.churnApprovalInterval).Unix())

// sign and return signature
hashToSign, err := c.Transactor.CalculateOperatorChurnApprovalDigestHash(ctx, operatorToRegisterAddress, operatorToRegisterId, operatorsToChurn, salt, expiry)
Expand Down
1 change: 1 addition & 0 deletions operators/churner/tests/churner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ func newTestServer(t *testing.T) *churner.Server {
LoggerConfig: common.DefaultLoggerConfig(),
BLSOperatorStateRetrieverAddr: testConfig.EigenDA.OperatorStateRetreiver,
EigenDAServiceManagerAddr: testConfig.EigenDA.ServiceManager,
ChurnApprovalInterval: 15 * time.Minute,
}

operatorTransactorChurner, err := createTransactorFromScratch(
Expand Down

0 comments on commit c1668e2

Please sign in to comment.