Skip to content

Commit ec4e05f

Browse files
committed
add at least one transaction to the key shares creation if there is one, regardless of the gas limit
1 parent 9559aaa commit ec4e05f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rolling-shutter/keyperimpl/gnosis/newslot.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,9 @@ func (kpr *Keyper) getDecryptionIdentityPreimages(
307307
gas := uint64(0)
308308
for _, event := range events {
309309
gas += uint64(event.GasLimit)
310-
if gas > kpr.config.Gnosis.EncryptedGasLimit {
310+
// We need to add at least one transaction otherwise the tx-pointer will get stuck
311+
// if the next tx has a gas limit higher than the configured gas limit
312+
if gas > kpr.config.Gnosis.EncryptedGasLimit && len(identityPreimages) > 0 {
311313
break
312314
}
313315
identityPreimage, err := transactionSubmittedEventToIdentityPreimage(event)

0 commit comments

Comments
 (0)