File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
services/requester/keystore Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,20 @@ var ErrNoKeysAvailable = fmt.Errorf("no signing keys available")
1717const accountKeyBlockExpiration = flow .DefaultTransactionExpiry
1818
1919type KeyLock interface {
20+ // This method is intended for the happy path of valid EVM transactions.
21+ // The event subscriber module only subscribes to EVM-related events:
22+ // - `EVM.TransactionExecuted`
23+ // - `EVM.BlockExecuted`
24+ //
25+ // Valid EVM transactions do emit `EVM.TransactionExecuted` events, so we
26+ // release the account key that was used by the Flow tx which emitted
27+ // the above EVM event.
2028 NotifyTransaction (txID flowsdk.Identifier )
29+ // This method is intended for the unhappy path of invalid EVM transactions.
30+ // For each new Flow block, we check the result status of all included Flow
31+ // transactions, and we release the account keys which they used. This also
32+ // handles the release of expired transactions, that weren't even included
33+ // in a Flow block.
2134 NotifyBlock (blockHeader flowsdk.BlockHeader )
2235}
2336
You can’t perform that action at this time.
0 commit comments