0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-13 11:25:02 -05:00
bitcoin-bitcoin-core/src/index
furszy 3126454dcf
index: prevent race by calling 'CustomInit' prior setting 'synced' flag
The 'm_synced' flag enables 'BlockConnected' events to be processed by
the index. If we set the flag before calling 'CustomInit', we could be
dispatching a block connected event to an uninitialized index child
class.

e.g. BlockFilterIndex, initializes the next filter position
inside 'CustomInit'. So, if `CustomInit` is not called prior receiving
the block event, the index will use 'next_filter_position=0' which
overwrites the first filter in disk.
2023-05-22 12:56:16 -03:00
..
base.cpp index: prevent race by calling 'CustomInit' prior setting 'synced' flag 2023-05-22 12:56:16 -03:00
base.h scripted-diff: Bump copyright headers 2022-12-24 23:49:50 +00:00
blockfilterindex.cpp refactor: Move functions to BlockManager methods 2023-05-10 19:06:53 +02:00
blockfilterindex.h scripted-diff: Bump copyright headers 2022-12-24 23:49:50 +00:00
coinstatsindex.cpp refactor: Move functions to BlockManager methods 2023-05-10 19:06:53 +02:00
coinstatsindex.h scripted-diff: Bump copyright headers 2022-12-24 23:49:50 +00:00
disktxpos.h Refactor: Remove unused FlatFilePos::SetNull 2023-03-21 13:54:11 +01:00
txindex.cpp refactor: Move functions to BlockManager methods 2023-05-10 19:06:53 +02:00
txindex.h scripted-diff: Bump copyright headers 2022-12-24 23:49:50 +00:00