remove calls to getTip().
This commit is contained in:
parent
a3fc9159a0
commit
dbba098190
@ -1323,7 +1323,7 @@ Pool.prototype.searchWallet = function(w, h) {
|
|||||||
utils.debug(
|
utils.debug(
|
||||||
'Reverted chain to height=%d (%s)',
|
'Reverted chain to height=%d (%s)',
|
||||||
self.chain.height(),
|
self.chain.height(),
|
||||||
new Date(self.chain.getTip().ts * 1000)
|
new Date(self.chain.tip.ts * 1000)
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -1411,7 +1411,7 @@ Pool.prototype.search = function search(id, range, e) {
|
|||||||
|
|
||||||
timeout = setTimeout(done.bind(null, true), total);
|
timeout = setTimeout(done.bind(null, true), total);
|
||||||
|
|
||||||
if (range.start < this.chain.getTip().ts) {
|
if (range.start < this.chain.tip.ts) {
|
||||||
this.chain.resetTime(range.start);
|
this.chain.resetTime(range.start);
|
||||||
this.stopSync();
|
this.stopSync();
|
||||||
this.startSync();
|
this.startSync();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user