Extend comment with reason for taking care with locks

This commit is contained in:
Jack Grigg 2019-12-17 11:11:05 -06:00
parent 03db5c8ca3
commit 8af85a0d10
No known key found for this signature in database
GPG Key ID: 9E8255172BBF9898
1 changed files with 3 additions and 1 deletions

View File

@ -162,7 +162,9 @@ void ThreadNotifyWallets()
//
// Execute wallet logic based on the collected state. We MUST NOT take
// the cs_main or mempool.cs locks again until after the next sleep.
// the cs_main or mempool.cs locks again until after the next sleep;
// doing so introduces a locking side-channel between this code and the
// network message processing thread.
//
// Notify block disconnects