From aedbac0be68748ba1883464c40c9c974f935d07e Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sat, 24 Sep 2016 00:39:45 -0700 Subject: [PATCH] chaindb: remove initState. --- lib/chain/chaindb.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/lib/chain/chaindb.js b/lib/chain/chaindb.js index 1aea35f8..46583747 100644 --- a/lib/chain/chaindb.js +++ b/lib/chain/chaindb.js @@ -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}.