pool: fix deadlock in block sync.
This commit is contained in:
parent
5d3f15c2d8
commit
2bd3ac4618
@ -2451,7 +2451,8 @@ Peer.prototype.resolveOrphan = co(function* resolveOrphan(tip, orphan) {
|
||||
return;
|
||||
}
|
||||
|
||||
yield this.sendGetBlocks(locator, root);
|
||||
// Note: call and forget
|
||||
this.sendGetBlocks(locator, root);
|
||||
});
|
||||
|
||||
/**
|
||||
@ -2463,7 +2464,8 @@ Peer.prototype.resolveOrphan = co(function* resolveOrphan(tip, orphan) {
|
||||
|
||||
Peer.prototype.getHeaders = co(function* getHeaders(tip, stop) {
|
||||
var locator = yield this.chain.getLocator(tip);
|
||||
return this.sendGetHeaders(locator, stop);
|
||||
// Note: call and forget
|
||||
this.sendGetHeaders(locator, stop);
|
||||
});
|
||||
|
||||
/**
|
||||
@ -2475,7 +2477,8 @@ Peer.prototype.getHeaders = co(function* getHeaders(tip, stop) {
|
||||
|
||||
Peer.prototype.getBlocks = co(function* getBlocks(tip, stop) {
|
||||
var locator = yield this.chain.getLocator(tip);
|
||||
return this.sendGetBlocks(locator, stop);
|
||||
// Note: call and forget
|
||||
this.sendGetBlocks(locator, stop);
|
||||
});
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user