chaindb: remove initState.

This commit is contained in:
Christopher Jeffrey 2016-09-24 00:39:45 -07:00
parent b7f82990c3
commit aedbac0be6
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -591,24 +591,6 @@ ChainDB.prototype.save = co(function* save(entry, block, view) {
yield this.commit();
});
/**
* Retrieve the chain state.
* @returns {Promise} - Returns {@link ChainState}.
*/
ChainDB.prototype.initState = co(function* initState() {
var data = yield this.db.get(layout.R);
var state;
assert(data);
state = ChainState.fromRaw(data);
this.state = state;
return state;
});
/**
* Retrieve the tip entry from the tip record.
* @returns {Promise} - Returns {@link ChainEntry}.