bitcore-node icon indicating copy to clipboard operation
bitcore-node copied to clipboard

Improve sync and fix reorg

Open pnagurny opened this issue 9 years ago • 0 comments

Sync uses a ReadStream. ReadStreams have their own built in queues. We shouldn't try to reinvent the wheel implementing our own queue. The ReadStream will add to its internal buffer by repeated calling _read() until the highWaterMark is met.

This PR also fixes reorg detection and finishes implementing the reorg integration test.

pnagurny avatar Jun 20 '17 22:06 pnagurny