Skip to content

Commit 51239b0

Browse files
committed
there should be at least 2 transactions being decrypted, because of the slot identity preimage
1 parent ec4e05f commit 51239b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rolling-shutter/keyperimpl/gnosis/newslot.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ func (kpr *Keyper) getDecryptionIdentityPreimages(
309309
gas += uint64(event.GasLimit)
310310
// We need to add at least one transaction otherwise the tx-pointer will get stuck
311311
// if the next tx has a gas limit higher than the configured gas limit
312-
if gas > kpr.config.Gnosis.EncryptedGasLimit && len(identityPreimages) > 0 {
312+
if gas > kpr.config.Gnosis.EncryptedGasLimit && len(identityPreimages) > 1 {
313313
break
314314
}
315315
identityPreimage, err := transactionSubmittedEventToIdentityPreimage(event)

0 commit comments

Comments
 (0)