We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d736f49 commit f00c663Copy full SHA for f00c663
rolling-shutter/keyperimpl/gnosis/keyper.go
@@ -341,7 +341,12 @@ func (kpr *Keyper) getDecryptionIdentityPreimages(
341
identityPreimages = []identitypreimage.IdentityPreimage{
342
makeBlockIdentityPreimage(ev),
343
}
344
+ gas := uint64(0)
345
for _, event := range events {
346
+ gas += uint64(event.GasLimit)
347
+ if gas > kpr.config.EncryptedGasLimit {
348
+ break
349
+ }
350
identityPreimage, err := transactionSubmittedEventToIdentityPreimage(event)
351
if err != nil {
352
return []identitypreimage.IdentityPreimage{}, err
0 commit comments