remove RecentBlocks from disk

This commit is contained in:
frankiebee 2018-01-31 10:49:58 -08:00
parent e0caeae06d
commit c3adbda5f5
3 changed files with 3 additions and 3 deletions

View File

@ -198,9 +198,7 @@ module.exports = class MetamaskController extends EventEmitter {
this.networkController.store.subscribe((state) => {
this.store.updateState({ NetworkController: state })
})
this.recentBlocksController.store.subscribe((state) => {
this.store.updateState({ RecentBlocks: state })
})
this.infuraController.store.subscribe((state) => {
this.store.updateState({ InfuraController: state })
})

View File

@ -28,6 +28,7 @@ module.exports = {
function transformState (state) {
const newState = state
delete newState.BlacklistController
delete newState.RecentBlocks
return newState
}

View File

@ -9,6 +9,7 @@ describe('wallet2 is migrated successfully with out the BlacklistController', ()
.then((migratedData) => {
assert.equal(migratedData.meta.version, 21)
assert(!migratedData.data.BlacklistController)
assert(!migratedData.data.RecentBlocks)
done()
}).catch(done)
})