remove calls to getTip().

This commit is contained in:
Christopher Jeffrey 2016-02-12 16:38:26 -08:00
parent a3fc9159a0
commit dbba098190

View File

@ -1323,7 +1323,7 @@ Pool.prototype.searchWallet = function(w, h) {
utils.debug(
'Reverted chain to height=%d (%s)',
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);
if (range.start < this.chain.getTip().ts) {
if (range.start < this.chain.tip.ts) {
this.chain.resetTime(range.start);
this.stopSync();
this.startSync();