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 b4258d0 commit bdb17f7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions operators/churner/churner.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ import (
)

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

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

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

// sign and return signature
hashToSign, err := c.Transactor.CalculateOperatorChurnApprovalDigestHash(ctx, operatorToRegisterAddress, operatorToRegisterId, operatorsToChurn, salt, expiry)
Expand Down

0 comments on commit bdb17f7

Please sign in to comment.