chaindb: better reset.
This commit is contained in:
parent
402996ba74
commit
f697dc18bb
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user