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 4bbbf75 commit 253d859Copy full SHA for 253d859
services/requester/single_tx_pool.go
@@ -200,8 +200,9 @@ func (t *SingleTxPool) buildTransaction(
200
}
201
202
func (t *SingleTxPool) fetchSigningAccountKey() (*keystore.AccountKey, error) {
203
- // building and signing transactions should be
204
- // blocking, so we don't have conflicts with keys.
+ // getting an account key from the `KeyStore` for signing transactions,
+ // should be lock-protected, so that we don't sign any two Flow
205
+ // transactions with the same account key
206
t.mux.Lock()
207
defer t.mux.Unlock()
208
0 commit comments