In cb81bede9b Move cs_wallet lock in CreateTransactionInternal to top of function and Remove extraneous scope in CreateTransactionInternal
Seems like curly braces were supposed to limit the scope of the lock (?) but I am unsure why it should be released in the middle of CreateTransation()
. If the intention is to hold this lock for all of CreateTransaction()
(I don’t see why we’d want to release it in between calls to CreateTransactionInternal()
), why not grab the lock in CreateTransation()
and annotate that CreateTransactionInternal()
requires cs_wallet
?