bitcoinjs / indexd

An external bitcoind index management service module
ISC License
53 stars 23 forks source link

2nd order data atomicity failure #11

Closed dcousens closed 6 years ago

dcousens commented 7 years ago

If a system failure occurs during writing of the 2nd order data (e.g out of memory/space), then upon resume the 2nd order data is skipped due to the tip update not rolling back.

dcousens commented 6 years ago

Should we roll back the block if the 2nd order data fails to insert?

Its the only sane solution at this point...

dcousens commented 6 years ago

Alternatively, and this would support other use cases... we maintain two tips, one for 1st order data which can be directly imported in a fast-dat-parser run, and the other tip, for the 2nd order data...

Opening this up for discussion in https://github.com/bitcoinjs/indexd/issues/26

dcousens commented 6 years ago

Closing in favour of #26