chaindb: better reset.

This commit is contained in:
Christopher Jeffrey 2016-10-05 02:15:51 -07:00
parent 402996ba74
commit f697dc18bb
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -1271,7 +1271,7 @@ ChainDB.prototype.reset = co(function* reset(block) {
tip = yield this.getTip();
while (tip) {
while (tip && !tip.isGenesis()) {
this.start();
if (tip.hash === entry.hash) {