BlockManager::m_block_tree_db is protected by cs_main, so take the
cs_main lock while accessing it.
init: add missing cs_main lock #24672
pull ajtowns wants to merge 1 commits into bitcoin:master from ajtowns:202203-hiddenlock changing 1 files +1 −1-
ajtowns commented at 2:20 PM on March 25, 2022: member
-
0346c26fca
init: add missing cs_main lock
BlockManager::m_block_tree_db is protected by cs_main, so take the cs_main lock while accessing it.
-
jonatack commented at 2:37 PM on March 25, 2022: member
Code review ACK 0346c26fcacca8abcf67f7320fd441e564aa97d1
- MarcoFalke added the label Refactoring on Mar 25, 2022
-
MarcoFalke commented at 2:47 PM on March 25, 2022: member
The access is before any other threads are started (import blocks, p2p, rpc, ...), so I tagged it with "refactoring".
- MarcoFalke merged this on Mar 25, 2022
- MarcoFalke closed this on Mar 25, 2022
- sidhujag referenced this in commit a88255d237 on Apr 2, 2022
- DrahtBot locked this on Mar 25, 2023
Contributors
Labels