pool: minor.
This commit is contained in:
parent
170d9a1416
commit
0c055ba236
@ -1563,8 +1563,8 @@ Pool.prototype._handleHeaders = co(function* handleHeaders(peer, packet) {
|
|||||||
|
|
||||||
for (i = 0; i < headers.length; i++) {
|
for (i = 0; i < headers.length; i++) {
|
||||||
header = headers[i];
|
header = headers[i];
|
||||||
hash = header.hash('hex');
|
|
||||||
last = this.headerChain.tail;
|
last = this.headerChain.tail;
|
||||||
|
hash = header.hash('hex');
|
||||||
height = last.height + 1;
|
height = last.height + 1;
|
||||||
|
|
||||||
if (header.prevBlock !== last.hash) {
|
if (header.prevBlock !== last.hash) {
|
||||||
@ -1580,7 +1580,7 @@ Pool.prototype._handleHeaders = co(function* handleHeaders(peer, packet) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
node = new BlockNode(hash, last.height + 1);
|
node = new BlockNode(hash, height);
|
||||||
|
|
||||||
if (!this.headerNext)
|
if (!this.headerNext)
|
||||||
this.headerNext = node;
|
this.headerNext = node;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user