aboutsummaryrefslogtreecommitdiff
path: root/test/functional/mempool_unbroadcast.py
diff options
context:
space:
mode:
authorfurszy <matiasfurszyfer@protonmail.com>2023-05-22 12:51:15 -0300
committerfurszy <matiasfurszyfer@protonmail.com>2023-05-22 12:56:16 -0300
commit3126454dcfa1dd29bb66500d5f2b5261684d6c58 (patch)
treea5702d640e7929921465ef10d231f86ace25761f /test/functional/mempool_unbroadcast.py
parent22139f6e83a2bedd2dad9f280567d2c76c54252f (diff)
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.
Diffstat (limited to 'test/functional/mempool_unbroadcast.py')
0 files changed, 0 insertions, 0 deletions