mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
remove RecentBlocks from disk
This commit is contained in:
parent
e0caeae06d
commit
c3adbda5f5
@ -198,9 +198,7 @@ module.exports = class MetamaskController extends EventEmitter {
|
|||||||
this.networkController.store.subscribe((state) => {
|
this.networkController.store.subscribe((state) => {
|
||||||
this.store.updateState({ NetworkController: state })
|
this.store.updateState({ NetworkController: state })
|
||||||
})
|
})
|
||||||
this.recentBlocksController.store.subscribe((state) => {
|
|
||||||
this.store.updateState({ RecentBlocks: state })
|
|
||||||
})
|
|
||||||
this.infuraController.store.subscribe((state) => {
|
this.infuraController.store.subscribe((state) => {
|
||||||
this.store.updateState({ InfuraController: state })
|
this.store.updateState({ InfuraController: state })
|
||||||
})
|
})
|
||||||
|
@ -28,6 +28,7 @@ module.exports = {
|
|||||||
function transformState (state) {
|
function transformState (state) {
|
||||||
const newState = state
|
const newState = state
|
||||||
delete newState.BlacklistController
|
delete newState.BlacklistController
|
||||||
|
delete newState.RecentBlocks
|
||||||
return newState
|
return newState
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@ describe('wallet2 is migrated successfully with out the BlacklistController', ()
|
|||||||
.then((migratedData) => {
|
.then((migratedData) => {
|
||||||
assert.equal(migratedData.meta.version, 21)
|
assert.equal(migratedData.meta.version, 21)
|
||||||
assert(!migratedData.data.BlacklistController)
|
assert(!migratedData.data.BlacklistController)
|
||||||
|
assert(!migratedData.data.RecentBlocks)
|
||||||
done()
|
done()
|
||||||
}).catch(done)
|
}).catch(done)
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user