Fix wallet races and crashes #373

Merged
bvbfan merged 1 commit from wallet_reafctor into master 2020-03-06 18:25:31 +01:00
bvbfan commented 2020-03-04 16:54:08 +01:00 (Migrated from github.com)

Signed-off-by: Anthony Fieroni bvbfan@abv.bg

Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
BrannonKing commented 2020-03-04 17:16:20 +01:00 (Migrated from github.com)
Does your changes here repair this error? https://bitcoin.stackexchange.com/questions/88160/how-do-i-mark-coins-spent-in-invalid-blocks-as-unspent
BrannonKing (Migrated from github.com) requested changes 2020-03-05 23:33:00 +01:00
BrannonKing (Migrated from github.com) commented 2020-03-05 23:29:40 +01:00

What's the purpose behind this inclusion of cs_wallet?

What's the purpose behind this inclusion of cs_wallet?
BrannonKing (Migrated from github.com) commented 2020-03-05 23:32:15 +01:00

we should do a lookup via the data in it, no? We don't want an O(n²) here.

we should do a lookup via the data in `it`, no? We don't want an O(n²) here.
bvbfan (Migrated from github.com) reviewed 2020-03-06 08:35:09 +01:00
bvbfan (Migrated from github.com) commented 2020-03-06 08:35:09 +01:00

m_last_block_processed is member of CWallet it's correct to be guarded by its mutex.

`m_last_block_processed` is member of CWallet it's correct to be guarded by its mutex.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbrycrd#373
No description provided.