diff options
author | furszy <matiasfurszyfer@protonmail.com> | 2023-05-22 12:51:15 -0300 |
---|---|---|
committer | furszy <matiasfurszyfer@protonmail.com> | 2023-05-22 12:56:16 -0300 |
commit | 3126454dcfa1dd29bb66500d5f2b5261684d6c58 (patch) | |
tree | a5702d640e7929921465ef10d231f86ace25761f /src/script | |
parent | 22139f6e83a2bedd2dad9f280567d2c76c54252f (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 'src/script')
0 files changed, 0 insertions, 0 deletions