when polling. do not do reads in _after.
This commit is contained in:
parent
2caedcd812
commit
dd698b2374
|
@ -894,6 +894,7 @@ async_poll_blocks_after(uv_work_t *req) {
|
||||||
CBlockIndex *pindex = chainActive[i];
|
CBlockIndex *pindex = chainActive[i];
|
||||||
if (pindex != NULL) {
|
if (pindex != NULL) {
|
||||||
CBlock block;
|
CBlock block;
|
||||||
|
// XXX Move this to async_poll_blocks!
|
||||||
if (ReadBlockFromDisk(block, pindex)) {
|
if (ReadBlockFromDisk(block, pindex)) {
|
||||||
Local<Object> obj = NanNew<Object>();
|
Local<Object> obj = NanNew<Object>();
|
||||||
cblock_to_jsblock(block, pindex, obj);
|
cblock_to_jsblock(block, pindex, obj);
|
||||||
|
|
Loading…
Reference in New Issue