Skip to content

Commit 4bbbf75

Browse files
committed
Unlock account key in case of error in account fetching
1 parent caf7c14 commit 4bbbf75

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

services/requester/single_tx_pool.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ func (t *SingleTxPool) buildTransaction(
184184
coaAddress := t.config.COAAddress
185185
accountKey, err := t.client.GetAccountKeyAtLatestBlock(ctx, coaAddress, accKey.Index)
186186
if err != nil {
187+
accKey.Done()
187188
return nil, err
188189
}
189190

0 commit comments

Comments
 (0)