Closed bitphage closed 6 years ago
The block_log has two file streams (data and index), and different methods for read and write. Each file stream has only ONE position for both type of operations, that is why it should be blocked before any operation, because it can be called from different threads: http://www.cplusplus.com/reference/fstream/fstream/
While adopting golos-python to new API I launched library tests and one of them produces strange errors every time. This test is just performs multiple
get_block
calls in parallel.You should be able to reproduce errors by running
pipenv run py.test
when I'll push adopted golos-python version.Same test but exception is different: