lbryio / lbrycrd

The blockchain that provides the digital content namespace for the LBRY protocol
https://lbry.com
MIT License
2.57k stars 178 forks source link

No block filters after restart #383

Closed shyba closed 4 years ago

shyba commented 4 years ago

Expected behavior

Sync or reindex, get block filters, restart, get block filters...

Actual behavior

Sync or reindex, get block filters, restart, error:

./lbrycrd-cli getblockfilter $(./lbrycrd-cli getblockhash 2)
error code: -32603
error message:
Filter not found. This error is unexpected and indicates index corruption.

this also gets logged: 2020-04-07T19:49:54Z ERROR: ReadFilterFromDisk: Failed to deserialize block filter from disk: VectorReader::read(): end of data: iostream error

To reproduce Using that line on config: blockfilterindex=1 Restart during or after sync.